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