Pause or stop the reproduction of MIDI messages

Hello there,

I’m working on a mixer that is able to instantiate several MIDI tracks, which are created by reading the astronomical data of the constellations and converting their UV data into MIDI notes.

At the end of the day, each MIDI track is simply a class holding an array of MIDI messages that have to be reproduced.

My question is: is there a way to “pause” or “stop” the reproduction of these MIDI messages? Something like a transportSource or similiar but for MIDI instead of audio files?

Thanks in advance for any answer. I can post some parts of my code if it could be necessary

If you want to see how the MIDI notes are reproduced, check the following topic: Inject notes to a synthesiser

Ok, I solved the problem by myself! If you are curious, just let me know so I will post the code :slight_smile: