From 2a8a5dfc4c5f42b693ee4730d7a6223430db5dba Mon Sep 17 00:00:00 2001 From: Erlend Aasland Date: Mon, 4 Feb 2008 11:02:53 +0100 Subject: [PATCH] MusicXML: Add doit and falloff articulations. --- scripts/musicxml2ly.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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": "", -- 2.39.5