Convert a MIDI file / track to pdf from the command line
I have been trying to do this for Windows but it does not seem to be working... I have the musescore bin folder in my path, and then I am trying to convert a midi file (the one used here has a single track of type 1) to a pdf file via the command line. I see no output and no display on STDOUT from MuseScore.
MuseScore -o "test.pdf" "drum_patterns.mid"
MuseScore.exe -o "test.pdf" "drum_patterns.mid"
MuseScore.exe -n "drum_patterns.mid" -o "test.pdf"
I've tried other combinations as well. In general the command line documentation page is in need of examples.
For reference, I am also attaching the MIDI file I am trying to convert.
Attachment | Size |
---|---|
drums_patterns.mid | 1.15 KB |
Comments
"C:\Program Files (x86)\MuseScore 2\bin\MuseScore.exe" -o foo.pdf drums_patterns.mid
works fine here, no output to the console, but it created the file.
You could also use the Batch Convert plugin, see https://musescore.org/en/project/batch-convert
In reply to C:\Users\Jojo\Desktop>"C:… by Jojo-Schmitz
Hm Thank you Jojo, your suggestion worked for me as well. I wonder why my examples were not working. Could it be because of the use of quotation marks? Well, thanks a lot in any case.
In reply to Hm Thank you Jojo, your… by George Datseris
I don't have "C:\Program Files (x86)\MuseScore 2\bin" in PATH, so need to fully specify it, and need the quotes because the pathname contains spaces