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