> ------- Original Message -------
> From: "Carl D. Sorensen" <c_soren...@byu.edu>
> To: "Anthony W. Youngman" <lilyp...@thewolery.demon.co.uk>, 
> "lilypond-user@gnu.org" <lilypond-user@gnu.org>
> Sent: 15.5.09, 23:43:07
> Subject: Re: relative mode occasionally gets forgotten?
> 
> 
> 
> On 5/15/09 3:06 PM, "Anthony W. Youngman" <lilyp...@thewolery.demon.co.uk>
> wrote:
> 
> > In message <200905151909580...@1654122929>, David Pounder
> > <pound...@lineone.net> writes
> >> 
> >> I don't know if it's worth mentioning, but you can also run into
> >> problems using \repeat inside a \relative block if an \unfoldRepeats is
> >> used outside the block. For example in
> >> 
> >> Tune = \relative c' { \partial 4 d4 |
> >>    \repeat volta 2 { c4 d e g | }
> >> }
> >> 
> >> the first c will be relative to the last g on the second play through
> >> using \unfoldRepeats. Rewriting as
> >> 
> >> Tune = { \partial 4 d'4 |
> >>    \repeat volta 2 \relative c' { c4 d e g | }
> >> }
> >> 
> >> resolves the problem. I try to make sure I keep \relatives at the
> >> innermost block for this reason. Is this a case of programming style,
> >> and should the docs cover it?
> >> 
> > Han-Wen gave me a resetOctave function that deals with this. I don't
> > know if it's made its way into the docs, though.
> 
> I just use the octave check construct and ignore the warning.
> 
> Carl
> 

That works, but makes it harder to see useful warnings as they fly up the 
screen. I suppose it just comes down to personal preference - it took me a 
couple of years to realise I could get rid of the warnings by changing where I 
put the \relatives - so to speak.

Dave.


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to