Export Notes plugin

• Oct 12, 2011 - 02:03

I wanted to develop a plugin to retried all the note information and write to a text file. My intention
was to convert this into another typesetting system, but I have abandoned this project as I have decided
to stay with using Musescore.

I have also attached a Python script which converts the exported notes into an SVG (XML) file which can be
opened with Inkscape (www.inkscape.org) or your web browser. I exported the Promenade from
Mussorgsky's Pictures at an exhibition (packaged with Musescore) to show as an example.

1. Install the plugin
2. Open the Mussorgsky score with Musecore
3. Run the plugin ExportNotes and save the file as mussorgsky.csv
4. python notes2pianoroll.py mussorgsky.csv > mussorgsky.xml
5. Open mussorgsky.xml with Inkscape, resize and export to PDF.

I hope the plugin is of some interest.

Charles

P.S The notes2pianoroll.txt should be renamed to notes2pianoroll.py
ExportNotes.txt should be renamed ExportNotes.js then copied to the plugins folder

Attachment Size
notes2pianoroll.txt 3.35 KB
Mussorgsky.pdf 4.79 KB
ExportNotes.txt 5.54 KB

Comments

The first line should read: I wanted to develop a plugin to retrieve all the note information and write to a text file.

I thought it would be easy to get the note information in a text file then use Python (py preferred scripting language) to do the hard conversion work. I needed a lot more score information and these details are contained in the MusicXML format.

Plugins are great for modifying the score in place (colorising notes for example) but MusicXML is the best way for interchanging music information. I have already started work on a Python script to read MusicXML using the minidom module http://docs.python.org/library/xml.dom.minidom.html

Has anyone already written a Python program to read MusicXML?

Charles

In reply to by ozcaveman

Since you are familiar with python, you should definitely take a look to music21. It can read and write MusicXML and it gives facility to manipulate the loaded model. Moreover, it can import/export other formats and display the result in MuseScore (or other software) using MusicXML output.

I know this is super old but this is perfect for me but I can't seem to get the plugin to work - I renamed the file to a .js extension and put it in the plugins folder but can't find it anywhere - any ideas?

Cheers!

Do you still have an unanswered question? Please log in first to post your question.