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