]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-mudela.py
release: 1.1.8
[lilypond.git] / scripts / convert-mudela.py
index f8b10a9080a0f07e8a456607c1e9f8c4f30a0dc9..19288a08b4569b75ebae70769999d941dbd96041 100644 (file)
@@ -239,6 +239,23 @@ if 1:
        
        conversions.append ((1,0,7), conv, '\\lyric -> \\lyrics')
 
+if 1:
+       def conv(lines):
+               newlines =[]
+               for x in lines:
+                       x =  re.sub ('\\\\\\[/3+', '\\\\times 2/3 { ',x)
+                       x =  re.sub ('\\[/3+', '\\\\times 2/3 { [',x)
+                       x =  re.sub ('\\\\\\[([0-9/]+)', '\\\\times \\1 {',x)
+                       x =  re.sub ('\\[([0-9/]+)', '\\\\times \\1 { [',x)
+                       x =  re.sub ('\\\\\\]([0-9/]+)', '}', x)
+                       x =  re.sub ('\\\\\\]', '}',x)
+                       x =  re.sub ('\\]([0-9/]+)', '] }', x)
+
+                       newlines.append (x)
+               return newlines
+       
+       conversions.append ((1,0,10), conv, '[2/3 ]1/1 -> \\times 2/3 ')
+
 
 ############################