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