]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-ly.py
add verbs.
[lilypond.git] / scripts / convert-ly.py
index e9bbe72dd5338c0b6c8f8ff8608466887325f35a..9326c6f399a654c6fd4d36a010fe0029e0457707 100644 (file)
@@ -47,10 +47,10 @@ input is guessed by default from \version directive
 
 Options:
   -h, --help             print this help
-  -e, --edit             in place edit
-  -f, --from=VERSION     start from version. Overrides \version found in file.
+  -e, --edit             edit in place
+  -f, --from=VERSION     start from version; overrides \version found in file
   -s, --show-rules       print all rules.
-  -t, --to=VERSION       target version
+  -t, --to=VERSION       show target version
   -n, --no-version       don't add new version stamp.
       --version          print program version
 
@@ -1238,6 +1238,15 @@ Please refer to the manual for details, and convert manually.
        
        conversions.append (((1,7,24), conv,"cluster syntax"))
 
+if 1:
+       def conv(str):
+               str = re.sub (r"\\property *Staff\.(Sustain|Sostenuto|UnaCorda)Pedal *\\(override|set) *#'pedal-type *",
+                               r"\property Staff.pedal\1Style ", str)
+               str = re.sub (r"\\property *Staff\.(Sustain|Sostenuto|UnaCorda)Pedal *\\revert *#'pedal-type", '', str)
+               return str
+       
+       conversions.append (((1,7,28), conv,"new Pedal style syntax"))
+
 
 
 ################################