MidiBuffer::Iterator and allocation

Hi Jules,

Would it be possible to add some function which allow to iterate trough a MidiBuffer without allocating memory ?

So far it returns a copy of the MidiMessage which allocate when the num of byte of the data is superior to 4.


Can’t think of a simple way to do that, as MidiMessage always owns its storage. The midi buffer could offer a way to look at the raw memory for the event, but you wouldn’t be able to call any MidiMessage methods on it.