MidiBuffer vs. MidiMessageSequence


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.


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.


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