"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/NotePlayHandle.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.

NotePlayHandle.cpp  (lmms-1.2.0-rc7):NotePlayHandle.cpp  (lmms-1.2.0-rc8)
skipping to change at line 170 skipping to change at line 170
Note::setVolume( _volume ); Note::setVolume( _volume );
const int baseVelocity = m_instrumentTrack->midiPort()->baseVelocity(); const int baseVelocity = m_instrumentTrack->midiPort()->baseVelocity();
m_instrumentTrack->processOutEvent( MidiEvent( MidiKeyPressure, midiChann el(), midiKey(), midiVelocity( baseVelocity ) ) ); m_instrumentTrack->processOutEvent( MidiEvent( MidiKeyPressure, midiChann el(), midiKey(), midiVelocity( baseVelocity ) ) );
} }
void NotePlayHandle::setPanning( panning_t panning ) void NotePlayHandle::setPanning( panning_t panning )
{ {
Note::setPanning( panning ); Note::setPanning( panning );
MidiEvent event( MidiMetaEvent, midiChannel(), midiKey(), panningToMidi(
panning ) );
event.setMetaEvent( MidiNotePanning );
m_instrumentTrack->processOutEvent( event );
} }
int NotePlayHandle::midiKey() const int NotePlayHandle::midiKey() const
{ {
return key() - m_origBaseNote + instrumentTrack()->baseNote(); return key() - m_origBaseNote + instrumentTrack()->baseNote();
} }
void NotePlayHandle::play( sampleFrame * _working_buffer ) void NotePlayHandle::play( sampleFrame * _working_buffer )
{ {
if( m_muted ) if( m_muted )
 End of changes. 1 change blocks. 
6 lines changed or deleted 0 lines changed or added

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