On Thu, 10 Oct 2024 10:06:03 -0700 Knute Snortum <ksnor...@gmail.com> wrote:
> 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 Thanks, that works! I didn't know about the old syntax for repeats, so I assumed this was some kind of bug. Are there any plans to deprecate it for scores targeting new versions?