"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/midi/MidiClient.cpp" between
lmms_1.2.0.tar.xz and lmms_1.2.1.tar.xz

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).

MidiClient.cpp  (lmms_1.2.0.tar.xz):MidiClient.cpp  (lmms_1.2.1.tar.xz)
skipping to change at line 191 skipping to change at line 191
* If another status byte comes in, it will overwrite the status. * If another status byte comes in, it will overwrite the status.
*/ */
m_midiParseData.m_midiEvent.setType( static_cast<MidiEventTypes>( m_midiP arseData.m_status ) ); m_midiParseData.m_midiEvent.setType( static_cast<MidiEventTypes>( m_midiP arseData.m_status ) );
m_midiParseData.m_midiEvent.setChannel( m_midiParseData.m_channel ); m_midiParseData.m_midiEvent.setChannel( m_midiParseData.m_channel );
m_midiParseData.m_bytes = 0; /* Related to running status! */ m_midiParseData.m_bytes = 0; /* Related to running status! */
switch( m_midiParseData.m_midiEvent.type() ) switch( m_midiParseData.m_midiEvent.type() )
{ {
case MidiNoteOff: case MidiNoteOff:
case MidiNoteOn: case MidiNoteOn:
case MidiKeyPressure: case MidiKeyPressure:
case MidiProgramChange:
case MidiChannelPressure: case MidiChannelPressure:
m_midiParseData.m_midiEvent.setKey( m_midiParseData.m_buf fer[0] - KeysPerOctave ); m_midiParseData.m_midiEvent.setKey( m_midiParseData.m_buf fer[0] - KeysPerOctave );
m_midiParseData.m_midiEvent.setVelocity( m_midiParseData. m_buffer[1] ); m_midiParseData.m_midiEvent.setVelocity( m_midiParseData. m_buffer[1] );
break; break;
case MidiProgramChange:
m_midiParseData.m_midiEvent.setKey( m_midiParseData.m_buf
fer[0] );
m_midiParseData.m_midiEvent.setVelocity( m_midiParseData.
m_buffer[1] );
break;
case MidiControlChange: case MidiControlChange:
m_midiParseData.m_midiEvent.setControllerNumber( m_midiPa rseData.m_buffer[0] ); m_midiParseData.m_midiEvent.setControllerNumber( m_midiPa rseData.m_buffer[0] );
m_midiParseData.m_midiEvent.setControllerValue( m_midiPa rseData.m_buffer[1] ); m_midiParseData.m_midiEvent.setControllerValue( m_midiPa rseData.m_buffer[1] );
break; break;
case MidiPitchBend: case MidiPitchBend:
// Pitch-bend is transmitted with 14-bit precision. // Pitch-bend is transmitted with 14-bit precision.
// Note: '|' does here the same as '+' (no common bits), // Note: '|' does here the same as '+' (no common bits),
// but might be faster // but might be faster
m_midiParseData.m_midiEvent.setPitchBend( ( m_midiParseDa ta.m_buffer[1] * 128 ) | m_midiParseData.m_buffer[0] ); m_midiParseData.m_midiEvent.setPitchBend( ( m_midiParseDa ta.m_buffer[1] * 128 ) | m_midiParseData.m_buffer[0] );
 End of changes. 2 change blocks. 
1 lines changed or deleted 7 lines changed or added

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