title: Get note data from MIDI file
body: <p>Is there a way to get the note data from a MIDI file?  That is, I want to break down the MIDI file into its constituent parts so they are in the form of a unique word (or any other data type).
  What I want to do in the end is take in a MIDI file and find patterns in the notes.  Get in each note, find it's frequency (of being played) and note how likely other notes are to be played after it.</p>
  
  <p>It would be nice to do this in C/C++, but any language would be fine.</p>