]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/vocal-ensemble-template-with-verse-and-refrain.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / new / vocal-ensemble-template-with-verse-and-refrain.ly
diff --git a/Documentation/snippets/new/vocal-ensemble-template-with-verse-and-refrain.ly b/Documentation/snippets/new/vocal-ensemble-template-with-verse-and-refrain.ly
new file mode 100644 (file)
index 0000000..17a901c
--- /dev/null
@@ -0,0 +1,99 @@
+\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
+    }
+  }
+}
+