From da5455debc2cbd54cac454dded7db87381c9d23c Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 30 Oct 2007 00:02:04 +0100 Subject: [PATCH] MusicXML: Convert string information For tab staves and voices, we will need to convert the number to lilypond to lilypond's \1, ..., \6 commands. So far, the tab staff is not yet created, so these commands do not have any effect yet, but they will be needed in the near future. --- scripts/musicxml2ly.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 3adc084450..3c4cef063e 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -584,6 +584,11 @@ def musicxml_fingering_event (mxl_event): ev.type = mxl_event.get_text () return ev +def musicxml_string_event (mxl_event): + ev = musicexp.NoDirectionArticulationEvent () + ev.type = mxl_event.get_text () + return ev + def musicxml_accidental_mark (mxl_event): ev = musicexp.MarkupEvent () contents = { "sharp": "\\sharp", @@ -647,7 +652,7 @@ articulations_dict = { "staccato": (musicexp.ShortArticulationEvent, "."), "stopped": (musicexp.ShortArticulationEvent, "+"), #"stress": "", - #"string": "", + "string": musicxml_string_event, "strong-accent": (musicexp.ShortArticulationEvent, "^"), #"tap": "", "tenuto": (musicexp.ShortArticulationEvent, "-"), -- 2.39.5