Is it possible to mute or remove a track? #128
-
I've searched the docs and haven't found anything on it. I'm currently using a |
Beta Was this translation helpful? Give feedback.
Answered by
melanchall
Jun 15, 2021
Replies: 1 comment 2 replies
-
Do you mean mute during playback? If so, you can create custom playback and ignore events on specified track chunk or channel. Please see example here: #122. So your implementation of protected override bool TryPlayEvent(MidiEvent midiEvent, object metadata)
{
if (mutedTrackChunks.Contains((int)metadata))
return false;
OutputDevice?.SendEvent(midiEvent);
return true;
} You need install 5.2.1-prerelease7 version or later since provided API is not released yet. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ar065
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean mute during playback? If so, you can create custom playback and ignore events on specified track chunk or channel. Please see example here: #122. So your implementation of
TryPlayEvent
will be like that:You need install 5.2.1-prerelease7 version or later since provided API is not released yet.