Re: \alternative fails if \repeat unfold proceeds it

Jean Abou Samra <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
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.

>     \alternative {
>       \volta 1 { e4 e e e }
>       \volta 2 { f4 f f f }
>     }
>   }
>   g4 g g g
> }
> 
> The work around is to have one line of non-repeated notes just before the
> \alternative section.
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSZ7TKxnKGyBvBjzBmj8PYLiTOX/gUCZdpC2AAKCRCj8PYLiTOX
/vcRAQCKUHIVCkANIGdC6cEq1AO7KlS35pv0XRlcJBaoMft/yQD9GEvf6t91puMj
JWYCg0C0oLzV9xGkrDjv0hJwq+XJegQ=
=hzmj
-----END PGP SIGNATURE-----
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.