MidiBuffer vs. MidiMessageSequence


#1

Hi, I’m just taking a look at MIDI sequencing with Juce. Are there any cases where one would use MidiBuffer over MidiMessageSequence? The latter seems much more comprehensive.


#2

They have different purposes… MidiSequence is designed for things like midi files, where you have pairs of note on/offs, and may want to edit the sequence. MidiBuffer is more compact, and very fast to iterate, and it represents a raw sequence of midi events like you might get directly from a midi device.


#3

Thanks Jules, that seems clear. 2¢ -> this note would be useful in the comments :slight_smile: