From 8581317cf46250fc8d8379a0b9afb5cd49b8f486 Mon Sep 17 00:00:00 2001 From: Laurence Dougal Myers Date: Mon, 27 Jan 2014 17:10:56 +1100 Subject: [PATCH] Fix "note on" logic. --- Midi_In_and_GuiMonitor.ahk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Midi_In_and_GuiMonitor.ahk b/Midi_In_and_GuiMonitor.ahk index 1977143..63f0987 100644 --- a/Midi_In_and_GuiMonitor.ahk +++ b/Midi_In_and_GuiMonitor.ahk @@ -120,7 +120,7 @@ Return MidiRules: 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) } else if (statusbyte >= 176 and statusbyte <= 191) { ; CC ProcessCC(0, chan, byte1, byte2)