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