lilypond-user
[Top][All Lists]
Advanced

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

Re: \repeat unfold has problems inside \repeat volta


From: David Kastrup
Subject: Re: \repeat unfold has problems inside \repeat volta
Date: Fri, 01 Jul 2022 12:32:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Michael Gerdau <mgd@qata.de> writes:

>> this is not a bug. You’re supposed to put the alternative after the repeat
>> part not inside, so \repeat volta 2 { ... } \alternative { ... }. The way you
>> have put it the \alternative ... is used as alternatives for the \repeat
>> unfold (as it is placed after that one), so after the first repeat you get 
>> the
>> first alternative, after the second repeat the second alternative, which is
>> exactly what you are seeing here.
>
> Thanks for the explanation.
> Apparently I misread the documentation.

I don't think so.  The problem is that repeats now support putting the
\alternative phrase inside of the construct since that is a saner way of
doing things.  But the previous way is still supported for compatibility
reasons.  Your input file could be interpreted either way, and the way
LilyPond interprets it is not the one you intended.

This is a design problem I think, and not a matter of you misreading the
documentation.  No idea what a long-term resolution would look like.

You can likely write

\repeat unfold 8 { ... } \alternative { } ...

in order to quench the \repeat unfold's thirst for an alternative.

It would probably be better if the default resolution was in direction
of the new syntax, but I don't think that this is trivial.

-- 
David Kastrup



reply via email to

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