Fix lost MIDI events due to broken range check.