Basic MIDI file parsing