A simple python library for exporting MusicXML.


Keywords
music-composition, music-notation, musicxml, python, python-library
License
GPL-3.0
Install
pip install pymusicxml==0.5.5

Documentation

pymusicxml

pymusicxml is a simple python library for exporting (and perhaps in the future, importing) MusicXML files, modelling them in a hierarchical and musically logical way. Although MusicXML can simply be created using xml.etree.ElementTree, it is a confusing process: for instance, objects like tuplets and chords are created using note attributes in the MusicXML standard. In pymusicxml, they are modelled as containers.

See the examples folder for an example of an explicitly created and exported score, as well as an algorithmically created and exported score.

pymusicxml is part of scamp, a Suite for Computer-Assisted Music in Python.