Batch conversion of file formats
Hi all,
I use MS 0.9.5 portable, it's great !
As I have loads of music files in different formats (mscx, xml, mid, and all BIAB formats), and Musescore can open all of them, I would be pleased to be able to convert them from one format to another at once without having to open them one by one. (ex mscx into xml, xml to mid, ... )
Do you think there is enough interest for this to implement it ?
thanks
Comments
If you are comfortable with the command line it is already possible to do batch processing
http://musescore.org/developers-handbook/command-line-options
http://musescore.org/en/node/4764#comment-16075
In reply to If you are comfortable with by David Bolton
Thanks,
The trick with the command line works fine for 1 file at a time.
I also tried: mscore "*.xml" -o "*.pdf" to convert a lot of files at once, but this didn't work ( or did I make a mistake ?)
The batch file mscz2pdf.bat does the job, but only for 1 type of conversion.
Wouldn 'it be helpfull to have a more general batch convertor ?
Personally I'm most interested in xml to mid/wav, mscz to mid/wav, sgu/mgu to mid/wav, but others might have different wishes ...
In reply to Batch conversion of file formats by odul
You can edit the .bat file to suit your needs. If you edit it you will see where it says
.mscz
and.pdf
just replace as needed!I tried to use the batch file (mscz2pdf.bat, adapted to my directory), but:
Musescore starts up and issues this error: "reading file 'bossa.mscz' failed: bad file descriptor"
Do you have any clue ?
thanks
In reply to I tried to use the batch file by odul
I'm not sure just from looking at the error. Could you attach the batch file and bossa.mscz?
Here they are:
(extention .bat renamed to .txt)
regards
In reply to Here they are: (extention by odul
In the batch file you would need to reference
App\MuseScore\bin\mscore.exe
directly, instead ofMuseScorePortable.exe
Apparently the portable program doesn't pass the command line parameters onto the actual mscore.exe.
In reply to In the batch file you would by David Bolton
In the batch file you should reference MuseScorePortable.exe, otherwise MuseScore is NOT portable and messes the registry, local appdata, appdata, temp ... . Then you might as well use the local MuseScore version.
FYI, the portable launcher passes all command line parameters onto the actual mscore.exe. Well, at least my version from PortableApps.com.
Cheers
In reply to Bad idea by Bart.S
Bart.S have you tried odul's batch script with MuseScorePortable.exe? It doesn't work for me (or odul apparently) if you reference MuseScorePortable.exe instead of mscore.exe.
In reply to Bart.S have you tried odul's by David Bolton
As far as I know, MuseScore (0.9.6) does not "mess the registry". the file associations are the only thing written to the registry, and it's done by the NSIS installer. Am I wrong?
In reply to As far as I know, MuseScore by [DELETED] 5
The following keys are created on every launch of MuseScore:
HKCU\Software\Trolltech\OrganizationDefaults\Qt Factory Cache 4.6\com.trolltech.Qt.QIconEngineFactoryInterface:\F:\PortableApps\MusescorePortable\App\MuseScore\bin\iconengines\qsvgicon4.dll: '2010-02-10T19:01:24'
HKCU\Software\Trolltech\OrganizationDefaults\Qt Factory Cache 4.6\com.trolltech.Qt.QIconEngineFactoryInterfaceV2:\F:\PortableApps\MusescorePortable\App\MuseScore\bin\iconengines\qsvgicon4.dll: '2010-02-10T19:01:24 svg svgz svg.gz'
HKCU\Software\Trolltech\OrganizationDefaults\Qt Plugin Cache 4.6.false\F:\PortableApps\MusescorePortable\App\MuseScore\bin\iconengines\qsvgicon4.dll: '40602 0 Windows mingw release full-config 2010-02-10T19:01:24'
As soon as you add some custom colors, these are stored at:
HKCU\Software\Trolltech\OrganizationDefaults\Qt\customColors
In reply to Bart.S have you tried odul's by David Bolton
I haven't tried odul's batch script. It's too complex for me. :P
But a simple batch script works flawlessly:
F:\PortableApps\MusesSorePortable\MuseScorePortable.exe "F:\PortableApps\MuseScorePortable\App\MuseScore\demos\prelude.mscx" -o "F:\prelude.pdf"
F:\PortableApps\MuseScorePortable\MuseScorePortable.exe "F:\PortableApps\MuseScorePortable\App\MuseScore\demos\adeste.mscx" -o "F:\adeste.pdf"
F:\PortableApps\MuseScorePortable\MuseScorePortable.exe "F:\PortableApps\MuseScorePortable\App\MuseScore\demos\promenade.mscx" -o "F:\promenade.wav"
Fantastic, it works !
Thank you very much.
regards
Hi,
I'm new to MuseScore and I have about 450 xml and musx files that I want to convert to mscz.
I've been trying to find the batch conversion plugin, having no luck.
In case it matters, I'm on a MacBook pro, 10.6.8
Thanks,
Duke Sharp
In reply to Hi, I'm new to MuseScore and by DS-GBT
You are aware that you resurrected an 5 years old thread?
Anyway, the plugin is at https://musescore.org/en/project/batchexport
In reply to You are aware that you by Jojo-Schmitz
I didn't know... why does that matter?
Thanks for the link, I'll see if I can make it work.
DS
In reply to I didn't know... why does by DS-GBT
It doesn't really matter, but that thread dates from a time long before that plugin existed.
In reply to Hi, I'm new to MuseScore and by DS-GBT
A couple of things it might be worth pointing out:
1) Currently it's not possible to convert Finale files to MuseScore files. You have to convert them to MusicXML first, and I'm not sure if there's a way to do that in batches.
2) Based on your hardware and OS information, I can surmise that you're running an old version of MuseScore. MuseScore 2 doesn't run on versions of OS X older than 10.7, but you might be able to upgrade your computer's operating system—it would be very much worth it.