]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Cleanup voice handling and fix lyrics order for multiple stanzas
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 28 Oct 2007 13:27:58 +0000 (14:27 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 28 Oct 2007 13:27:58 +0000 (14:27 +0100)
commita6b06bf30f640efa35c5ac51bbb5b6cfc09de668
treed5bd93148d96d8e1691e944f6a05429c3f913158
parent99b3fe7876cdf739199cb92ea2f42470b8f082d6
MusicXML: Cleanup voice handling and fix lyrics order for multiple stanzas

So far, multiple stanzas were handled by a dict, indexed by the voice ID.
However, the order of the elements in a dict is not defined (in particular,
the order is not preserved), so the stanzas got reordered and lost their
sorting.
Furthermore, each voice (with the associated lyrics and the raw data) was
handled by nested lists, which were really complicated to work with (since
one always had to remember the structure of these lists). I now use a
class/struct instead for each voice, which is much more intuitive!
input/regression/musicxml/06b-MultipleLyrics-Finale.xml
scripts/musicxml2ly.py