bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Let \partial 1*0 set TimingMeasurePosition to 0


From: David Kastrup
Subject: Re: Let \partial 1*0 set TimingMeasurePosition to 0
Date: Sat, 13 Sep 2014 21:16:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Dan Eble <address@hidden> writes:

>>I'm not top posting.
> \version "2.19.0"
>
> music = \relative b' {
>   \time 3/4
>   b4 b b | b2 \bar "||" \break
>   
>   % This adjustment to measurePosition is required to suppress
>   % the warning "\time in mid-measure...."
>   % 
>   % The notation reference says,
>   %
>   %     \partial duration can also be written as:
>   %       \set Timing.measurePosition -duration
>   %
>   % Assuming that the warning should remain because it is helpful
>   % more often than not, can this workaround be improved upon?
>   % I tried \partial 1*0, but it doesn't seem to be equivalent
>   % as the notation reference would have me believe.
>   \set Timing.measurePosition = #(ly:make-moment 0) % suppress warning

\partial now only does action at the end of its timestep.  You can
rewind time _before_ the b2.  Since you reset with another \partial
later, something stupid like \partial 1*3 will move far enough into the
past that \time 4/4 does not dare to complain.  And \partial 4 will then
rewind time.

>   \time 4/4
>   \partial 4
>   f4 | f f f f |
> }

I'm not convinced enough of that to recommend it in snippet/manual
though.  Behavior of \partial changed quite a bit over the last
versions.  Frankly, that code seems weird anyway...

-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]