syncopika / mmp-to-MusicXML

convert LMMS mmp files to MusicXML
https://syncopika.github.io/mmp-to-MusicXML/
5 stars 2 forks source link
converter lmms mmp musescore music musicxml

🎶 .mmp to MusicXML 🎶

A Python module that attempts to convert .mmp files (which are XML files :D) to MusicXML files so that you can import them to MuseScore!

The idea is to help provide significant time savings in getting your music from LMMS to sheets. :)

Try it in the browser! https://syncopika.github.io/mmp-to-MusicXML/

USAGE:

Run python convert-mmp.py [file path to an .mmp file] or import the module into another script and use it there. There are a few optional arguments you can supply, e.g. to check if certain instrument notes fall out of the expected range (via -c) or to set the key signature of the piece (via -k). See python convert-mmp.py -h for more details and options.

The output will be named whatever the file's name is as an xml file in the same directory. You can then use MuseScore to view it. I've not tested with other notation software.

some things to note as of now:

You can try out the script with the included test .mmp files, or check out some of my results in /example_output!

For testing, I used pytest, which you can install via pip install pytest. You can run the tests just by entering pytest while in the project directory.

I also have some documentation made with Sphinx in docs/build/html.

Turn this:
lmms .mmp project

which is actually something like this:
lmms .mmp project in xml

into this:
musicxml file from .mmp into MuseScore