Fix "note on" logic.
This commit is contained in:
parent
bfc8dc51be
commit
8581317cf4
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user