How about \repeat volta 2 { c1 d1 e1 \alternative {{d1} {f1}} }? IMO,
that makes more sense both syntactically and semantically - the way I
see it, that example is four measures repeated, with the last measure
being different. With the current syntax, it's three measures repeated,
and... wtf is going on there at the end? It doesn't make sense.
That would also allow support for volta brackets in the middle of a
repeat without fiddling with repeat-commands, and would allow it to work
with \unfoldRepeats as well. I can't say I've ever seen that notation in
the wild, but its meaning is rather obvious IMO, and either way,
flexibility is usually a good thing.
The only problem I see with that syntax would be placing the repeat
barline correctly between the last volta brackets, but there are far
more complicated pieces of magic already. There's also the problem of
backwards compatibility to consider. I don't know what Lilypond's stance
is on that.
On 07/21/2017 04:36 PM, David Kastrup wrote:
Basically, to give \repeat the kind of pliability that music functions
enjoy, one would need to come up with different syntax/semantics for
alternatives.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user