Reading notes from midi file

Hello,

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?

Best,
okmog

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 :

https://docs.juce.com/develop/classMidiFile.html#a334aa932bc738914eb3e1578a7ee1d7c