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