Reading notes from midi file


I already did a search but couldn’t find something.
Does anybody know a minimal working example to read the notes from a midi file using the juce::MidiFile class?


This should get you started, you are not supposed to read notes directly from the file, but rather get a “track” from it, which in turn contains the notes :