\repeat volta @var{repeatcount} @var{musicexpr}
@end example
-where @var{musicexpr} is a music expression. Alternate endings can
-be produced using @code{\alternative}.
+where @var{musicexpr} is a music expression. Alternate endings can be
+produced using @code{\alternative}. If there are more repeats than
+there are alternate endings, the earliest repeats are given the first
+alternative.
Normal repeats without alternate endings:
{ cis2 g' }
{ cis,2 b }
}
+\repeat volta 3 { c4 d e f }
+ \alternative {
+ { d2 e }
+ { f2 g }
+ }
c1
@end lilypond
@end example
where @var{musicexpr} is a music expression. Unfold repeats can be
-made with or without alternate endings. Unfold repeats without
-alternate endings:
+made with or without alternate endings. If there are more repeats
+than there are alternate endings, the first alternative ending is
+applied to the earliest endings. Unfold repeats without alternate
+endings:
@lilypond[quote,ragged-right,verbatim,fragment,relative=2]
c1
{ cis,2 b }
}
c1
+\repeat unfold 3 { d4 c b2 }
+ \alternative {
+ { c4 d e f }
+ { d4 c b a }
+ }
+c1
@end lilypond
@seealso