Introduction
Warning
This documentation is still under construction!
Tested with python 3.9, 3.10 and 3.11
musicscore is a python library for generating MusicXML data in an intuitive and easy but nevertheless exhaustive way. The generated files can be imported in several music notation programs and be processed further if necessary. The preferred software is Finale which seems at the moment to have the best implementation of MusicXML format files and supports version 4.0.
musicscore depends heavily on the library musicxml which allows an object oriented and comprehensive approach to MusicXML format.
The main classes of musicscore are arranged in a tree structure which is roughly based on the tree structure of the <score-partwise> element. The MusicTree (a child class of the absract class Tree) is used as parent of all the following classes:
Score(root)
Part(1st layer)
Measure(2nd layer)
Staff(3rd layer)
Voice(4th layer)
Beat(5th layer)
Chord,RestorGraceChord(6th layer)
Note(7th layer)
Midi(8th layer) Midi can represent a pitch or a rest (value=0) and controls accidental sign of the pitch if necessary.
Accidental(9th layer)
See also Installation and Examples.