Skip to content

Commit

Permalink
Jack driver and Midi Aftertouch
Browse files Browse the repository at this point in the history
  • Loading branch information
blablack committed Apr 29, 2014
1 parent 86583c5 commit b0b33dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/src/IO/jack_midi_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ JackMidiDriver::JackMidiWrite(jack_nframes_t nframes)
msg.m_nChannel = buffer[0] & 0xF;
handleMidiMessage(msg);
break;
case 0xA: /* aftertouch */
msg.m_type = MidiMessage::POLYPHONIC_KEY_PRESSURE;
msg.m_nData1 = buffer[1];
msg.m_nData2 = buffer[2];
msg.m_nChannel = buffer[0] & 0xF;
handleMidiMessage(msg);
break;
case 0xB: /* control change */
msg.m_type = MidiMessage::CONTROL_CHANGE;
msg.m_nData1 = buffer[1];
Expand Down

0 comments on commit b0b33dd

Please sign in to comment.