]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "contexts-and-engravers, template, text, vocal-music"
11
12   texidoc = "
13 This template is basically the same as the simple @qq{Vocal ensemble}
14 template, with the exception that here all the lyrics lines are placed
15 using @code{alignAboveContext} and @code{alignBelowContext}.
16
17 "
18   doctitle = "Vocal ensemble template with lyrics aligned below and above the staves"
19 } % begin verbatim
20
21
22 global = {
23   \key c \major
24   \time 4/4
25 }
26
27 sopMusic = \relative c'' {
28   c4 c c8[( b)] c4
29 }
30 sopWords = \lyricmode {
31   hi hi hi hi
32 }
33
34 altoMusic = \relative c' {
35   e4 f d e
36 }
37 altoWords = \lyricmode {
38   ha ha ha ha
39 }
40
41 tenorMusic = \relative c' {
42   g4 a f g
43 }
44 tenorWords = \lyricmode {
45   hu hu hu hu
46 }
47
48 bassMusic = \relative c {
49   c4 c g c
50 }
51 bassWords = \lyricmode {
52   ho ho ho ho
53 }
54
55 \score {
56   \new ChoirStaff <<
57     \new Staff = "women" <<
58       \new Voice = "sopranos" { \voiceOne << \global \sopMusic >> }
59       \new Voice = "altos" { \voiceTwo << \global \altoMusic >> }
60     >>
61     \new Lyrics \with { alignAboveContext = #"women" }
62       \lyricsto "sopranos" \sopWords
63     \new Lyrics \with { alignBelowContext = #"women" }
64       \lyricsto "altos" \altoWords
65     % we could remove the line about this with the line below, since
66     % we want the alto lyrics to be below the alto Voice anyway.
67     % \new Lyrics \lyricsto "altos" \altoWords
68
69     \new Staff = "men" <<
70       \clef bass
71       \new Voice = "tenors" { \voiceOne << \global \tenorMusic >> }
72       \new Voice = "basses" { \voiceTwo << \global \bassMusic >> }
73     >>
74     \new Lyrics \with { alignAboveContext = #"men" }
75       \lyricsto "tenors" \tenorWords
76     \new Lyrics \with { alignBelowContext = #"men" }
77       \lyricsto "basses" \bassWords
78     % again, we could replace the line above this with the line below.
79     % \new Lyrics \lyricsto "basses" \bassWords
80   >>
81 }