The MusicXML tutorial is not clear enough as to how the number in the <divisions>
element is initialized in MusicXML. Is it related to MIDI files? Because I have cross checked with different samples having the same time signatures and the number keeps changing.
How <divisions> specified in MusicXML
721 Views Asked by Joyston At
2
Divisions is an arbitrary number to allow you to specify the durations of notes independently from from the "type" of note.
You specify the
<divisions>
as part of the measure attributes, where it means "number of divisions per quarter note".Then for each note within the measure you specify
<duration>
which determine the note's length as a fraction of one quarter note.So in the following example, within the attributes group we are stating that there are 4 divisions per quarter note. Then, in the first note, which is a quarter note, we are stating that the note lasts for 4 divisions. The next note is an eighth note so we state that it lasts for 2 divisions, and so on...