]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/repeat-unfold.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / input / regression / repeat-unfold.ly
1 \version "2.19.21"
2
3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (_ "More alternatives than repeats.  Junking excess alternatives"))
5
6 \header{
7   texidoc="LilyPond has two modes for repeats: unfolded and semi-unfolded. 
8 Unfolded repeats are fully written out.  Semi unfolded repeats have the body
9 written and all alternatives sequentially.  If the number of alternatives is
10 larger than the repeat count, the excess alternatives are ignored.  If the
11 number of alternatives is smaller, the first alternative is multiplied to
12 get to the number of repeats.
13
14 Unfolded behavior:"
15 }
16
17 \context Voice \relative {
18   \repeat unfold 3 { c''^"3x 0a" d }
19   %% less alts than body
20   \repeat unfold 4 { c^"4x 0a" d } \alternative { e f }
21   %% more alts than body
22   \repeat unfold 2 { c^"2x 3a" d } \alternative { e f g } 
23 }