This patch removes the limitation to control change messages. We can
now also have "piano" notes and so on.
---
softusb-input/main.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/softusb-input/main.c b/softusb-input/main.c
index 90e90f7..2c790a1 100644
--- a/softusb-input/main.c
+++ b/softusb-input/main.c
@@ -497,7 +497,10 @@ static char process_midi(unsigned char *buf, unsigned char
len)
*/
for(i = 0; i != end; i += 4) {
- if((buf[i+1] & 0xf0) != 0xb0) /* not a control change */
+ unsigned char type = buf[i+1] & 0xf0;
+
+ /* ignore non-MIDI and all system messages */
+ if(type < 0x80 || type == 0xf0)
continue;
m = COMLOC_MIDI_PRODUCE;
for(j = 0; j != 4; j++)
--
1.7.1
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode