musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.14k stars 2.63k forks source link

[MU4 Issue] exporting Parts PDFs using .json fails #19359

Open scobrado opened 1 year ago

scobrado commented 1 year ago

Exporting Parts using the .json below and the -j option in MS 4.1.1 it fails silently, however, it produces a separate file for each Part in MS 3.6.

[
    {
        "in": "/home/username/Documents/MuseScore/Scores/score.mscz",
        "out": "/home/username/Documents/OUT/score.pdf",
        "out": ["/home/username/Documents/OUT/score_", ".pdf" ]
    }
]

The musescore -P -o command line options make part PDFs available but not individually. Those converted parts are included in the PDF with the complete score, which is not good for me because the resulting book is not organized as desired. All the parts for one player should be separable from the rest of the scores IMHO.

I responded to this issue in https://musescore.org/en/node/319504.

Eism commented 1 year ago

It seems that MU4 does not know how to convert one score into several formats.

[
    {
        "in": "/home/username/Documents/MuseScore/Scores/score.mscz",
        "out":  [
                 "/home/username/Documents/MuseScore/Scores/score.pdf",
                 "/home/username/Documents/MuseScore/Scores/score.svg"
         ]
    }
]

But this conversion works

[
    {
        "in": "/home/username/Documents/MuseScore/Scores/score.mscz",
        "out": "/home/username/Documents/OUT/score.pdf",
    },{
        "in": "/home/username/Documents/MuseScore/Scores/score.mscz",
        "out": "/home/username/Documents/OUT/score.svg",
    }
]

We either need to restore functionality or correct the documentation https://musescore.org/en/handbook/4/command-line-usage#Batch_conversion_job_JSON_format

shoogle commented 1 year ago

This also works in MU3 but not MU4:

[
    {
        "in": "quartet.mscz",
        "out": [[ "quartet_", "_part.pdf" ]]
    }
]

In MU3 it produces:

Using this file as the quartet.mscz input:

(I created a separate file for MU4 because I wasn't sure if MU4 would detect parts created in MU3.)

If you change .pdf in the JSON to other supported formats, such as .mp3, .svg or .musicxml that also works in MU3, creating separate files with just the sound or notation from the part in question.

haklein commented 3 months ago

same issue here, this used to work perfectly in version 3 to export all parts as .svg:

[ { "in": "../satz/signale-parforce/Zum_Essen.mscz", "out": [ [ "/home/hari/musescore-output/marsch/signale-parforce/Zum_Essen-", ".svg" ] ] } ]

On Version 4 (all releases tried) it just exits without exporting anything.

haklein commented 3 months ago

@bkunda @shoogle this seems to be unassigned, are there any plans to address this MS3 regression? thanks, Hari

oktophonie commented 3 months ago

It has a community label so it's open for any community member who may wish to take it on.

Leo-Cal commented 1 month ago

Hi @oktophonie @shoogle @bkunda , I would like to be assigned this issue please!