]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/define-music-display-methods.scm
Issue 4879: Display \time beat structure as list
[lilypond.git] / scm / define-music-display-methods.scm
index a3b620469deeffea22a97c6b06acd35805c29324..42637cd16c0c5548b44395186893e0d96cdedd05 100644 (file)
@@ -859,7 +859,11 @@ Otherwise, return #f."
                 num den
                 (new-line->lily-string))
         (format #f
-                "\\time #'~a ~a/~a~a"
+                ;; This is silly but the latter will also work for #f
+                ;; and other
+                (if (key-list? structure)
+                    "\\time ~{~a~^,~} ~a/~a~a"
+                    "\\time #'~a ~a/~a~a")
                 structure num den
                 (new-line->lily-string)))))