]> git.donarmstrong.com Git - lilypond.git/commitdiff
convert-ly rule for simplifying \stringTuning
authorDavid Kastrup <dak@gnu.org>
Sun, 15 Sep 2013 14:14:50 +0000 (16:14 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 20 Sep 2013 15:08:23 +0000 (17:08 +0200)
python/convertrules.py

index ba65d9683d3fcdb13c9fc5d40f09ce264afb0a2b..854b8d2304f44e8f7efc5199c87b5cd87bd05f75 100644 (file)
@@ -3641,6 +3641,12 @@ def conv(str):
     str = re.sub (words + "|" + matchstring, wordreplace, str)
     return str
 
+@rule((2, 17, 27), r'''\stringTuning \notemode -> \stringTuning''')
+def conv(str):
+    str = re.sub (r"\\stringTuning\s*\\notemode(\s*)@?\{\s*(.*?)\s*@?}",
+                  r"\\stringTuning\1\2", str)
+    return str
+
 # Guidelines to write rules (please keep this at the end of this file)
 #
 # - keep at most one rule per version; if several conversions should be done,