]> git.donarmstrong.com Git - lilypond.git/commitdiff
\partial now only makes measurePosition negative at the beginning of a score.
authorDevon Schudy <dschudy@gmail.com>
Fri, 4 Apr 2014 13:08:03 +0000 (09:08 -0400)
committerDavid Kastrup <dak@gnu.org>
Fri, 4 Apr 2014 19:52:28 +0000 (21:52 +0200)
This is more consistent, and means it doesn't disrupt bar numbers when used
at the beginning of a measure or after \time. (issue 3888)

This changes the semantics for issue 3645 in commit
2d34420eaf1ffdb620739e4640af42c0b3f812c1.

Documentation/notation/rhythms.itely
lily/partial-iterator.cc

index c0e88b3e277830c24041b0e29acb1ad239bb9465..9ca613ed753d4e025dac2bbfdcd9d3a4fb3ce5b1 100644 (file)
@@ -1433,11 +1433,10 @@ The property @code{measurePosition} contains a rational number,
 which is usually positive and indicates how much of the measure
 has passed at this point.  @code{\partial @var{duration}} is
 defined such that no numbered bar gets created: when used at the
-beginning of a measure, @code{measurePosition} is set to a
+beginning of a score, @code{measurePosition} is set to a
 negative number, implying that the current bar will be
-@emph{preceded} by additional material.  When used after a measure
-has already started, however, it moves the requested distance
-before the @emph{end} of the bar.
+@emph{preceded} by additional material.  When used elsewhere, it
+moves the requested distance before the @emph{end} of the bar.
 
 @lilypond[quote,verbatim,relative=1]
 \set Score.barNumberVisibility = #all-bar-numbers-visible
index 37b2b603d55009093819c13f565e7697e98ab5ba..9ed7debe2f0820d8f66e0c21abb0d9dab76dda53 100644 (file)
@@ -58,7 +58,7 @@ Partial_iterator::process (Moment m)
           Moment mp = robust_scm2moment (timing->get_property ("measurePosition"),
                                          Rational (0));
 
-          if (mp.main_part_ > Rational (0))
+          if (get_outlet ()->now_mom () > 0)
             mp.main_part_ = measure_length (timing);
           else
             mp.main_part_ = 0;