Trigger playback in plugin
Hey,
Is it possible for a plugin to trigger playback of a score?
My plugin needs to start and stop playback at specific points, but I couldn't find any playback functionality in the docs so far.
Thanks
Hey,
Is it possible for a plugin to trigger playback of a score?
My plugin needs to start and stop playback at specific points, but I couldn't find any playback functionality in the docs so far.
Thanks
Do you still have an unanswered question? Please log in first to post your question.
Comments
Play/pauze (just like the play button does):
cmd("play");
In reply to Play/pauze (just like the… by jeetee
Thanks, thats exactly what I was looking for.
Is there any documentation on which other commands I can use with cmd, apart from "play"?
In reply to Thanks, thats exactly what I… by Stefan Straka
Should be all actions that have a shortcut definition.
See the array at https://github.com/musescore/MuseScore/blob/v2.3.1/mscore/shortcut.cpp#… 3rd property of each entry is the string to pass into the cmd argument.
In reply to Should be all actions that… by jeetee
Great, thanks!