From: Reinhold Kainhofer Date: Mon, 6 Oct 2008 15:34:51 +0000 (+0200) Subject: Fix #691: setting \tempo without duration shouldn't print a duration X-Git-Tag: release/2.11.62-1~25^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7e2d3e7e87fa65f5b67ffa64a4749c952debf048;p=lilypond.git Fix #691: setting \tempo without duration shouldn't print a duration 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. --- diff --git a/input/regression/metronome-text.ly b/input/regression/metronome-text.ly index ed493ce7d0..ec771c57ba 100644 --- a/input/regression/metronome-text.ly +++ b/input/regression/metronome-text.ly @@ -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 } diff --git a/scm/ly-syntax-constructors.scm b/scm/ly-syntax-constructors.scm index 4479d01d31..584dd6b3e1 100644 --- a/scm/ly-syntax-constructors.scm +++ b/scm/ly-syntax-constructors.scm @@ -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))