The MIDI status byte is present in every MIDI message, and indicates what the message actually is.
For a keyDown message, the byte is 0x90.
Many keyboards emit non-zero velocities on key up, and some are even variable based on the key return speed.
This commit changes both the MIDI message processor to only look at messages with a keycode of 0x80 (keyUp) or 0x90 (keyDown), as well as ensuring the previous note range clamp is in effect. It fixes #341.
Furthermore, it fixes a class of issues where other control surface inputs were being captured as notes.
The MIDI status byte is present in every MIDI message, and indicates what the message actually is. For a keyDown message, the byte is 0x90.
Many keyboards emit non-zero velocities on key up, and some are even variable based on the key return speed.
This commit changes both the MIDI message processor to only look at messages with a keycode of 0x80 (keyUp) or 0x90 (keyDown), as well as ensuring the previous note range clamp is in effect. It fixes #341.
Furthermore, it fixes a class of issues where other control surface inputs were being captured as notes.
Here is what the output result looks like