From: Erlend Aasland Date: Mon, 4 Feb 2008 10:02:53 +0000 (+0100) Subject: MusicXML: Add doit and falloff articulations. X-Git-Tag: release/2.11.39-1~1^2~23 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2a8a5dfc4c5f42b693ee4730d7a6223430db5dba;p=lilypond.git MusicXML: Add doit and falloff articulations. --- diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 45e6334420..c04101870c 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -781,6 +781,16 @@ def musicxml_tremolo_to_lily_event (mxl_event): ev.bars = "3" return ev +def musicxml_falloff_to_lily_event (mxl_event): + ev = musicexp.BendEvent () + ev.alter = -4 + return ev + +def musicxml_doit_to_lily_event (mxl_event): + ev = musicexp.BendEvent () + ev.alter = 4 + return ev + def musicxml_bend_to_lily_event (mxl_event): ev = musicexp.BendEvent () ev.alter = mxl_event.bend_alter () @@ -838,10 +848,10 @@ articulations_dict = { #"caesura": "caesura", #"delayed-turn": "?", "detached-legato": (musicexp.ShortArticulationEvent, "_"), # or "portato" - #"doit": "", + "doit": musicxml_doit_to_lily_event, #"double-tongue": "", "down-bow": "downbow", - #"falloff": "", + "falloff": musicxml_falloff_to_lily_event, "fingering": musicxml_fingering_event, #"fingernails": "", #"fret": "",