]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/time-signature.cc
Issue 3286: add single-C time signature style
[lilypond.git] / lily / time-signature.cc
index 96ab19758135ee9d5811156c642dcbd5df39ab71..c85b891932cf036c74d8f768214fe4d20394d117 100644 (file)
@@ -68,6 +68,14 @@ Time_signature::special_time_signature (Grob *me, SCM scm_style, int n, int d)
 
   if ((style == "default") || (style == ""))
     style = ::to_string ("C");
+  else if (style == "single-C")
+    {
+      if ((n != 2) && (n != 4))
+        return numbered_time_signature (me, n, 0);
+      /* for any d, print 2/d as cut-C, 4/d as C */
+      style = ::to_string ("C");
+      d = n;
+    }
 
   if (style == "C")
     {