"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/tracks/InstrumentTrack.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

InstrumentTrack.cpp  (lmms-1.2.0-rc7):InstrumentTrack.cpp  (lmms-1.2.0-rc8)
skipping to change at line 126 skipping to change at line 126
m_effectChannelModel.setRange( 0, Engine::fxMixer()->numChannels()-1, 1); m_effectChannelModel.setRange( 0, Engine::fxMixer()->numChannels()-1, 1);
for( int i = 0; i < NumKeys; ++i ) for( int i = 0; i < NumKeys; ++i )
{ {
m_notes[i] = NULL; m_notes[i] = NULL;
m_runningMidiNotes[i] = 0; m_runningMidiNotes[i] = 0;
} }
setName( tr( "Default preset" ) ); setName( tr( "Default preset" ) );
connect( &m_baseNoteModel, SIGNAL( dataChanged() ), this, SLOT( updateBas connect( &m_baseNoteModel, SIGNAL( dataChanged() ),
eNote() ) ); this, SLOT( updateBaseNote() ), Qt::DirectConnection );
connect( &m_pitchModel, SIGNAL( dataChanged() ), this, SLOT( updatePitch( connect( &m_pitchModel, SIGNAL( dataChanged() ),
) ) ); this, SLOT( updatePitch() ), Qt::DirectConnection );
connect( &m_pitchRangeModel, SIGNAL( dataChanged() ), this, SLOT( updateP connect( &m_pitchRangeModel, SIGNAL( dataChanged() ),
itchRange() ) ); this, SLOT( updatePitchRange() ), Qt::DirectConnection );
connect( &m_effectChannelModel, SIGNAL( dataChanged() ), this, SLOT( upda connect( &m_effectChannelModel, SIGNAL( dataChanged() ),
teEffectChannel() ) ); this, SLOT( updateEffectChannel() ), Qt::DirectConnection
);
} }
int InstrumentTrack::baseNote() const int InstrumentTrack::baseNote() const
{ {
int mp = m_useMasterPitchModel.value() ? Engine::getSong()->masterPitch() : 0; int mp = m_useMasterPitchModel.value() ? Engine::getSong()->masterPitch() : 0;
return m_baseNoteModel.value() - mp; return m_baseNoteModel.value() - mp;
} }
InstrumentTrack::~InstrumentTrack() InstrumentTrack::~InstrumentTrack()
 End of changes. 1 change blocks. 
8 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)