Basic question : How to know the midi note played in the processBlock

Hello, I am sorry if this topics have been solved but I don’t find anything.
I would like to know what’s note is played in the processBlock (AudioBuffer& buffer, MidiBuffer& midiMessages) using the MidiBuffer but I don’t know how to do that ? thanks

Check out the processBlock in the MIDIArpeggiator example. That shows how it is done.