Reputation: 8038
Does anybody know a Java MIDI parser that will parse a MIDI into a tree like data structure where the nodes will be items such as the MTrks? I am doing some work on analyzing written music music and I want a format that contains hundreds of sample songs. Does anybody have a favorite format?
Upvotes: 0
Views: 2076
Reputation: 12875
There's also a bare-bones Java implementation of the MIDI file format up on Google Code:
http://code.google.com/p/android-midi-lib/
Upvotes: 0
Reputation: 1543
Actually MIDI file is a list of MIDI events, where event is a note, expression change, sustain pedal etc. Events are grouped by MIDI channel. So anyway you will work with events. What about parser, have you tried out http://docs.oracle.com/javase/6/docs/api/javax/sound/midi/package-summary.html?
Upvotes: 1