X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fnew%2Fvocal-ensemble-template.ly;fp=Documentation%2Fsnippets%2Fnew%2Fvocal-ensemble-template.ly;h=da5498872f229ce9f87a077b65e4dcebad2aa272;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/Documentation/snippets/new/vocal-ensemble-template.ly b/Documentation/snippets/new/vocal-ensemble-template.ly new file mode 100644 index 0000000000..da5498872f --- /dev/null +++ b/Documentation/snippets/new/vocal-ensemble-template.ly @@ -0,0 +1,94 @@ +\version "2.14.0" + +\header { + lsrtags = "vocal-music, template" + + texidoc = " +Here is a standard four-part SATB vocal score. With larger ensembles, +it is often useful to include a section which is included in all parts. +For example, the time signature and key signature are almost always the +same for all parts. Like in the @qq{Hymn} template, the four voices are +regrouped on only two staves. +" + doctitle = "Vocal ensemble template" +} + +\paper { + top-system-spacing #'basic-distance = #10 + score-system-spacing #'basic-distance = #20 + system-system-spacing #'basic-distance = #20 + last-bottom-spacing #'basic-distance = #10 +} + +global = { + \key c \major + \time 4/4 +} + +sopMusic = \relative c'' { + c4 c c8[( b)] c4 +} +sopWords = \lyricmode { + hi hi hi hi +} + +altoMusic = \relative c' { + e4 f d e +} +altoWords = \lyricmode { + ha ha ha ha +} + +tenorMusic = \relative c' { + g4 a f g +} +tenorWords = \lyricmode { + hu hu hu hu +} + +bassMusic = \relative c { + c4 c g c +} +bassWords = \lyricmode { + ho ho ho ho +} + +\score { + \new ChoirStaff << + \new Lyrics = "sopranos" \with { + % this is needed for lyrics above a staff + \override VerticalAxisGroup #'staff-affinity = #DOWN + } + \new Staff = "women" << + \new Voice = "sopranos" { + \voiceOne + << \global \sopMusic >> + } + \new Voice = "altos" { + \voiceTwo + << \global \altoMusic >> + } + >> + \new Lyrics = "altos" + \new Lyrics = "tenors" \with { + % this is needed for lyrics above a staff + \override VerticalAxisGroup #'staff-affinity = #DOWN + } + \new Staff = "men" << + \clef bass + \new Voice = "tenors" { + \voiceOne + << \global \tenorMusic >> + } + \new Voice = "basses" { + \voiceTwo << \global \bassMusic >> + } + >> + \new Lyrics = "basses" + \context Lyrics = "sopranos" \lyricsto "sopranos" \sopWords + \context Lyrics = "altos" \lyricsto "altos" \altoWords + \context Lyrics = "tenors" \lyricsto "tenors" \tenorWords + \context Lyrics = "basses" \lyricsto "basses" \bassWords + >> +} +