From: Reinhold Kainhofer Date: Mon, 29 Oct 2007 23:02:04 +0000 (+0100) Subject: MusicXML: Convert string information X-Git-Tag: release/2.11.35-1~56 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=da5455debc2cbd54cac454dded7db87381c9d23c;p=lilypond.git 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. --- 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, "-"),