]> git.donarmstrong.com Git - lilypond.git/commitdiff
Simplify tremolo display (issue 3783)
authorDavid Kastrup <dak@gnu.org>
Fri, 10 Jan 2014 13:52:23 +0000 (14:52 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 15 Jan 2014 10:11:20 +0000 (11:11 +0100)
input/regression/display-lily-tests.ly
scm/define-music-display-methods.scm

index 10dccdded23fe18fc05ba38c22ff89e8b3d2f09b..3b99a96bc2ad07b8a3a3cb73c1a360afc826fe1f 100644 (file)
@@ -107,7 +107,7 @@ stderr of this run."
 \test ##[ c4 ~ #]                                      % TieEvent
 \test ##[ c\noBeam #]                                  % BeamForbidEvent
 \test ##[ c\1 #]                                       % StringNumberEvent
-\test ##[ { c: c:1 } #]                                        % TremoloEvent
+\test ##[ { c:8 c:1 } #]                               % TremoloEvent
 \test ##[ { c-^ c^^ c_^ } #]                           % ArticulationEvent
 \test ##[ { c-+ c^+ c_+ } #]
 \test ##[ { c-- c^- c_- } #]
index 431f9a6e954d31d22a90f185122539acca30a662..c4ed5344780bea8aedeed5aef4176bdee95e51b2 100644 (file)
@@ -167,10 +167,8 @@ expression."
 
 
 (define-display-method TremoloEvent (event parser)
-  (let ((tremolo-type (ly:music-property event 'tremolo-type)))
-    (format #f ":~a" (if (= 0 tremolo-type)
-                         ""
-                         tremolo-type))))
+  (let ((tremolo-type (ly:music-property event 'tremolo-type 8)))
+    (format #f ":~a" tremolo-type)))
 
 (define-display-method ArticulationEvent (event parser) #t
   (let* ((articulation  (ly:music-property event 'articulation-type))