Simpler comparison
Changed MidiPair Note[On,Off] from pointer to simple object