]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Convert accidental-marks on notes
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 24 Mar 2008 19:25:17 +0000 (20:25 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 24 Mar 2008 19:25:17 +0000 (20:25 +0100)
Unfortunately, accidental-mark tags are direct children
of <notations> and not inside an <articulations>, <ornaments>
or <technical> tag, so we have to treat them manually, like
fermatas...

scripts/musicxml2ly.py

index 622cba2e8b41b78dcb55707bd901119660ebea2e..a429b752510dbcb104937f080be03548f4493572 100644 (file)
@@ -1648,7 +1648,13 @@ def musicxml_voice_to_lily_voice (voice):
                 ev = musicxml_spanner_to_lily_event (a)
                 if ev:
                     ev_chord.append (ev)
-                
+
+            # accidental-marks are direct children of <notation>!
+            for a in notations.get_named_children ('accidental-mark'):
+                ev = musicxml_articulation_to_lily_event (a)
+                if ev:
+                    ev_chord.append (ev)
+
             # Articulations can contain the following child elements:
             #         accent | strong-accent | staccato | tenuto |
             #         detached-legato | staccatissimo | spiccato |