[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
- \repeat unfold has problems inside \repeat volta, Michael Gerdau, 2022/07/01
- Re: \repeat unfold has problems inside \repeat volta, Valentin Petzel, 2022/07/01
- Re: \repeat unfold has problems inside \repeat volta, Michael Gerdau, 2022/07/01
- Re: \repeat unfold has problems inside \repeat volta,
David Kastrup <=
- Re: \repeat unfold has problems inside \repeat volta, Michael Gerdau, 2022/07/01
- Re: \repeat unfold has problems inside \repeat volta, Simon Albrecht, 2022/07/02
- Re: \repeat unfold has problems inside \repeat volta, Jean Abou Samra, 2022/07/02
- Re: \repeat unfold has problems inside \repeat volta, Carl Sorensen, 2022/07/02
- LilyPond on macOS (was: \repeat unfold has problems inside \repeat volta), Jean Abou Samra, 2022/07/02
- Re: LilyPond on macOS (was: \repeat unfold has problems inside \repeat volta), Carl Sorensen, 2022/07/02
- Re: LilyPond on macOS (was: \repeat unfold has problems inside \repeat volta), Jean Abou Samra, 2022/07/02
- Re: LilyPond on macOS (was: \repeat unfold has problems inside \repeat volta), Hans Åberg, 2022/07/02
- Re: \repeat unfold has problems inside \repeat volta, Dan Eble, 2022/07/02
- Re: \repeat unfold has problems inside \repeat volta, Michael Gerdau, 2022/07/02