From 7e87dae3fb9cbef40552f51674d5d16532e3f2b4 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Mon, 24 Mar 2008 20:25:17 +0100 Subject: [PATCH] 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... --- scripts/musicxml2ly.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 | -- 2.39.5