Streaming MIDI file parser