lilypond-user
[Top][All Lists]
Advanced

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

Re: relative mode occasionally gets forgotten?


From: Anthony W. Youngman
Subject: Re: relative mode occasionally gets forgotten?
Date: Sat, 16 May 2009 11:38:29 +0100
User-agent: Turnpike/6.05-U (<0Qb6TB58PTyLC3mvJ2S+2+M1Sj>)

In message <address@hidden>, Carl D. Sorensen <address@hidden> writes
On 5/15/09 3:06 PM, "Anthony W. Youngman" <address@hidden>
wrote:

In message <address@hidden>, David Pounder
<address@hidden> 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.

Example of resetOctave and its use attached ...

Attachment: voiceTromboneI.ly
Description: voiceTromboneI.ly


Cheers,
Wol
--
Anthony W. Youngman - address@hidden


reply via email to

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