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

how transform mscz into mid or wav? #1

Open
Akiiiira opened this issue Jun 23, 2020 · 7 comments
Open

how transform mscz into mid or wav? #1

Akiiiira opened this issue Jun 23, 2020 · 7 comments

Comments

@Akiiiira
Copy link

Akiiiira commented Jun 23, 2020

Hello, I want to download musescore mp3 and mid file dataset, and I'm interested in this script.
I could dowmload musescore dataset whose file format are mscz, however, I can't understand how to transform the mscz file into mid or wav file.
please tell me the procedure.

@Akiiiira Akiiiira changed the title is the getting musescore dataset possible? how transform mscz into mid or wav? Jul 1, 2020
@daxiangpanda
Copy link

1 Use musescore software
2 mscz is a zip file .
so u can unzip it with python and decode the mscx file and synth it with some kind of sinth program or convert it to midi file

@Akiiiira
Copy link
Author

Akiiiira commented Jul 15, 2020

Thank you for your replying.
I can unzip mscz file to [xml, mscx, png], but I can't understand how to convert mscx to mid file yet.
does any library to convert mscx file exist ?

@daxiangpanda
Copy link

mscx is a very complicate music data format.you could try music21(python) or other way like write some code yourself.

@PeterNjeim
Copy link

Thank you for your replying.
I can unzip mscz file to [xml, mscx, png], but I can't understand how to convert mscx to mid file yet.
does any library to convert mscx file exist ?

Simply open the mscz file in MuseScore (the free program from musescore.org, much different than musescore.com), and go to File > Export, and choose your desired file type

@katie-cathy-hunt
Copy link

Hi @PeterNjeim! Do you know if there is a command line program to convert mscx to midi?
I want to convert 100 of these to midi and doing it though the GUI would be too slow.

@PeterNjeim
Copy link

Hi @PeterNjeim! Do you know if there is a command line program to convert mscx to midi?
I want to convert 100 of these to midi and doing it though the GUI would be too slow.

https://musescore.org/en/handbook/3/command-line-options. Use the -o (or --export-to) option. You can create a script that finds all files in a folder and then converts them to midi using the musescore command line tool.

Example:

PS C:\Program Files\MuseScore 3\bin> .\MuseScore3.exe --export-to "$env:userprofile\Documents\MuseScore3\Scores\output.midi" "$env:userprofile\Documents\MuseScore3\Scores\input.mscz"

(in Windows PowerShell, syntax differs between OS's and shells).

@katie-cathy-hunt
Copy link

@PeterNjeim It worked. Thanks!

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

4 participants