ValueTree vs MidiMessageSequence

Hi there,

I’ve never thought about this deeply, but on the surface it seems like ValueTrees can (almost?) entirely replace MidiMessageSequences to hold midi events to be buffered. That is, they never actually hold midi events, but it seems possible to just go from values in a tree to midi messages in the buffer as opposed to ValueTree-> update MidiMessageSequence -> toMidiBuffer.

Anyone see a problem with this?

I’m actually building exactly this right now. I’m storing all my MidiMessage objects in a ValueTree, then when it’s time for playback I generate a sequence of MidiMessage objects on-the-fly from the ValueTree. Haven’t gotten it working, but it looks promising…