summaryrefslogtreecommitdiff
path: root/muse2/synti
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-11-29 07:16:41 +0000
committerTim E. Real <termtech@rogers.com>2010-11-29 07:16:41 +0000
commitbe99c1e70a0956995f20b5d0cc2c46b123973ea3 (patch)
tree78a292a182610b61407acecd81448de9ba2aa733 /muse2/synti
parentee4a8d828f83dda7df604350ec96f3187e353806 (diff)
In Mess::processEvent(), added ME_PITCHBEND case. Fixes pitchbend in some synths.
Diffstat (limited to 'muse2/synti')
-rw-r--r--muse2/synti/libsynti/mess.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/muse2/synti/libsynti/mess.cpp b/muse2/synti/libsynti/mess.cpp
index 639ffee6..8c23d8ea 100644
--- a/muse2/synti/libsynti/mess.cpp
+++ b/muse2/synti/libsynti/mess.cpp
@@ -7,6 +7,7 @@
#include "mess.h"
#include "muse/midi.h"
+#include "muse/midictrl.h"
static const int FIFO_SIZE = 32;
@@ -116,6 +117,8 @@ bool Mess::processEvent(const MidiPlayEvent& ev)
return sysex(ev.len(), ev.data());
case ME_CONTROLLER:
return setController(ev.channel(), ev.dataA(), ev.dataB());
+ case ME_PITCHBEND: // Tim.
+ return setController(ev.channel(), CTRL_PITCH, ev.dataA());
}
return false;
}