]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Add doit and falloff articulations.
authorErlend Aasland <erlend.aasland@mac.com>
Mon, 4 Feb 2008 10:02:53 +0000 (11:02 +0100)
committerErlend Aasland <erlend.aasland@mac.com>
Mon, 4 Feb 2008 10:02:53 +0000 (11:02 +0100)
scripts/musicxml2ly.py

index 45e6334420d155d4fe18852e025ef34ff1e5b338..c04101870c6459a33f9a61ad89db6bb3efd93811 100644 (file)
@@ -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": "",