Is it possible to change the instrument for a single part with the API or CLI?

• Apr 3, 2024 - 02:41

Hello,

I'm new to MuseScore and looking for a solution to programmatically transpose parts/staves of a score so they can be played by various other instruments.

In the GUI this can be achieved by right-clicking a staff, selecting "Staff/Part Properties", and then selecting a new instrument. The staff is then transposed up/down to the new instrument's key and there are also some skill-based range settings.

Is it possible to do this via the Plugin API or CLI? I've been digging through the web docs and doxygen Plugin API reference, but the web docs in particular are difficult to parse, and the Part class exposed by the API doesn't seem to really have any member methods that would facilitate this. I also didn't see anything in the shortcut portion of the code for use with the cmd() function.

Am I missing anything, or is it just not possible at the moment?

Thanks in advance!

Do you still have an unanswered question? Please log in first to post your question.