]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Implement part-group (i.e. StaffGroup in ly) and part-name (instrumentName)
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 18 Sep 2007 20:51:59 +0000 (22:51 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 3 Oct 2007 16:39:42 +0000 (18:39 +0200)
commit45dbdc6b5fc4f475de5cd760500587b94eeeeef6
treeeb7250fadf51463ad961ff285114320896fa0658
parenta183ac5b6a45731e06d46581227f1d9b832eace4
MusicXML: Implement part-group (i.e. StaffGroup in ly) and part-name (instrumentName)

Implementing part-groups and their bracketing and span-bars turned out
harder than I imagined... I build one nested set of StaffGroup and Staff
objects from the part-list, including the instrument names and the bracket
types. However, to be able to distinguish single-staff staves and piano
staves and to assign the correct voices and lyrics to a part, I need
another loop after everything has been processed. In this additional
loop through the whole score structure I extract the voice and lyrics
ids assigned to each part and assign them the StaffGroup nested
objects.

Finally, printing everything out is quite simple.

Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
python/musicexp.py
python/musicxml.py
scripts/musicxml2ly.py