1\version "2.19.21"
2
3#(ly:set-option 'warning-as-error #f)
4#(ly:expect-warning (_ "More alternatives than repeats.  Junking excess alternatives"))
5
6\header{
7  texidoc="LilyPond has two modes for repeats: unfolded and semi-unfolded.
8Unfolded repeats are fully written out.  Semi unfolded repeats have the body
9written and all alternatives sequentially.  If the number of alternatives is
10larger than the repeat count, the excess alternatives are ignored.  If the
11number of alternatives is smaller, the first alternative is multiplied to
12get to the number of repeats.
13
14Unfolded behavior:"
15}
16
17\context Voice \relative {
18  \repeat unfold 3 { c''^"3x 0a" d }
19  %% less alts than body
20  \repeat unfold 4 { c^"4x 0a" d } \alternative { e f }
21  %% more alts than body
22  \repeat unfold 2 { c^"2x 3a" d } \alternative { e f g }
23}
24