I’m attempting to playback a midi sequence with the engine and as far as I understand the requirement goes as follows: Track->Clip->Sequence(MidiList)
So I add a clip to the first track:
const te::EditTimeRange editTimeRange(0, rp.edit->tempoSequence.barsBeatsToTime({ 1, 0.0 }));
track->insertNewClip(te::TrackItem::Type::midi, name, editTimeRange, nullptr);
I create a MidiMessageSequence using a midi editor component.
Each time a note is changed I do this just for testing:
if (auto midiClip = dynamic_cast<te::MidiClip*> (track->getClips()[0]))
if (auto seq = &midiClip->getSequence())
{
seq->removeAllNotes(nullptr);
seq->importMidiSequence(ms, edit.get(), 0.0, nullptr);
}
The clip seems to only update before I start the transport. After I hit play and move some notes around, the clip still plays the original notes that were entered before playback was started. However, the MidiList correctly reflects the changes made in the midi editor!
Is it not possible to reuse a MidiClip this way? I hope this makes sense.

