]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/repeat-unfold.ly
cb965c1610cfecf9985c7cd924cbe4bf00ce7e7a
[lilypond.git] / input / regression / repeat-unfold.ly
1 \header{
2 texidoc="
3 LilyPond has three modes for repeats: folded, unfolded and
4 semi-unfolded.  Unfolded repeats are fully written out. Semi unfolded
5 repeats have the body written and all alternatives sequentially.
6 Folded repeats have the body written and all alternatives
7 simultaneo.ly.  If the number of alternatives is larger than the
8 repeat count, the excess alternatives are ignored.  If the number of
9 alternatives is smaller, the first alternative is multiplied to get to
10 the number of repeats.
11
12 Unfolded behavior:
13 ";
14 }
15
16 \score {
17
18   \context Voice \notes\relative c'' {
19 \repeat unfold 3 { c^"3x 0a" d }
20 % less alts than body
21 \repeat unfold 4 { c^"4x 0a" d } \alternative { e f }
22 % more alts than body
23 \repeat unfold 2 { c^"2x 3a" d } \alternative { e f g } 
24 }}
25