Use a structure to contain information about note onsets so as to be able to generalize to MIDI from audio