how to make MIDI import operations file to use when invoking musescore from command line?
I notice on https://musescore.org/en/handbook/command-line-options-0 there is:
-M, --midi-operations
Specify MIDI import operations file
That sounds like something to set things like "Max quantiziation", "Max voices", "Is human performance" and everything else in the midi import panel. I'd like to use something like that now. The problem is I can't figure out from the documentation how this file is supposed to look, or how to generate such a file. Does anyone know the format/syntax for this file?
Comments
My opinion is: nothing more than: musescore -M "yourmidifile.mid". (you know this, already)
:(
I checked the code for you (because I couldn't find it anywhere either), and starting from the current version in code (https://github.com/musescore/MuseScore/blob/67b189f8dfccc2691a4e3f3bf8e…) I deducted the attached example file.
Disclaimer: this is purely going by what I've read in the code when it tries to open the file for that command line argument. This has not been tested by me
If you are willing to test this out and let us know if/what works and what doesn't; then we can add this example to the handbook afterwards.
In reply to I checked the code for you by jeetee
I've tested this out and it seems to work. Please add to the handbook (or should I?). Should we make a separate page on the handbook describing this xml file, or should just link to the file in the command line options? (I'm thinking a sepearate page might help for people who google "MuseScore MIDI importa operations file")
(As you mentioned in your file, "0" corresponds to 1 voice...I got a bit confused by that 0-based counting thinking it was an error! Just making a note to others for posterity to not be confused by that.)
In reply to I've tested this out and it by ericfontainejazz
handbook page update with the attachment.
Thank you for verifiying eric!
In reply to I checked the code for you by jeetee
I was also going to say, trigger's code doesn't have an option to import TimeSignature. I think that is necessary for completness sake #185471: MIDI import operations file import include option for Time Signature.