]> git.donarmstrong.com Git - lilypond.git/blob - input/test/lyrics-multi-stanza.ly
release: 1.3.98
[lilypond.git] / input / test / lyrics-multi-stanza.ly
1 % Tests a number of features:
2 % * Lyric_phrasing_engraver
3 % * Stanza_number_engraver
4 % * Automatic melismata on beamed notes
5
6 \version "1.3.96";
7 \include "english.ly"
8
9 \header{
10     title = "Crowned with Honour";
11     composer = "Oliver Holden (1765-1844)";
12     poet = "Thomas Kelly (1769-1855)";
13 }
14
15 allup = \notes{
16         \stemUp
17         \slurUp
18         \tieUp
19         \property Voice.DynamicLineSpanner \push #'direction = #1
20         \autoBeamOff
21 }
22
23 alldown = \notes{
24         \stemDown
25         \slurDown
26         \tieDown
27         \property Voice.DynamicLineSpanner \push #'direction = #-1
28         \autoBeamOff
29 }
30
31 Global =  \notes{
32         \key g \major;
33         \time 4/4;
34         \partial 4;
35 }
36
37 Soprano = \notes \relative c' {
38         \allup
39         d4 | g g b b a g a b a g b a g( a )g % modified to test melisma align right
40
41         [a8 b] | b4 % modified to test melisma align left
42          a g b [d16 d c8] [b a] b4 % modified to test beam melisma
43 %       a4 | b a g b [d8 \melisma c] \melismaEnd [b \melisma a] \melismaEnd b4
44
45         d d2 d e d4( cs8 ~ )cs d2.
46
47         b4 | d b g b [a8  g]  [a b]  a4
48 %       b4 | d b g b [a8 \melisma g] \melismaEnd [a \melisma b] \melismaEnd a4
49
50         g d'2 c b4.( c8 )a4 a g2.
51 }
52 Alto = \notes \relative c'{
53         \alldown
54         d4 | d d g g fs g fs g fs e g fs d2.
55         d4 | g d b g' [b8 a] [g fs] g4 fs g2 a g fs4( e8 )g fs2.
56         d4 | g g d g [fs8 e] [fs g] fs4 g f2 e d4.( d8 )d4 fs4 d2.
57 }
58 Tenor = \notes \relative c{
59         \allup
60         d4 | b' b d d c  b c  d c  b d c  b2.
61         a4 | b a g b  [d8 c] [b a] b4 a  b2 c b  a   a2.
62         g4 | b d b d [c8  b] [c  d]  c4 b g2 g g4.( a8 [fs )a] c4 b2.
63 }
64 Bass = \notes \relative c{
65         \alldown
66         d4 | g g g g d d d g d e d d g,2.
67         d'4 | g d b g' [b8 a] [g fs] g4 d g2 fs e a d,2.
68         g4 | g g g g d d d e b2 c d2. d4 g,2.
69 }
70
71 TheLyrics =  \lyrics <
72         {
73             \context LyricVoice = "Soprano-1"
74             \property LyricVoice .stanza = "1:"
75             \property LyricVoice .stz = "(1)"
76                  The4 head    that once was crowned with thorns
77                  Is   crowned with glo -- ry  now;
78                  A roy -- al di -- a -- dem a -- dorns
79                  The might -- y Vic -- tor's  brow.
80                  A roy -- al di -- a -- dem a -- dorns
81                  The might -- y Vic -- tor's  brow.
82         }
83         {
84             \context LyricVoice = "Soprano-2"
85             \property LyricVoice .stanza = "2:"
86             \property LyricVoice .stz = "(2)"
87                  The4 high -- est place that heav'n af -- fords
88                  Is His by sov -- 'reign  right;
89                  The King of kings, the Lord of lords,
90                  He reigns in glo -- ry  bright,
91                  The King of kings, the Lord of lords, 
92                  He reigns in glo -- ry  bright.
93         }
94         {
95             \context LyricVoice = "Soprano-3"
96             \property LyricVoice .stanza = "3:"
97             \property LyricVoice .stz = "(3)"
98                  The joy of all who dwell a -- bove,
99                  The joy of saints be --  low,
100                  To4 whom He man -- i -- fests His love,
101                  And grants His name to  know,
102                  To4 whom He man -- i -- fests His love,
103                  And grants His name to4  know.
104         }
105 >
106
107
108 \score{
109   \context ChoirStaff
110     \notes
111     <
112       \property Score.barNumberScriptPadding = #10.0
113       \context Staff = "treblestaff"{
114         <
115           \context Voice = "Soprano" { }
116           \context Voice = "Alto" { }
117         >
118       }
119       \context Lyrics = mainlyrics { }
120       \context Staff = "treblestaff"{
121         <
122           \Global
123           \addlyrics { \context Voice = "Soprano" \Soprano }
124             { \context Lyrics = mainlyrics \TheLyrics }
125           \context Voice = "Alto"  \Alto
126         >
127         \bar "|.";
128       }
129       \context Staff = "bassstaff"{
130         \clef "bass";
131         <
132           \context Voice = "Tenor" { \Tenor }
133           \context Voice = "Bass"  { \Bass }
134         >
135         \bar "|.";
136       }
137     >
138
139    \paper {
140       \translator{
141         \VoiceContext
142         automaticMelismata = ##t;
143         noAutoBeaming = ##t;
144         \remove   "Auto_beam_engraver";
145       }
146
147    }
148 }