Fix for crossplatform/various MIDI implementations