summaryrefslogtreecommitdiff
path: root/muse2/muse/mididev.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2012-10-23 07:10:16 +0000
committerTim E. Real <termtech@rogers.com>2012-10-23 07:10:16 +0000
commitb297348e8e2cd76be6f1d546fb458865cc4d263b (patch)
treed8ac87282dbdf1b51944ad84ef38083a3b2b40f2 /muse2/muse/mididev.cpp
parentb6cb5a7a97c4959ddd6ef4fabdf0ddf0b3604d1b (diff)
Added ALSA driver aftertouch (chan pressure) controller output
Diffstat (limited to 'muse2/muse/mididev.cpp')
-rw-r--r--muse2/muse/mididev.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/muse2/muse/mididev.cpp b/muse2/muse/mididev.cpp
index e8f88960..96fee89a 100644
--- a/muse2/muse/mididev.cpp
+++ b/muse2/muse/mididev.cpp
@@ -456,6 +456,9 @@ bool MidiDevice::putEvent(const MidiPlayEvent& ev)
if (a == CTRL_PITCH) {
return putMidiEvent(MidiPlayEvent(t, port, chn, ME_PITCHBEND, b, 0));
}
+ if (a == CTRL_AFTERTOUCH) {
+ return putMidiEvent(MidiPlayEvent(t, port, chn, ME_AFTERTOUCH, b, 0));
+ }
if (a == CTRL_PROGRAM) {
int hb = (b >> 16) & 0xff;
int lb = (b >> 8) & 0xff;