]> git.donarmstrong.com Git - lilypond.git/blob - input/test/coda-kludge.ly
a51a16a5d18c3cba86ff2bb8805ac82f5a5f2a9a
[lilypond.git] / input / test / coda-kludge.ly
1 \version "1.7.18"
2 % TODO: rethink name and whole file -- possible delete or major
3 % changes.
4 \header{
5         texidoc="@cindex Coda Kludge"
6 }
7 %{
8 Hi,
9         I want to write some music that has the structure:
10
11         Intro
12         \repeat 4 { Chorus [first-ending] verse }
13         fifth-ending final
14
15         The obvious:
16
17         \repeat 4 { Chorus \alternative{{first-ending}{}} verse}
18         \alternative{{}{fifth-ending}}
19         final
20
21         doesn't work.
22
23         And the (logically correct but ugly)
24
25         \repeat 4 {Chorus}
26         \alternative {{first-ending verse}{fifth ending}}
27         final
28
29         is very ugly, because the volta bracket keeps going for so
30         long.
31
32         Peter C
33 %}
34
35 \score{
36         <
37                 \context Staff \notes\relative c''{
38                         c c c c
39                         % coda-klugde: let volta span only one bar
40                         \property Staff.voltaSpannerDuration = #(ly:make-moment 1 1)
41                         \repeat "volta" 5 { d d d d }
42                                 \alternative { { e e e e f f f f }
43                         { g g g g } }
44                 }
45                 \context Lyrics \lyrics{
46                         intro1
47                         \repeat fold 5 {}
48                         \alternative {
49                                 { chorus1 one verse1 }
50                                 { chorus1 two verse1 }
51                                 { chorus1 three verse }
52                                 { chorus1 four verse }
53                         }
54                         five1
55                 }
56         >
57 \paper{raggedright = ##t}
58 }
59
60
61
62 %% new-chords-done %%