Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MU4 Task] Getting a very similar to Issue #15864 on MU4 Command-line Usage #16221

Open
DracoDaine opened this issue Feb 5, 2023 · 3 comments
Assignees

Comments

@DracoDaine
Copy link

Issue & Scope
MuseScore 4.0.1, in the command-line for Windows 11 CMD. I'm having some trouble with the -j | --job, & -o | --export-to args. I followed the docs to the letter of: MuseScore4.exe [options] [filename …] (Windows) (example syntax). I followed the example json, and wrote it on Notepad++.
However, when I execute command: MuseScore4.exe -j batch.json or MuseScore4.exe --job batch.json, nothing happened (curiously enough), not even an error thrown to the command-line or any new process or uptick usage in my Task Manager.
So, I checked to see if version 4.0.1 had command-line functioning (hoping it was simple user error) by using some of the other commands: MuseScore4.exe -v works & MuseScore4.exe -h works.
Went to try out single case usage: MuseScore4.exe -o "in_file.mid" "out_file.wav" and MuseScore4.exe --export-to "in_file.mid" "out_file.wav" nothing again (either in error or uptick in Task Manager).
I thought maybe my usage was wrong: the docs says: mscore -o 'My Score.pdf' 'My Score.mscz'.
Seems to be no, but I tried a different way anyways: MuseScore4.exe "in_file.mid" -o "out_file.wav" and MuseScore4.exe "in_file.mid" --export-to "out_file.wav" with again, no errors & no uptick in Task Manager.
I can only conclude with evidence & limited understanding (I maybe wrong) of MuseScore4, it seems to be passing errors silently or at the very least not recognizing|parsing job or export commands to internal handler for some reason.

Possibly Related ...
Curiously, when I downgraded to MuseScore3 (Ver: 3.6.2) everything worked, except -o | --export-to. That did work when I used the incorrect: MuseScore4.exe "in_file.mid" -o "out_file.wav" and MuseScore4.exe "in_file.mid" --export-to "out_file.wav"
instead of (suggested): MuseScore4.exe -o "in_file.mid" "out_file.wav". This makes me wonder if it could be related with Version 4.0.1 issue, stated above in code & help|usage doc error|bugs.

@JensJensenPublic
Copy link

I see a similar behaviour when running Musescore 4.0.1 with a. Json file as argument. I activate ms4 by creating a new cmd line process from within a c# .net program on windows 10. No action and Exitcode 0.
Using 3.6.2 everything works perfekt.
Using 4.0 1 for the same operation from the UI aldo works perfect.
I conclude that the problem is related to running .json files from cmdline in 4.0.1.

@KoenTanghe
Copy link

Not the same thing, but somewhat related (and perhaps helpful for other people finding this issue): I'm also seeing a regression issue with the export of .mpos / .spos file using the command line in MuseScore 4.0.1 vs 3.6.2. Logged here: #16710

@ThePython10110
Copy link

| MuseScore4.exe -o "in_file.mid" "out_file.wav"
This is wrong. It should be MuseScore4.exe -o outfile infile or MuseScore.exe infile -o outfile.
outfile is an argument for -o or --export-to, and must occur after it, but infile can basically be wherever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants