Another way to get MIDI messages is to pushBack them into an external buffer, in order to accumulate them for different sub-buffers. When you use this API, you need to provide a Vec yourself.
Enqueue a message in the priority queue.
Gets all the MIDI messages for the next frames samples. It is guaranteed to be in order relative to time. These messages are valid until the next call to getNextMidiMessages. The time reference is afterwards advanced by frames.
Priority queue for MIDI messages