# Pause or stop the reproduction of MIDI messages

**URL:** <https://forum.juce.com/t/pause-or-stop-the-reproduction-of-midi-messages/52095>\
**Category:** Development\
**Created:** [July 6, 2022, 9:14pm UTC](https://forum.juce.com/t/pause-or-stop-the-reproduction-of-midi-messages/52095 "2022-07-06T21:14:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balthus89](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@balthus89](https://forum.juce.com/u/balthus89)\
**Post date:** [July 6, 2022, 9:14pm UTC](https://forum.juce.com/t/pause-or-stop-the-reproduction-of-midi-messages/52095/1 "2022-07-06T21:14:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![balthus89](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@balthus89](https://forum.juce.com/u/balthus89)\
**Post date:** [July 6, 2022, 9:51pm UTC](https://forum.juce.com/t/pause-or-stop-the-reproduction-of-midi-messages/52095/2 "2022-07-06T21:51:01Z")

</div>

If you want to see how the MIDI notes are reproduced, check the following topic: [Inject notes to a synthesiser](https://forum.juce.com/t/inject-notes-to-a-synthesiser/50043)

---

<div class="post-metadata">

**Author:** ![balthus89](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@balthus89](https://forum.juce.com/u/balthus89)\
**Post date:** [July 7, 2022, 10:39am UTC](https://forum.juce.com/t/pause-or-stop-the-reproduction-of-midi-messages/52095/3 "2022-07-07T10:39:08Z")

</div>

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