]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4879: Display \time beat structure as list
authorDavid Kastrup <dak@gnu.org>
Fri, 3 Jun 2016 14:46:20 +0000 (16:46 +0200)
committerDavid Kastrup <dak@gnu.org>
Thu, 9 Jun 2016 07:55:30 +0000 (09:55 +0200)
Example: \displayLilyMusic \time 1,2 3/4

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)))))