Merge "Speed up SniffMidi() by parsing the initial bytes of the header" into main