lilypond-devel
[Top][All Lists]

## Re: Repeat alternative count

 From: Aaron Hill Subject: Re: Repeat alternative count Date: Sat, 29 Aug 2020 07:00:17 -0700 User-agent: Roundcube Webmail/1.4.2

```On 2020-08-29 6:37 am, Dan Eble wrote:
```
```Is there a use case for specifying the number of times to reuse a
repeat alternative in a way that \unfoldRepeats could honor?  Right
now, it reuses the first alternative enough times to reach the repeat
count.  If so, does anyone want to suggest a syntax?  Here's my entry.

\repeat volta 40 {
…
} \alternative {
{ … }
\repeat alternative 3 { … }
{ … }
}

```
```
```
What would be nice is to have a way to semantically indicate precisely when and how many times an alternative is used.
```
```
Consider a case when you have a first ending that would be labelled "1.3." and a second ending that is labelled "2.4.5.". Currently, this can be done using custom repeat commands but \unfoldRepeats does not know how to parse the volta text and produce the right expansion.
```
Perhaps:

%%%%
\repeat volta 5 {
...
}
\alternative 1,3 {
...
}
\alternative 2,4,5 {
...
}
%%%%

-- Aaron Hill

```