diff options
author | Tim E. Real <termtech@rogers.com> | 2012-10-22 06:54:39 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2012-10-22 06:54:39 +0000 |
commit | b6cb5a7a97c4959ddd6ef4fabdf0ddf0b3604d1b (patch) | |
tree | cb957648f670b4f7697eddbe37adcda8b620fb6d /muse2/muse/driver/jackmidi.cpp | |
parent | bb2ae55efec337e3b372937582dcd154fb36e9e9 (diff) |
Fixed regression: Re-add default managed controllers to midi ports at Song::clear.
W.I.P. Preparations for Aftertouch and Poly Aftertouch graph editing.
Diffstat (limited to 'muse2/muse/driver/jackmidi.cpp')
-rw-r--r-- | muse2/muse/driver/jackmidi.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/muse2/muse/driver/jackmidi.cpp b/muse2/muse/driver/jackmidi.cpp index 6b1506e1..a088290a 100644 --- a/muse2/muse/driver/jackmidi.cpp +++ b/muse2/muse/driver/jackmidi.cpp @@ -466,6 +466,7 @@ void MidiJackDevice::eventReceived(jack_midi_event_t* ev) case ME_NOTEON: case ME_NOTEOFF: case ME_CONTROLLER: + case ME_POLYAFTER: event.setA(*(ev->buffer + 1)); event.setB(*(ev->buffer + 2)); break; @@ -845,7 +846,13 @@ bool MidiJackDevice::processEvent(const MidiPlayEvent& event) } } - if(a == CTRL_PITCH) + if(a == CTRL_AFTERTOUCH) + { + //printf("MidiJackDevice::processEvent CTRL_AFTERTOUCH v:%d time:%d type:%d ch:%d A:%d B:%d\n", v, event.time(), event.type(), event.channel(), event.dataA(), event.dataB()); + if(!queueEvent(MidiPlayEvent(t, port, chn, ME_AFTERTOUCH, b & 0x7f, 0))) + return false; + } + else if(a == CTRL_PITCH) { int v = b + 8192; //printf("MidiJackDevice::processEvent CTRL_PITCH v:%d time:%d type:%d ch:%d A:%d B:%d\n", v, event.time(), event.type(), event.channel(), event.dataA(), event.dataB()); |