On Thu, Oct 10, 2024 at 9:27 AM Lucas Cavalcanti <lucaspi...@gmail.com> wrote:
> Put brackets before and after the "repeat unfold 3". Don't know what > causes this bug, but it still happens in version 2.25.19. > > %% > \fixed c'' { > \repeat volta 2 { > {\repeat unfold 3 { c1 }} > \alternative { \volta 1 { d } \volta 2 { e } } } > c4 r r2} > %% > It also works if you put a pair of empty braces between the repeat and alternative: %%% \version "2.24.4" \fixed c'' { \repeat volta 2 { \repeat unfold 3 { c1 } {} % c1 c1 c1 \alternative { \volta 1 { d } \volta 2 { e } } } c4 r r2 } %%% I believe the problem is that the old-style of repeat/alternative is still valid, and LilyPond needs a way to not see the alternative as belonging to the repeat unfold above it. -- Knute Snortum