Gianmaria Lari <gianmarial...@gmail.com> 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

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

Reply via email to