]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/repeat-unfold-partial.ly
Issue 5003 unfoldRepeats can be restricted to certain repeat-types
[lilypond.git] / input / regression / repeat-unfold-partial.ly
1 \header {
2   texidoc = "The music function @code{\\unfoldRepeats} can take an
3 optional argument-list specifying which type(s) of repeated music has
4 to be unfolded."
5 }
6
7 m =
8   \repeat volta 2 {
9       \repeat percent 2 { c'1 }
10       \repeat tremolo 4 { c'16 d' }
11       f'2
12   }
13   \alternative {
14       { d'1 }
15       { e'1 }
16   }
17
18 \markup "not expanding"
19 \m
20
21 \markup "expanding all"
22 \unfoldRepeats \m
23
24 \markup "expanding percent-repeated-music"
25 \unfoldRepeats percent \m
26
27 \markup "expanding tremolo-repeated-music"
28 \unfoldRepeats tremolo \m
29
30 \markup "expanding volta-repeated-music"
31 \unfoldRepeats volta \m
32
33 \markup \column {
34   "combinations are possible:"
35   "expanding percent-repeated-music and tremolo-repeated-music"
36 }
37 \unfoldRepeats percent,tremolo \m