]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Use numericTimeSignature instead of TimeSignature style='()
authorReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 3 Dec 2008 23:45:58 +0000 (00:45 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 3 Dec 2008 23:46:33 +0000 (00:46 +0100)
python/musicexp.py

index d53815b03c11788feb67662fb4aba38e92704bfb..cab3c8d67f4303e70601e2ae920a020601ee0a19 100644 (file)
@@ -1485,8 +1485,12 @@ class TimeSignatureChange (Music):
         # signatures anyway despite the default 'C signature style!
         is_common_signature = self.fractions in ([2,2], [4,4], [4,2])
         if self.style:
-            if (self.style != "'()") or is_common_signature:
+            if self.style == "common":
+                st = "\\defaultTimeSignature"
+            elif (self.style != "'()"):
                 st = "\\once \\override Staff.TimeSignature #'style = #%s " % self.style
+            if (self.style != "'()") or is_common_signature:
+                st = "\\numericTimeSignature"
 
         # Easy case: self.fractions = [n,d] => normal \time n/d call:
         if len (self.fractions) == 2 and isinstance (self.fractions[0], int):