Fix "note on" logic.

This commit is contained in:
Laurence Dougal Myers 2014-01-27 17:10:56 +11:00
parent bfc8dc51be
commit 8581317cf4

View File

@ -120,7 +120,7 @@ Return
MidiRules: MidiRules:
if (statusbyte >= 128 and statusbyte <= 159) { ; Note off/on if (statusbyte >= 128 and statusbyte <= 159) { ; Note off/on
isNoteOn := (statusbyte >= 144 or byte2 == 0) isNoteOn := (statusbyte >= 144 and byte2 > 0)
ProcessNote(0, chan, byte1, byte2, isNoteOn) ProcessNote(0, chan, byte1, byte2, isNoteOn)
} else if (statusbyte >= 176 and statusbyte <= 191) { ; CC } else if (statusbyte >= 176 and statusbyte <= 191) { ; CC
ProcessCC(0, chan, byte1, byte2) ProcessCC(0, chan, byte1, byte2)