lilypond-user
[Top][All Lists]
Advanced

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

Re: addFingering


From: David Kastrup
Subject: Re: addFingering
Date: Fri, 13 Jan 2017 18:26:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Gianmaria Lari <address@hidden> writes:

> I probably figured out the reason of this behavior. The function
> "addFingering" is evaluated before evaluating the repeat. So lilypond
> evaluate this
>
> \addFingering  {\repeat unfold 2 {a b}} #"12"
>
>
> as
>
>   \repeat unfold 2 {a-1 b-2}
>
> instead of
>
> \addFingering  {a b a b} #"12"
>
>
> But why? Is it possible to change it?

\repeat unfold is not evaluated at all.  It stays a repeat expression
until it gets interpreted.  One reason it is implemented that way is in
order to keep the repeats in

\relative c' { \repeat unfold 4 { c e g } }

in the same octave rather than get

\relative c' { c e g c e g c e g c e g }

which crosses four octaves.

-- 
David Kastrup



reply via email to

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