batch processing for a big number of my own song sheets
Hello, I would like to perform batch processing in MuseScore using a plugin. I am interested in adjusting font sizes, titles, and replacing fonts. Are there any plugins for this already? I would also be willing to write a plugin for it. Where can I find the instructions on how to create a plugin?
Best regards,
Rolf Hocke
Comments
While waiting for comprehensive answers take a look at: https://musescore.org/it/project/batch-convert
and, eg.: https://musescore.org/en/node/351832 https://musescore.org/en/node/364727
In MuseScore 3.7 Evolution (see https://github.com/Jojo-Schmitz/MuseScore/wiki/) which reads MU3 and MU4 files, you can turn a plugin in a batch mode using cmd("next-score") (see miniX.qml attached). I have routinely processed 35-50 files at a time using this trick. I doubt this will work in MU4, because every file is launced as a separate instance.
miniX.qml
In reply to In MuseScore 3.7 Evolution … by elsewhere
Thanks. I'll try.
In reply to Thanks. I'll try. by rolfhocke
Here is what I have learned through trial and error while trying to do the same thing - I have about 50-70 pages I create for practicing various things over a jazz standard and I want them all styled a certain way without having to manually adjust things (as much as possible).
The key to what you want is to make a style sheet that configures your score to look the way you want and save that style as a specific style sheet you give a name to. You can configure just about everything you might want in the Style dialog box, specific fonts for titles, note spacing, line spacing, page sizes etc. Do the styling in the Style options itself, not on the elements and then those settings will apply to all the same elements in any future score you apply this style sheet to. It may take a while to get all the things the way you want.
You can then programmatically apply a style sheet to only a Muse .mscz file, no other formats. And this is the counter intuitive part, because you use the -o option for convert, but you are not actually converting it to some other format, you are simply applying the style sheet. The syntax is:
musescore -o file_to_style.mscz -S StyleToApply.mss file_to_style.mscz
You have to supply the full path to the muse app and the style sheet (and the file). You can use this command in a script to process an entire folder of things using a .bat file or AppleScript or python. As you can see, you are applying the convert option, but it is only one file, the only conversion is the application of the style sheet not the format, it doesnt go in muse and come out PDF or MIDI, which is what most of the time people are probably using convert for, not to turn a muse file into a muse file but with a different style applied.
Style sheets appear to only be applied to Muse files, not XML files, which to me would make more sense, then you can do the conversion and styling all in one step, but if you are using musicXML you have to make it a Muse document first, which you can also do using convert. As of 4.4.4 the option to apply a style sheet on import of an XML file appears broken.