Export Notes plugin
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 Further clarification 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.
In reply to Since you are familiar with by [DELETED] 5
I reinstalled the Music21 package this evening along with various other packages - pyAudio, matPlotlib, numPy and more....
The package works and I can use MuseScore as the MusicXML viewer.
Charles
In reply to music21 by ozcaveman
Great! I'm looking forward to other things you could develop with it! Any ideas yet?
The SVG piano roll is nice!
FWIW, you can call a python script from a Musescore plugin (provided that python is installed on your computer). See http://musescore.org/en/plugin-development/how-plugin-development - Calling an external process.
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!
In reply to I know this is super old but by Andy Willers
You can't find what? The plugins folder or the plugin in the menu?
If you are using MuseScore 2.0, that plugin won't work at all.
In reply to I know this is super old but by Andy Willers
If you are using MuseScore 2.0, js plugins are not compatible anymore. If you explain exactly what you want to do in a new topic, maybe we can help further.
In reply to If you are using MuseScore by [DELETED] 5
That explains a lot! OK I'll make a new post.
Cheers!