]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #691: setting \tempo without duration shouldn't print a duration
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 6 Oct 2008 15:34:51 +0000 (17:34 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 6 Oct 2008 19:43:59 +0000 (21:43 +0200)
We can turn off the printing of (dur=count) by simply unsetting the count and duration properties (they are unset in the beginning, so I don't think this will break anything, but then, I'm not totally sure...)
Also added a show regtest for this case.

input/regression/metronome-text.ly
scm/ly-syntax-constructors.scm

index ed493ce7d0d5edc83abad499d0b915a03fac02fe..ec771c57babe1f047be5b82764c8eb42d9e22b2a 100644 (file)
@@ -31,5 +31,7 @@ Score.hideTempoNote, one can hide the duration=count in the tempo mark.
   \tempo 8=80 c1
   \tempo "Allegro" 8=80 c1
   \tempo 8=80 c1
-
+  
+  % Unsetting the count using only text
+  \tempo "no note (text-only)" c1
 }
index 4479d01d3191f8c794338be8beb1896f8505a4ba..584dd6b3e17943623010c56e969c406ca94d3674 100644 (file)
@@ -97,6 +97,8 @@
   (context-spec-music
    (make-sequential-music
     (list
+     (make-property-unset 'tempoUnitDuration)
+     (make-property-unset 'tempoUnitCount)
      (make-property-set 'tempoText text)))
    'Score))