]> git.donarmstrong.com Git - lilypond.git/blob - input/test/coda-kludge.ly
release: 1.1.41
[lilypond.git] / input / test / coda-kludge.ly
1 %{
2 Hi,
3         I want to write some music that has the structure:
4
5         Intro
6         \repeat 4 { Chorus [first-ending] verse }
7         fifth-ending final
8
9         The obvious:
10
11         \repeat 4 { Chorus \alternative{{first-ending}{}} verse}
12         \alternative{{}{fifth-ending}}
13         final
14
15         doesn't work.
16
17         And the (logically correct but ugly)
18
19         \repeat 4 {Chorus}
20         \alternative {{first-ending verse}{fifth ending}}
21         final
22
23         is very ugly, because the volta bracket keeps going for so
24         long.
25
26         Peter C
27 %}
28
29 \score{
30         <
31                 \context Staff \notes\relative c''{
32                         c c c c
33                         % coda-klugde: let volta span only one bar
34                         \property Staff.voltaSpannerDuration = "1"
35                         \repeat 5 { d d d d }
36                                 \alternative { { e e e e f f f f }
37                         { g g g g } }
38                 }
39                 \context Lyrics \lyrics{
40                         intro1
41                         \repeat 5 {}
42                         \alternative <
43                                 { chorus1 one verse1 }
44                                 { chorus1 two verse1 }
45                                 { chorus1 three verse }
46                                 { chorus1 four verse }
47                         >
48                         five1
49                 }
50         >
51 }
52
53
54 \version "1.0.16";