From: Reinhold Kainhofer Date: Mon, 24 Mar 2008 19:25:17 +0000 (+0100) Subject: MusicXML: Convert accidental-marks on notes X-Git-Tag: release/2.11.43-2~3^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7e87dae3fb9cbef40552f51674d5d16532e3f2b4;p=lilypond.git MusicXML: Convert accidental-marks on notes Unfortunately, accidental-mark tags are direct children of and not inside an , or tag, so we have to treat them manually, like fermatas... --- diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 622cba2e8b..a429b75251 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -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 ! + 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 |