Hello Joram, \set Score.repeatCommands is exactly what I was looking for actually.
Thanks, and a nice day! JM > Le 22 juin 2018 à 23:33, Noeck <noeck.marb...@gmx.de> a écrit : > > Dear Jacques, > >> It would be nice if such settings could be specified in the regular >> \repeat commands, as can be done in MusicXML: > > Well you can basically do that: > > { > \repeat volta 2 { > d'4 e' f' e' > } > \alternative { > { > \set Score.repeatCommands = #'(end-repeat (volta "2.")) > f'4 a' g'2 > } > } > f'4 d' e'2 > } > > The \set Score... is the only thing that differs from the typical > \repeat commands and sets the ending type as you requested. > > I don't understand your notation, though, because there is no > alternative. What do you play the first time after the repeat? Nothing? > Then why do you need the alternative "2." at all? > > Cheers, > Joram > > > PS: I don't understand why this does not work: > > { > \repeat volta 2 { > d'4 e' f' e' > } > \alternative { > {} > { > \override Score.VoltaBracket.text = "2." > f'4 a' g'2 > } > } > f'4 d' e'2 > } > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user