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