]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/vocal-ensemble-template-with-verse-and-refrain.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / new / vocal-ensemble-template-with-verse-and-refrain.ly
1 \version "2.14.0"
2
3 \header {
4   lsrtags = "vocal-music, contexts-and-engravers, template"
5   texidoc = "
6 This template creates a score which starts with a solo verse and
7 continues into a refrain for two voices.  It also demonstrates the
8 use of spacer rests within the @code{\global} variable to define
9 meter changes (and other elements common to all parts) throughout
10 the entire score.
11 "
12   doctitle = "Vocal ensemble template with verse and refrain"
13 }
14
15 global = {
16   \key g \major
17
18   % verse
19   \time 3/4
20   s2.*2
21   \break
22
23   % refrain
24   \time 2/4
25   s2*2
26   \bar "|."
27 }
28
29 SoloNotes = \relative g' {
30   \clef "treble"
31
32   % verse
33   g4 g g |
34   b4 b b |
35
36   % refrain
37   R2*2 |
38 }
39
40 SoloLyrics = \lyricmode {
41   One two three |
42   four five six |
43 }
44
45 SopranoNotes = \relative c'' {
46   \clef "treble"
47
48   % verse
49   R2.*2 |
50
51   % refrain
52   c4 c |
53   g4 g |
54 }
55
56 SopranoLyrics = \lyricmode {
57   la la |
58   la la |
59 }
60
61 BassNotes = \relative c {
62   \clef "bass"
63
64   % verse
65   R2.*2 |
66
67   % refrain
68   c4 e |
69   d4 d |
70 }
71
72 BassLyrics = \lyricmode {
73   dum dum |
74   dum dum |
75 }
76
77 \score {
78   <<
79     \new Voice = "SoloVoice" << \global \SoloNotes >>
80     \new Lyrics \lyricsto "SoloVoice" \SoloLyrics
81
82     \new ChoirStaff <<
83       \new Voice = "SopranoVoice" << \global \SopranoNotes >>
84       \new Lyrics \lyricsto "SopranoVoice" \SopranoLyrics
85
86       \new Voice = "BassVoice" << \global \BassNotes >>
87       \new Lyrics \lyricsto "BassVoice" \BassLyrics
88     >>
89   >>
90   \layout {
91     ragged-right = ##t
92     \context { \Staff
93       % these lines prevent empty staves from being printed
94       \RemoveEmptyStaves
95       \override VerticalAxisGroup #'remove-first = ##t
96     }
97   }
98 }
99