Re: \alternative fails if \repeat unfold proceeds it

Knute Snortum <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <CALmeJxQEq+BDrCNNMPfv1DvE8LgCWPWjgyyDCGz7dA88Goa9cA@mail.gmail.com>
On Sat, Feb 24, 2024 at 11:26 AM Jean Abou Samra <[email protected]> wrote:

> Le samedi 24 février 2024 à 11:05 -0800, Knute Snortum a écrit :
> > I've run into something that I think is a bug -- or I'm not understanding
> > something.  It happens when you are in a \repeat volta section and use a
> > \repeat unfold just before the \alternative section.
> >
> > \version "2.25.13"
> >
> > \relative {
> >   c''4 c c c |
> >   \repeat volta 2 {
> >     \repeat unfold 2 { d4 d d d }
> >     % d4 d d d % uncomment me and everything's fine
>
>
> That's legacy \alternative syntax kicking in for backwards compatibility.
> The \alternative gets attached to \repeat unfold. Try inserting {} here.
>

That works, thanks!  Do you think this deserves a "Known issues and
warnings" section in
https://lilypond.org/doc/v2.24/Documentation/notation/long-repeats#alternative-endings
?


--
Knute Snortum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.