]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Implement Barline styles and repeats in musicxml2ly
authorReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 19 Oct 2007 00:52:38 +0000 (02:52 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 19 Oct 2007 00:52:38 +0000 (02:52 +0200)
commitdb57aab7205cb050f225d4a6698664ecad65d5d2
tree75dbf6d4f165a3bed5f9d9574e649699426daf7b
parentc25fa09c277d02f0b793a545464e682111abc527
MusicXML: Implement Barline styles and repeats in musicxml2ly

-) The <barline> element is now converted to a \bar"...." lilypond
   expression. Not all bar styles from MusicXML are supported by lilypond,
   though.

-) Convert repeats and alternative endings from MusicXML to lilypond.
   While lilypond has a nice hierarchy (i.e. nested music) for repeating
   structures, MusicXML only has markers "here starts/ends a repeat or
   altern.ending", so I need to somehow build up that repeat hierarchy
   from the flat data. I've imlemented this via a loop that looks for
   a repeat structure, replaces that one repeat by a proper instance
   of musicexp.RepeatedMusic. Since I directly modify the list of
   event chords, after replacing one repeat, I have to start the
   whole loop from the start (because the iterators are off after
   the list is modified).

-) Add some more unit test files for barlines and repeating structures
   (some even do not make sense from a musical point of view)

-) Fix typo in the coverage/regression tests make file
13 files changed:
input/regression/musicxml/09a-Repeats-Finale.xml [deleted file]
input/regression/musicxml/09a-SimpleRepeat-Finale.xml [new file with mode: 0644]
input/regression/musicxml/09b-Barlines-Finale.xml [deleted file]
input/regression/musicxml/09b-RepeatWithAlternatives-Finale.xml [new file with mode: 0644]
input/regression/musicxml/09c-Barlines-Finale.xml [new file with mode: 0644]
input/regression/musicxml/09d-RepeatMultipleTimes-Finale.xml [new file with mode: 0644]
input/regression/musicxml/09e-Alternatives-Finale.xml [new file with mode: 0644]
input/regression/musicxml/09f-Repeats-Finale.xml [new file with mode: 0644]
input/regression/musicxml/09g-Endings-Finale.xml [new file with mode: 0644]
input/regression/musicxml/GNUmakefile
python/musicexp.py
python/musicxml.py
scripts/musicxml2ly.py