--- /dev/null
+\version "2.14.0"
+
+\header {
+ lsrtags = "vocal-music, contexts-and-engravers, template"
+ texidoc = "
+This template creates a score which starts with a solo verse and
+continues into a refrain for two voices. It also demonstrates the
+use of spacer rests within the @code{\global} variable to define
+meter changes (and other elements common to all parts) throughout
+the entire score.
+"
+ doctitle = "Vocal ensemble template with verse and refrain"
+}
+
+global = {
+ \key g \major
+
+ % verse
+ \time 3/4
+ s2.*2
+ \break
+
+ % refrain
+ \time 2/4
+ s2*2
+ \bar "|."
+}
+
+SoloNotes = \relative g' {
+ \clef "treble"
+
+ % verse
+ g4 g g |
+ b4 b b |
+
+ % refrain
+ R2*2 |
+}
+
+SoloLyrics = \lyricmode {
+ One two three |
+ four five six |
+}
+
+SopranoNotes = \relative c'' {
+ \clef "treble"
+
+ % verse
+ R2.*2 |
+
+ % refrain
+ c4 c |
+ g4 g |
+}
+
+SopranoLyrics = \lyricmode {
+ la la |
+ la la |
+}
+
+BassNotes = \relative c {
+ \clef "bass"
+
+ % verse
+ R2.*2 |
+
+ % refrain
+ c4 e |
+ d4 d |
+}
+
+BassLyrics = \lyricmode {
+ dum dum |
+ dum dum |
+}
+
+\score {
+ <<
+ \new Voice = "SoloVoice" << \global \SoloNotes >>
+ \new Lyrics \lyricsto "SoloVoice" \SoloLyrics
+
+ \new ChoirStaff <<
+ \new Voice = "SopranoVoice" << \global \SopranoNotes >>
+ \new Lyrics \lyricsto "SopranoVoice" \SopranoLyrics
+
+ \new Voice = "BassVoice" << \global \BassNotes >>
+ \new Lyrics \lyricsto "BassVoice" \BassLyrics
+ >>
+ >>
+ \layout {
+ ragged-right = ##t
+ \context { \Staff
+ % these lines prevent empty staves from being printed
+ \RemoveEmptyStaves
+ \override VerticalAxisGroup #'remove-first = ##t
+ }
+ }
+}
+