A MIDI file parser using ArrayBuffers