musescore 4 CLI --score-transpose does nothing?

• Sep 10, 2023 - 22:55

Hi team,

I have a script that does a bit of processing on my scores, part of which is CLI transposition with the following invocation:

> mscore myfile.mscz --score-transpose '{"mode": "by_interval", "direction": "up", "transposeInterval": 4, "transposeKeySignatures": true}'

It works fine with MuseScore 3, but it seems that the mscz produced by MuseScore 4 isn't transposed at all, though everything seems to work fine. Inside the encoded mscz output I can find a "MercyMercyMercy_transposed.997894.mscx" file, which content is exactly identical to the mscx in my original mscz.

Am I doing something wrong? I have tried with a freshly-compiled musescore, master branch and with MuseScore 4.1.1, they behave just the same.

I am attaching my original file (MercyMercyMercy.mscz) and the produced mscz (tmp_conductor.mscz).

Thanks for your help!

Attachment Size
MercyMercyMercy.mscz 32.45 KB
tmp_conductor.mscz 31.65 KB

Comments

Did you manage to solve this? I have the exact same problem. Using 4.3.1 and today's nightly build, and all of the returns the same .mscz file, completely ignoring the --score-transpose options (i am also using -o score.pdf on the CLI)

In reply to by bobjp

It is not a script - is just the ability to transpose a file from the CLI (command line interface). Many people that have a large library of scores that need to be transposed to instruments in different tuning (Bb for clarinets, Eb for Sax Alto, etc) rely on this feature, that can be done manually, but would be much much easier if automated.

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