I want to grab a MIDI file, read it, and then store the data in some sort of data structure. Using this site I found an easy way to read the file, which works like a charm:
Now I need to figure out a way to grab that output and store it. A Hash Map doesn't seem ideal since keys need to be unique and a List of type Object doesn't seem great. Any ideas on what my best option might be. I suppose I might output it to a text or csv... Thoughts?
UPDATE: A bit more detail on what I already have.
Here is the output I'm getting (through System.out.println):
@0 Channel: 1 Note on, E5 key=76 velocity: 127
@192 Channel: 1 Note off, E5 key=76 velocity: 64
@192 Channel: 1 Note on, D#5 key=75 velocity: 127
@384 Channel: 1 Note off, D#5 key=75 velocity: 64
@384 Channel: 1 Note on, E5 key=76 velocity: 127
Now I just need to find the best method of storing this information. I should probably be expicit about "why" I'm trying to do this as well. I'm working with another developer who is going to take this data and use Batik (which I know nothing about) to display it on the screen.
Thanks for all the responses... I'll look closely at each of them tonight...