]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/vocal.itely
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / notation / vocal.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  For details, see the Contributors'
7     Guide, node Updating translation committishes..
8 @end ignore
9
10 @c \version "2.19.2"
11
12 @node Vocal music
13 @section Vocal music
14
15 @lilypondfile[quote]{vocal-headword.ly}
16
17 This section explains how to typeset vocal music, and make sure
18 that the lyrics will be aligned with the notes of their melody.
19
20 @menu
21 * Common notation for vocal music::
22 * Techniques specific to lyrics::
23 * Stanzas::
24 * Songs::
25 * Choral::
26 * Opera and stage musicals::
27 * Chants psalms and hymns::
28 * Ancient vocal music::
29
30 @end menu
31
32
33 @node Common notation for vocal music
34 @subsection Common notation for vocal music
35
36 This section discusses issues common to most types of vocal music.
37
38 @menu
39 * References for vocal music::
40 * Entering lyrics::
41 * Aligning lyrics to a melody::
42 * Automatic syllable durations::
43 * Manual syllable durations::
44 * Multiple syllables to one note::
45 * Multiple notes to one syllable::
46 * Extenders and hyphens::
47 @end menu
48
49
50 @node References for vocal music
51 @unnumberedsubsubsec References for vocal music
52
53 This section indicates where to find details of notation issues
54 that may arise in any type of vocal music.
55
56 @itemize
57
58 @item
59 Most styles of vocal music use written text as lyrics.  An
60 introduction to this notation is to be found in
61 @rlearning{Setting simple songs}.
62
63 @item
64 Vocal music is likely to require the use of @code{markup} mode,
65 either for lyrics or for other text elements (characters' names,
66 etc.)  This syntax is described in @ref{Text markup introduction}.
67
68 @item
69 @notation{Ambitus} may be added at the beginning of vocal staves,
70 as explained in @ref{Ambitus}.
71
72 @item
73 Dynamic markings by default are placed below the staff, but in
74 choral music they are usually placed above the staff in order to
75 avoid the lyrics, as explained in @ref{Score layouts for choral}.
76
77 @end itemize
78
79 @seealso
80 Music Glossary:
81 @rglos{ambitus}.
82
83 Learning Manual:
84 @rlearning{Setting simple songs}.
85
86 Notation Reference:
87 @ref{Text markup introduction},
88 @ref{Ambitus},
89 @ref{Score layouts for choral}.
90
91 Snippets:
92 @rlsr{Vocal music}.
93
94
95 @node Entering lyrics
96 @unnumberedsubsubsec Entering lyrics
97
98 @cindex lyrics, entering
99 @cindex entering lyrics
100 @cindex formatting in lyrics
101 @cindex lyrics, formatting
102 @cindex punctuation in lyrics
103 @cindex lyrics punctuation
104 @cindex spaces in lyrics
105 @cindex quotes in lyrics
106 @funindex \lyricmode
107
108 @c TODO should we explain hyphens here
109
110 Lyrics are entered in a special input mode, which can be introduced
111 by the keyword @code{\lyricmode}, or by using @code{\addlyrics} or
112 @code{\lyricsto}.  In this special input mode, the input @code{d}
113 is not parsed as the pitch @notation{D}, but rather as a one-letter
114 syllable of text.  In other words, syllables are entered like notes
115 but with pitches replaced by text.
116
117 For example:
118
119 @example
120 \lyricmode @{ Three4 blind mice,2 three4 blind mice2 @}
121 @end example
122
123 There are two main methods for specifying the horizontal placement
124 of the syllables, either by specifying the duration of each syllable
125 explicitly, as in the example above, or by leaving the lyrics to be
126 aligned automatically to a melody or other voice of music, using
127 @code{\addlyrics} or @code{\lyricsto}.  The former method is
128 described below in @ref{Manual syllable durations}.  The latter
129 method is described in @ref{Automatic syllable durations}.
130
131 A word or syllable of lyrics begins with an alphabetic character
132 (plus some other characters, see below) and is terminated by any
133 white space or a digit.  Later characters in the syllable can be any
134 character that is not a digit or white space.
135
136 Because any character that is not a digit or white space is regarded
137 as part of the syllable, a word is valid even if it ends with
138 @code{@}}, which often leads to the following mistake:
139
140 @example
141 \lyricmode @{ lah lah lah@}
142 @end example
143
144 In this example, the @code{@}} is included in the final syllable, so the
145 opening brace is not balanced and the input file will probably not
146 compile.  Instead, braces should always be surrounded with white space:
147
148 @example
149 \lyricmode @{ lah lah lah @}
150 @end example
151
152 Punctuation, lyrics with accented characters, characters from
153 non-English languages, or special characters (such as the heart
154 symbol or slanted quotes), may simply be inserted directly
155 into the input file, providing it is saved with UTF-8 encoding.
156 For more information, see @ref{Special characters}.
157
158 @lilypond[quote,verbatim]
159 \relative c'' { d8 c16 a bes8 f e' d c4 }
160 \addlyrics { „Schad’ um das schö -- ne grü -- ne Band, }
161 @end lilypond
162
163 Normal quotes may be used in lyrics, but they have to be preceded
164 with a backslash character and the whole syllable has to be
165 enclosed between additional quotes.  For example,
166
167 @lilypond[quote,verbatim]
168 \relative c' { \time 3/4 e4 e4. e8 d4 e d c2. }
169 \addlyrics { "\"I" am so lone -- "ly,\"" said she }
170 @end lilypond
171
172 The full definition of a word start in lyrics mode is somewhat more
173 complex.  A word in lyrics mode is one that begins with an
174 alphabetic character, @code{_}, @code{?}, @code{!}, @code{:},
175 @code{'}, the control characters @code{^A} through @code{^F},
176 @code{^Q} through @code{^W}, @code{^Y}, @code{^^}, any 8-bit
177 character with an ASCII code over 127, or a two-character
178 combination of a backslash followed by one of @code{`}, @code{'},
179 @code{"}, or @code{^}.
180
181 @c " to balance double quotes for not-so-bright context-sensitive editors
182
183 Great control over the appearance of lyrics comes from using
184 @code{\markup} inside the lyrics themselves. For explanation of many
185 options, see @ref{Formatting text}.
186
187 @snippets
188
189 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
190 {formatting-lyrics-syllables.ly}
191
192
193 @seealso
194 Learning Manual:
195 @rlearning{Songs}.
196
197 Notation Reference:
198 @ref{Automatic syllable durations},
199 @ref{Fonts},
200 @ref{Formatting text},
201 @ref{Input modes},
202 @ref{Manual syllable durations},
203 @ref{Special characters}.
204
205 Internals Reference:
206 @rinternals{LyricText}.
207
208 Snippets:
209 @rlsr{Text}.
210
211
212 @node Aligning lyrics to a melody
213 @unnumberedsubsubsec Aligning lyrics to a melody
214
215 @cindex lyrics, aligning to a melody
216 @cindex @code{associatedVoice}
217 @funindex \lyricmode
218 @funindex \addlyrics
219 @funindex \lyricsto
220
221 Lyrics are printed by interpreting them in the context called
222 @code{Lyrics}, see @ref{Contexts explained}.
223
224 @example
225 \new Lyrics \lyricmode @{ @dots{} @}
226 @end example
227
228 Lyrics can be aligned with melodies in two main ways:
229
230 @itemize
231
232 @item
233 Lyrics can be aligned automatically, with the durations of the
234 syllables being taken from another voice of music or (in special
235 circumstances) an associated melody, using @code{\addlyrics},
236 @code{\lyricsto}, or by setting the @code{associatedVoice} property.
237 For more details, see @ref{Automatic syllable durations}.
238
239 @lilypond[quote,ragged-right,verbatim]
240 <<
241   \new Staff <<
242     \time 2/4
243     \new Voice = "one" \relative c'' {
244       \voiceOne
245       c4 b8. a16 g4. r8 a4 ( b ) c2
246     }
247     \new Voice = "two" \relative c' {
248       \voiceTwo
249        s2 s4. f8 e4 d c2
250     }
251   >>
252
253 % takes durations and alignment from notes in "one"
254   \new Lyrics \lyricsto "one" {
255     Life is __ _ love, live __ life.
256   }
257
258 % takes durations and alignment from notes in "one" initially
259 % then switches to "two"
260   \new Lyrics \lyricsto "one" {
261     No more let
262     \set associatedVoice = "two"  % must be set one syllable early
263     sins and sor -- rows grow.
264   }
265 >>
266 @end lilypond
267
268 The first stanza shows the normal way of entering lyrics.
269
270 The second stanza shows how the voice from which the lyric
271 durations are taken can be changed.  This is useful if the words to
272 different stanzas fit the notes in different ways and all the
273 durations are available in Voice contexts.  For more details, see
274 @ref{Stanzas}.
275
276 @item
277 Lyrics can be aligned independently of the duration of any notes
278 if the durations of the syllables are specified explicitly,
279 and entered with @code{\lyricmode}.
280
281 @lilypond[quote,ragged-right,verbatim]
282 <<
283   \new Voice = "one" \relative c'' {
284     \time 2/4
285     c4 b8. a16 g4. f8 e4 d c2
286   }
287
288 % uses previous explicit duration of 2;
289   \new Lyrics \lyricmode {
290     Joy to the earth!
291   }
292
293 % explicit durations, set to a different rhythm
294   \new Lyrics \lyricmode {
295     Life4 is love,2. live4 life.2
296   }
297 >>
298 @end lilypond
299
300 The first stanza is not aligned with the notes because the durations
301 were not specified, and the previous value of 2 is used for each
302 word.
303
304 The second stanza shows how the words can be aligned quite
305 independently from the notes.  This is useful if the words to
306 different stanzas fit the notes in different ways and the required
307 durations are not available in a music context.  For more details
308 see @ref{Manual syllable durations}.  This technique is also useful
309 when setting dialogue over music; for examples showing this, see
310 @ref{Dialogue over music}.
311
312 @end itemize
313
314 @seealso
315 Learning Manual:
316 @rlearning{Aligning lyrics to a melody}.
317
318 Notation Reference:
319 @ref{Contexts explained},
320 @ref{Automatic syllable durations},
321 @ref{Stanzas},
322 @ref{Manual syllable durations},
323 @ref{Dialogue over music},
324 @ref{Manual syllable durations}.
325
326 Internals Reference:
327 @rinternals{Lyrics}.
328
329
330 @node Automatic syllable durations
331 @unnumberedsubsubsec Automatic syllable durations
332
333 @cindex syllable durations, automatic
334 @cindex lyrics and melodies
335 @cindex associatedVoice
336 @funindex \addlyrics
337 @funindex \lyricsto
338
339 Lyrics can be automatically aligned to the notes of a melody in
340 three ways:
341
342 @itemize
343
344 @item
345 by specifying the named Voice context containing the melody with
346 @code{\lyricsto},
347
348 @item
349 by introducing the lyrics with @code{\addlyrics} and placing them
350 immediately after the Voice context containing the melody,
351
352 @item
353 by setting the @code{associatedVoice} property, the alignment of
354 the lyrics may be switched to a different named Voice context at
355 any musical moment.
356
357 @end itemize
358
359 In all three methods hyphens can be drawn between the syllables of
360 a word and extender lines can be drawn beyond the end of a word.  For
361 details, see @ref{Extenders and hyphens}.
362
363 The @code{Voice} context containing the melody to which the lyrics
364 are being aligned must not have @qq{died}, or the lyrics after that
365 point will be lost.  This can happen if there are periods when that
366 voice has nothing to do.  For methods of keeping contexts alive, see
367 @ref{Keeping contexts alive}.
368
369 @subheading Using @code{\lyricsto}
370
371 @cindex \lyricsto
372 @funindex \lyricsto
373
374 Lyrics can be aligned under a melody automatically by specifying
375 the named Voice context containing the melody with
376 @code{\lyricsto}:
377
378 @lilypond[quote,verbatim,relative=2]
379 <<
380   \new Voice = "melody" {
381     a1 a4. a8 a2
382   }
383   \new Lyrics \lyricsto "melody" {
384     These are the words
385   }
386 >>
387 @end lilypond
388
389 @noindent
390 This aligns the lyrics to the notes of the named @code{Voice}
391 context, which must already exist.  Therefore normally the
392 @code{Voice} context is specified first, followed by the
393 @code{Lyrics} context.  The lyrics themselves follow the
394 @code{\lyricsto} command.  The @code{\lyricsto} command
395 invokes lyric mode automatically, so the @code{\lyricmode} keyword
396 may be omitted.  By default, the lyrics are placed underneath the
397 notes.  For other placements, see @ref{Placing lyrics vertically}.
398
399 @subheading Using @code{\addlyrics}
400
401 @cindex \addlyrics
402 @funindex \addlyrics
403
404 The @code{\addlyrics} command is just a convenient shortcut that
405 can sometimes be used instead of having to set up the lyrics
406 through a more complicated LilyPond structure.
407
408 @example
409 @{ MUSIC @}
410 \addlyrics @{ LYRICS @}
411 @end example
412
413 @noindent
414 is the same as
415
416 @example
417 \new Voice = "blah" @{ MUSIC @}
418 \new Lyrics \lyricsto "blah" @{ LYRICS @}
419 @end example
420
421 Here is an example,
422
423 @lilypond[verbatim,quote]
424 {
425   \time 3/4
426   \relative c' { c2 e4 g2. }
427   \addlyrics { play the game }
428 }
429 @end lilypond
430
431 More stanzas can be added by adding more
432 @code{\addlyrics} sections:
433
434
435 @lilypond[ragged-right,verbatim,quote]
436 {
437   \time 3/4
438   \relative c' { c2 e4 g2. }
439   \addlyrics { play the game }
440   \addlyrics { speel het spel }
441   \addlyrics { joue le jeu }
442 }
443 @end lilypond
444
445 The command @code{\addlyrics} cannot handle polyphonic settings.
446 Also, it cannot be used to associate lyrics to a @code{TabVoice}.
447 For these cases one should use @code{\lyricsto}.
448
449 @subheading Using associatedVoice
450
451 The melody to which the lyrics are being aligned can be changed by
452 setting the @code{associatedVoice} property,
453
454 @example
455 \set associatedVoice = #"lala"
456 @end example
457
458 @noindent
459
460 The value of the property (here: @code{"lala"}) should be the name
461 of a @code{Voice} context.  For technical reasons, the @code{\set}
462 command must be placed one syllable before the one to which the
463 change in voice is to apply.
464
465 Here is an example demonstrating its use:
466
467 @lilypond[quote,ragged-right,verbatim]
468 <<
469   \new Staff <<
470     \time 2/4
471     \new Voice = "one" \relative c'' {
472       \voiceOne
473       c4 b8. a16 g4. r8 a4 ( b ) c2
474     }
475     \new Voice = "two" \relative c' {
476       \voiceTwo
477        s2 s4. f8 e8 d4. c2
478     }
479   >>
480 % takes durations and alignment from notes in "one" initially
481 % then switches to "two"
482   \new Lyrics \lyricsto "one" {
483     No more let
484     \set associatedVoice = "two"  % must be set one syllable early
485     sins and sor -- rows grow.
486   }
487 >>
488 @end lilypond
489
490 @seealso
491 Notation Reference:
492 @ref{Extenders and hyphens},
493 @ref{Keeping contexts alive},
494 @ref{Placing lyrics vertically}.
495
496
497 @node Manual syllable durations
498 @unnumberedsubsubsec Manual syllable durations
499
500 In some complex vocal music, it may be desirable to place lyrics
501 completely independently of notes.  In this case do not use
502 @code{\lyricsto} or @code{\addlyrics} and do not set
503 @code{associatedVoice}.  Syllables are entered like notes --
504 but with pitches replaced by text -- and the duration of each
505 syllable is entered explicitly after the syllable.
506
507 Hyphenated lines may be drawn between syllables
508 as usual, but extender lines cannot be drawn when there is no
509 associated voice.
510
511 Here are two examples:
512
513 @lilypond[relative=1,verbatim,quote]
514 <<
515   \new Voice = "melody" {
516     c'2 a f f e e
517   }
518   \new Lyrics \lyricmode {
519     c4. -- a -- f -- f -- e2. -- e
520   }
521 >>
522 @end lilypond
523
524
525 @lilypond[quote,verbatim,ragged-right]
526 <<
527   \new Staff {
528     \relative c'' {
529       c2 c2
530       d1
531     }
532   }
533   \new Lyrics {
534     \lyricmode {
535       I2 like4. my8 cat!1
536     }
537   }
538   \new Staff {
539     \relative c' {
540       c8 c c c c c c c
541       c8 c c c c c c c
542     }
543   }
544 >>
545 @end lilypond
546
547 This technique is useful when writing dialogue over music, see
548 @ref{Dialogue over music}.
549
550 To change syllable alignment, simply override the @code{self-alignment-X}
551 property:
552
553 @lilypond[relative=1,verbatim,quote]
554 <<
555   \new Voice = "melody" {
556     \time 3/4
557     c2 e4 g2 f
558   }
559   \new Lyrics \lyricmode {
560     \override LyricText.self-alignment-X = #LEFT
561     play1 a4 game4
562   }
563 >>
564 @end lilypond
565
566 @seealso
567 Notation Reference:
568 @ref{Dialogue over music}.
569
570 Internals Reference:
571 @rinternals{Lyrics},
572 @rinternals{Voice}.
573
574
575 @node Multiple syllables to one note
576 @unnumberedsubsubsec Multiple syllables to one note
577
578 @funindex _
579 @cindex spaces, in lyrics
580 @cindex quotes, in lyrics
581 @cindex ties, in lyrics
582
583 In order to assign more than one syllable to a single note with
584 spaces between the syllables, you can surround the phrase with
585 quotes or use a @code{_} character.  Alternatively, you can use
586 the tilde symbol (@code{~}) to get a lyric tie.
587
588 @lilypond[quote,ragged-right,verbatim,relative=2]
589 {
590   { \autoBeamOff
591     r8 b c fis, fis c' b e,
592   }
593   \addlyrics
594   {
595     \override LyricHyphen.minimum-distance = #1.0 % Ensure hyphens are visible
596     Che_in ques -- ta_e_in quel -- l'al -- tr'on -- da
597   }
598   \addlyrics { "Che in" ques -- "ta e in" quel -- l'al -- tr'on -- da }
599   \addlyrics { Che~in ques -- ta~e~in quel -- l'al -- tr'on -- da }
600 }
601 @end lilypond
602
603 @seealso
604 Internals Reference:
605 @rinternals{LyricCombineMusic}.
606
607
608 @node Multiple notes to one syllable
609 @unnumberedsubsubsec Multiple notes to one syllable
610
611 @cindex melisma
612 @cindex melismata
613 @cindex phrasing, in lyrics
614 @funindex \melisma
615 @funindex \melismaEnd
616
617 Sometimes, particularly in Medieval and baroque music, several notes are
618 sung on one syllable; this is called melisma, see
619 @rglos{melisma}.  The syllable to a melisma is usually
620 left-aligned with the first note of the melisma.
621
622 When a melisma occurs on a syllable other than the last one in a
623 word, that syllable is usually joined to the following one with a
624 hyphenated line.  This is indicated by placing a double hyphen,
625 @w{@code{--}}, immediately after the syllable.
626
627 Alternatively, when a melisma occurs on the last or only syllable in
628 a word an extender line is usually drawn from the end of the syllable
629 to the last note of the melisma.  This is indicated by placing a
630 double underscore, @code{__}, immediately after the word.
631
632 There are five ways in which melismata can be indicated:
633
634 @itemize
635
636 @item
637 Melismata are created automatically over notes which are tied
638 together:
639
640 @lilypond[quote,relative=2,verbatim]
641 <<
642   \new Voice = "melody" {
643     \time 3/4
644     f4 g2 ~ |
645     4 e2 ~ |
646     8
647   }
648   \new Lyrics \lyricsto "melody" {
649     Ky -- ri -- e __
650   }
651 >>
652 @end lilypond
653
654 @item
655 Melismata can be created automatically from the music by placing
656 slurs over the notes of each melisma.  This is the usual way of
657 entering lyrics:
658
659 @lilypond[quote,relative=2,verbatim]
660 <<
661   \new Voice = "melody" {
662     \time 3/4
663     f4 g8 ( f e f )
664     e8 ( d e2 )
665   }
666   \new Lyrics \lyricsto "melody" {
667     Ky -- ri -- e __
668   }
669 >>
670 @end lilypond
671
672 Note that phrasing slurs do not affect the creation of melismata.
673
674 @item
675 Notes are considered a melisma if they are manually beamed,
676 providing automatic beaming is switched off.  See
677 @ref{Setting automatic beam behavior}.
678
679 @lilypond[quote,relative=2,verbatim]
680 <<
681   \new Voice = "melody" {
682     \time 3/4
683     \autoBeamOff
684     f4 g8[ f e f]
685     e2.
686   }
687   \new Lyrics \lyricsto "melody" {
688     Ky -- ri -- e
689   }
690 >>
691 @end lilypond
692
693 Clearly this is not suited to melismata over notes which are longer
694 than eighth notes.
695
696 @item
697 An unslurred group of notes will be treated as a melisma if they
698 are bracketed between @code{\melisma} and @code{\melismaEnd}.
699
700 @lilypond[quote,relative=2,verbatim]
701 <<
702   \new Voice = "melody" {
703     \time 3/4
704     f4 g8
705     \melisma
706     f e f
707     \melismaEnd
708     e2.
709   }
710   \new Lyrics \lyricsto "melody" {
711     Ky -- ri -- e
712   }
713 >>
714 @end lilypond
715
716 @item
717 A melisma can be defined entirely in the lyrics by entering a
718 single underscore character, @code{_}, for every extra note that has
719 to be added to the melisma.
720
721 @lilypond[verbatim, quote, relative=2]
722 <<
723   \new Voice = "melody" {
724     \time 3/4
725     f4 g8 f e f
726     e8 d e2
727   }
728   \new Lyrics \lyricsto "melody" {
729     Ky -- ri -- _ _ _ e __ _ _
730   }
731 >>
732 @end lilypond
733
734 @end itemize
735
736 It is possible to have ties, slurs and manual beams in the melody
737 without their indicating melismata.  To do this, set
738 @code{melismaBusyProperties}:
739
740 @lilypond[relative=1,verbatim,quote]
741 <<
742   \new Voice = "melody" {
743     \time 3/4
744     \set melismaBusyProperties = #'()
745     c4 d ( e )
746     g8 [ f ] f4 ~ 4
747   }
748   \new Lyrics \lyricsto "melody" {
749     Ky -- ri -- e e -- le -- i -- son
750   }
751 >>
752 @end lilypond
753
754 Other settings for @code{melismaBusyProperties} can be used to
755 selectively include or exclude ties, slurs, and beams from the
756 automatic detection of melismata; see @code{melismaBusyProperties}
757 in @rinternals{Tunable context properties}.
758
759 Alternatively, if all melismata indications are to be ignored,
760 @code{ignoreMelismata} may be set true;
761 see @ref{Stanzas with different rhythms}.
762
763 If a melisma is required during a passage in which
764 @code{melismaBusyProperties} is active, it may be indicated by
765 placing a single underscore in the lyrics for each note which
766 should be included in the melisma:
767
768 @lilypond[relative=1,verbatim,quote]
769 <<
770   \new Voice = "melody" {
771     \time 3/4
772     \set melismaBusyProperties = #'()
773     c4 d ( e )
774     g8 [ f ] ~ 4 ~ f
775   }
776   \new Lyrics \lyricsto "melody" {
777     Ky -- ri -- _ e __ _ _ _
778   }
779 >>
780 @end lilypond
781
782
783 @predefined
784
785 @code{\autoBeamOff},
786 @code{\autoBeamOn},
787 @code{\melisma},
788 @code{\melismaEnd}.
789
790 @seealso
791 Musical Glossary:
792 @rglos{melisma}.
793
794 Learning Manual:
795 @rlearning{Aligning lyrics to a melody}.
796
797 Notation Reference:
798 @ref{Aligning lyrics to a melody},
799 @ref{Automatic syllable durations},
800 @ref{Setting automatic beam behavior},
801 @ref{Stanzas with different rhythms}.
802
803 Internals Reference:
804 @rinternals{Tunable context properties}.
805
806 @knownissues
807 Extender lines under melismata are not created automatically; they
808 must be inserted manually with a double underscore.
809
810
811 @node Extenders and hyphens
812 @unnumberedsubsubsec Extenders and hyphens
813
814 @cindex melisma
815 @cindex extender
816
817 @c TODO cf Multiple notes to one syllable; should this be merged in?
818
819 @c leave this as samp. -gp
820 In the last syllable of a word, melismata are sometimes indicated with
821 a long horizontal line starting in the melisma syllable, and ending in
822 the next one.  Such a line is called an extender line, and it is
823 entered as @samp{ __ } (note the spaces before and after the two
824 underscore characters).
825
826 @warning{Melismata are indicated in the score with extender lines,
827 which are entered as one double underscore; but short melismata can
828 also be entered by skipping individual notes, which are entered as
829 single underscore characters; these do not make an extender line to be
830 typeset by default.}
831
832 @cindex hyphens
833
834 @c leave this as samp. -gp
835 Centered hyphens are entered as @samp{ -- } between syllables of a
836 same word (note the spaces before and after the two hyphen
837 characters).  The hyphen will be centered between the syllables, and
838 its length will be adjusted depending on the space between the
839 syllables.
840
841 In tightly engraved music, hyphens can be removed.  Whether this
842 happens can be controlled with the @code{minimum-distance} (minimum
843 distance between two syllables) and the @code{minimum-length}
844 (threshold below which hyphens are removed) properties of
845 @code{LyricHyphen}.
846
847 @seealso
848 Internals Reference:
849 @rinternals{LyricExtender},
850 @rinternals{LyricHyphen}.
851
852
853 @node Techniques specific to lyrics
854 @subsection Techniques specific to lyrics
855
856 @c TODO this whole section is to be reorganised
857
858 @menu
859 * Working with lyrics and variables::
860 * Placing lyrics vertically::
861 * Placing syllables horizontally::
862 * Lyrics and repeats::
863 * Divisi lyrics::
864 * Polyphony with shared lyrics::
865 @end menu
866
867
868
869 @node Working with lyrics and variables
870 @unnumberedsubsubsec Working with lyrics and variables
871
872 @cindex lyrics, using variables
873
874 Variables containing lyrics can be created, but the lyrics must be
875 entered in lyric mode:
876
877 @lilypond[quote,verbatim]
878 musicOne = \relative c'' {
879   c4 b8. a16 g4. f8 e4 d c2
880 }
881 verseOne = \lyricmode {
882   Joy to the world, the Lord is come.
883 }
884 \score {
885   <<
886     \new Voice = "one" {
887       \time 2/4
888       \musicOne
889     }
890     \new Lyrics \lyricsto "one" {
891       \verseOne
892     }
893   >>
894 }
895 @end lilypond
896
897 Durations do not need to be added if the variable is to be invoked
898 with @code{\addlyrics} or @code{\lyricsto}.
899
900 For different or more complex orderings, the best way is to define
901 the music and lyric variables first, then set up the hierarchy of
902 staves and lyrics, omitting the lyrics themselves, and then add the
903 lyrics using @code{\context} underneath.  This ensures that the
904 voices referenced by @code{\lyricsto} have always been defined
905 earlier.  For example:
906
907 @lilypond[quote,verbatim]
908 sopranoMusic = \relative c'' { c4 c c c }
909 contraltoMusic = \relative c'' { a4 a a a }
910 sopranoWords = \lyricmode { Sop -- ra -- no words }
911 contraltoWords = \lyricmode { Con -- tral -- to words }
912
913 \score {
914   \new ChoirStaff <<
915     \new Staff {
916       \new Voice = "sopranos" {
917         \sopranoMusic
918       }
919     }
920     \new Lyrics = "sopranos"
921     \new Lyrics = "contraltos"
922     \new Staff {
923       \new Voice = "contraltos" {
924         \contraltoMusic
925       }
926     }
927     \context Lyrics = "sopranos" {
928       \lyricsto "sopranos" {
929         \sopranoWords
930       }
931     }
932     \context Lyrics = "contraltos" {
933       \lyricsto "contraltos" {
934         \contraltoWords
935       }
936     }
937   >>
938 }
939 @end lilypond
940
941 @seealso
942 Notation Reference:
943 @ref{Placing lyrics vertically}.
944
945 Internals Reference:
946 @rinternals{LyricCombineMusic},
947 @rinternals{Lyrics}.
948
949
950 @node Placing lyrics vertically
951 @unnumberedsubsubsec Placing lyrics vertically
952
953 @cindex placement of lyrics
954 @cindex lyrics, positioning
955
956 Depending on the type of music, lyrics may be positioned
957 above the staff, below the staff, or between staves.  Placing
958 lyrics below the associated staff is the easiest, and can be
959 achieved by simply defining the Lyrics context below the Staff
960 context:
961
962 @lilypond[quote,verbatim]
963 \score {
964   <<
965     \new Staff {
966       \new Voice = "melody" {
967         \relative c'' { c4 c c c }
968       }
969     }
970     \new Lyrics {
971       \lyricsto "melody" {
972         Here are the words
973       }
974     }
975   >>
976 }
977 @end lilypond
978
979 Lyrics may be positioned above the staff using one of
980 two methods.  The simplest (and preferred) method
981 is to use the same syntax as above and explicitly
982 specify the position of the lyrics:
983
984 @lilypond[quote,verbatim]
985 \score {
986   <<
987     \new Staff = "staff" {
988       \new Voice = "melody" {
989         \relative c'' { c4 c c c }
990       }
991     }
992     \new Lyrics \with { alignAboveContext = "staff" } {
993       \lyricsto "melody" {
994         Here are the words
995       }
996     }
997   >>
998 }
999 @end lilypond
1000
1001 Alternatively, a two-step process may be used.  First the Lyrics
1002 context is declared (without any content) before the Staff and
1003 Voice contexts, then the @code{\lyricsto} command is placed after
1004 the Voice declaration it references by using @code{\context}, as
1005 follows:
1006
1007 @lilypond[quote,verbatim]
1008 \score {
1009   <<
1010     \new Lyrics = "lyrics" \with {
1011       % lyrics above a staff should have this override
1012       \override VerticalAxisGroup.staff-affinity = #DOWN
1013     }
1014     \new Staff {
1015       \new Voice = "melody" {
1016         \relative c'' { c4 c c c }
1017       }
1018     }
1019     \context Lyrics = "lyrics" {
1020       \lyricsto "melody" {
1021         Here are the words
1022       }
1023     }
1024   >>
1025 }
1026 @end lilypond
1027
1028 When there are two voices on separate staves the lyrics may be
1029 placed between the staves using either of these methods.  Here
1030 is an example of the second method:
1031
1032 @lilypond[quote,verbatim]
1033 \score {
1034   \new ChoirStaff <<
1035     \new Staff {
1036       \new Voice = "sopranos" {
1037         \relative c'' { c4 c c c }
1038       }
1039     }
1040     \new Lyrics = "sopranos"
1041     \new Lyrics = "contraltos" \with {
1042       % lyrics above a staff should have this override
1043       \override VerticalAxisGroup.staff-affinity = #DOWN
1044     }
1045     \new Staff {
1046       \new Voice = "contraltos" {
1047         \relative c'' { a4 a a a }
1048       }
1049     }
1050     \context Lyrics = "sopranos" {
1051       \lyricsto "sopranos" {
1052         Sop -- ra -- no words
1053       }
1054     }
1055     \context Lyrics = "contraltos" {
1056       \lyricsto "contraltos" {
1057         Con -- tral -- to words
1058       }
1059     }
1060   >>
1061 }
1062 @end lilypond
1063
1064 Other combinations of lyrics and staves may be generated by
1065 elaborating these examples, or by examining the templates in the
1066 Learning Manual, see @rlearning{Vocal ensembles templates}.
1067
1068 @snippets
1069 @lilypondfile[verbatim,quote,texidoc,doctitle]
1070 {obtaining-2.12-lyrics-spacing-in-newer-versions.ly}
1071
1072 @seealso
1073 Learning Manual:
1074 @rlearning{Vocal ensembles templates}.
1075
1076 Notation Reference:
1077 @ref{Context layout order},
1078 @ref{Creating and referencing contexts}.
1079
1080
1081 @node Placing syllables horizontally
1082 @unnumberedsubsubsec Placing syllables horizontally
1083
1084 @cindex Spacing lyrics
1085 @cindex Lyrics, increasing space between
1086
1087 To increase the spacing between lyrics, set the
1088 @code{minimum-distance} property of @code{LyricSpace}.
1089
1090 @lilypond[relative=1,verbatim,quote,ragged-right]
1091 {
1092   c c c c
1093   \override Lyrics.LyricSpace.minimum-distance = #1.0
1094   c c c c
1095 }
1096 \addlyrics {
1097   longtext longtext longtext longtext
1098   longtext longtext longtext longtext
1099 }
1100 @end lilypond
1101
1102 @noindent
1103 To make this change for all lyrics in the score, set the property in the
1104 @code{\layout} block.
1105
1106 @lilypond[verbatim,quote,ragged-right]
1107 \score {
1108   \relative c' {
1109   c c c c
1110   c c c c
1111   }
1112   \addlyrics {
1113   longtext longtext longtext longtext
1114   longtext longtext longtext longtext
1115   }
1116   \layout {
1117     \context {
1118       \Lyrics
1119       \override LyricSpace.minimum-distance = #1.0
1120     }
1121   }
1122 }
1123 @end lilypond
1124
1125 @snippets
1126 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
1127 {lyrics-alignment.ly}
1128
1129 @c TODO: move to LSR -vv
1130
1131 Checking to make sure that text scripts and lyrics are within the margins
1132 requires additional calculations.  To speed up processing slightly, this
1133 feature can be disabled:
1134
1135 @example
1136 \override Score.PaperColumn.keep-inside-line = ##f
1137 @end example
1138
1139 To make lyrics avoid bar lines as well, use
1140
1141 @example
1142 \layout @{
1143   \context @{
1144     \Lyrics
1145       \consists "Bar_engraver"
1146       \consists "Separating_line_group_engraver"
1147       \hide BarLine
1148   @}
1149 @}
1150 @end example
1151
1152 @node Lyrics and repeats
1153 @unnumberedsubsubsec Lyrics and repeats
1154
1155 @cindex repeats and lyrics
1156 @cindex lyrics, repeating
1157
1158 @subheading Simple repeats
1159
1160 Repeats in @emph{music} are fully described elsewhere; see
1161 @ref{Repeats}.  This section explains how to add lyrics to repeated
1162 sections of music.
1163
1164 Lyrics to a section of music that is repeated should be surrounded
1165 by exactly the same repeat construct as the music, if the words are
1166 unchanged.
1167
1168 @lilypond[verbatim,quote]
1169 \score {
1170   <<
1171     \new Staff {
1172       \new Voice = "melody" {
1173         \relative c'' {
1174           a4 a a a
1175           \repeat volta 2 { b4 b b b }
1176         }
1177       }
1178     }
1179     \new Lyrics {
1180       \lyricsto "melody" {
1181         Not re -- peat -- ed.
1182         \repeat volta 2 { Re -- peat -- ed twice. }
1183       }
1184     }
1185   >>
1186 }
1187 @end lilypond
1188
1189 The words will then be correctly expanded if the repeats are
1190 unfolded.
1191
1192 @lilypond[verbatim,quote]
1193 \score {
1194   \unfoldRepeats {
1195     <<
1196       \new Staff {
1197         \new Voice = "melody" {
1198           \relative c'' {
1199             a4 a a a
1200             \repeat volta 2 { b4 b b b }
1201           }
1202         }
1203       }
1204       \new Lyrics {
1205         \lyricsto "melody" {
1206           Not re -- peat -- ed.
1207           \repeat volta 2 { Re -- peat -- ed twice. }
1208         }
1209       }
1210     >>
1211   }
1212 }
1213 @end lilypond
1214
1215 If the repeated section is to be unfolded and has different words,
1216 simply enter all the words:
1217
1218 @lilypond[verbatim,quote,ragged-right]
1219 \score {
1220   <<
1221     \new Staff {
1222       \new Voice = "melody" {
1223         \relative c'' {
1224           a4 a a a
1225           \repeat unfold 2 { b4 b b b }
1226         }
1227       }
1228     }
1229     \new Lyrics {
1230       \lyricsto "melody" {
1231         Not re -- peat -- ed.
1232         The first time words.
1233         Sec -- ond time words.
1234       }
1235     }
1236   >>
1237 }
1238 @end lilypond
1239
1240 When the words to a repeated volta section are different, the words
1241 to each repeat must be entered in separate @code{Lyrics} contexts,
1242 correctly nested in parallel sections:
1243
1244 @lilypond[verbatim,quote]
1245 \score {
1246   <<
1247     \new Staff {
1248       \new Voice = "melody" {
1249         \relative c'' {
1250           a4 a a a
1251           \repeat volta 2 { b4 b b b }
1252         }
1253       }
1254     }
1255     \new Lyrics \lyricsto "melody" {
1256       Not re -- peat -- ed.
1257       <<
1258         { The first time words. }
1259         \new Lyrics {
1260           \set associatedVoice = "melody"
1261           Sec -- ond time words.
1262         }
1263       >>
1264     }
1265   >>
1266 }
1267 @end lilypond
1268
1269 More verses may be added in a similar way:
1270
1271 @lilypond[verbatim,quote]
1272 \score {
1273   <<
1274     \new Staff {
1275       \new Voice = "singleVoice" {
1276         \relative c'' {
1277           a4 a a a
1278           \repeat volta 3 { b4 b b b }
1279           c4 c c c
1280         }
1281       }
1282     }
1283     \new Lyrics \lyricsto "singleVoice" {
1284       Not re -- peat -- ed.
1285       <<
1286         { The first time words. }
1287         \new Lyrics {
1288           \set associatedVoice = "singleVoice"
1289           Sec -- ond time words.
1290         }
1291         \new Lyrics {
1292           \set associatedVoice = "singleVoice"
1293           The third time words.
1294         }
1295       >>
1296       The end sec -- tion.
1297     }
1298   >>
1299 }
1300 @end lilypond
1301
1302 @cindex alignBelowContext
1303 @funindex alignBelowContext
1304
1305 However, if this construct is embedded within a multi-staved
1306 context such as a @code{ChoirStaff} the lyrics of the second and
1307 third verses will appear beneath the bottom staff.
1308
1309 To position them correctly use @code{alignBelowContext}:
1310
1311 @lilypond[verbatim,quote]
1312 \score {
1313   <<
1314     \new Staff {
1315       \new Voice = "melody" {
1316         \relative c'' {
1317           a4 a a a
1318           \repeat volta 3 { b4 b b b }
1319           c4 c c c
1320         }
1321       }
1322     }
1323     \new Lyrics = "firstVerse" \lyricsto "melody" {
1324       Not re -- peat -- ed.
1325       <<
1326         { The first time words. }
1327         \new Lyrics = "secondVerse"
1328         \with { alignBelowContext = #"firstVerse" } {
1329           \set associatedVoice = "melody"
1330           Sec -- ond time words.
1331         }
1332         \new Lyrics = "thirdVerse"
1333         \with { alignBelowContext = #"secondVerse" } {
1334           \set associatedVoice = "melody"
1335           The third time words.
1336         }
1337       >>
1338       The end sec -- tion.
1339     }
1340     \new Voice = "harmony" {
1341       \relative c' {
1342         f4 f f f \repeat volta 2 { g8 g g4 g2 } a4 a8. a16 a2
1343       }
1344     }
1345   >>
1346 }
1347 @end lilypond
1348
1349
1350
1351 @c TODO positioning a common line of lyrics
1352
1353 @subheading Repeats with alternative endings
1354
1355 @cindex lyrics, repeats with alternative endings
1356 @cindex repeating lyrics with alternative endings
1357 @cindex alternative endings and lyrics
1358
1359 If the words of the repeated section are the same, exactly the
1360 same structure can be used for both the lyrics and music.
1361
1362 @lilypond[quote,verbatim]
1363 \score {
1364   <<
1365     \new Staff {
1366       \time 2/4
1367       \new Voice = "melody" {
1368         \relative c'' {
1369           a4 a a a
1370           \repeat volta 2 { b4 b }
1371           \alternative { { b b } { b c } }
1372         }
1373       }
1374     }
1375     \new Lyrics {
1376       \lyricsto "melody" {
1377         Not re -- peat -- ed.
1378         \repeat volta 2 { Re -- peat -- }
1379         \alternative { { ed twice. } { ed twice. } }
1380       }
1381     }
1382   >>
1383 }
1384 @end lilypond
1385
1386 @funindex \skip
1387 @cindex skipping notes in lyrics
1388 @cindex lyrics, skipping notes
1389
1390 But when the repeated section has different words, a repeat
1391 construct cannot be used around the words and @code{\skip} commands
1392 have to be inserted manually to skip over the notes in the
1393 alternative sections which do not apply.
1394
1395 Note: do not use an underscore, @code{_}, to skip notes -- an
1396 underscore indicates a melisma, causing the preceding syllable
1397 to be left-aligned.
1398
1399 @warning{The @code{@bs{}skip} command must be followed by a number,
1400 but this number is ignored in lyrics which derive their durations
1401 from the notes in an associated melody through @code{\addlyrics} or
1402 @code{\lyricsto}.  Each @code{@bs{}skip} skips a single note of any
1403 value, irrespective of the value of the following number.}
1404
1405 @lilypond[verbatim,quote,ragged-right]
1406 \score {
1407   <<
1408     \new Staff {
1409       \time 2/4
1410       \new Voice = "melody" {
1411         \relative c'' {
1412           \repeat volta 2 { b4 b }
1413           \alternative { { b b } { b c } }
1414           c4 c
1415         }
1416       }
1417     }
1418     \new Lyrics {
1419       \lyricsto "melody" {
1420         The first time words.
1421         \repeat unfold 2 { \skip 1 }
1422         End here.
1423       }
1424     }
1425     \new Lyrics {
1426       \lyricsto "melody" {
1427         Sec -- ond
1428         \repeat unfold 2 { \skip 1 }
1429         time words.
1430       }
1431     }
1432   >>
1433 }
1434 @end lilypond
1435
1436 @cindex lyrics and tied notes
1437 @funindex \repeatTie
1438
1439 When a note is tied over into two or more alternative endings a
1440 tie is used to carry the note into the first alternative ending and
1441 a @code{\repeatTie} is used in the second and subsequent endings.
1442 This structure causes difficult alignment problems when lyrics are
1443 involved and increasing the length of the alternative sections so
1444 the tied notes are contained wholly within them may give a more
1445 acceptable result.
1446
1447 The tie creates a melisma into the first alternative, but not into
1448 the second and subsequent alternatives, so to align the lyrics
1449 correctly it is necessary to disable the automatic creation of
1450 melismata over the volta section and insert manual skips.
1451
1452 @lilypond[quote,verbatim]
1453 \score {
1454   <<
1455     \new Staff {
1456       \time 2/4
1457       \new Voice = "melody" {
1458         \relative c'' {
1459           \set melismaBusyProperties = #'()
1460           \repeat volta 2 { b4 b ~}
1461           \alternative { { b b } { b \repeatTie c } }
1462           \unset melismaBusyProperties
1463           c4 c
1464         }
1465       }
1466     }
1467     \new Lyrics {
1468       \lyricsto "melody" {
1469         \repeat volta 2 { Here's a __ }
1470         \alternative {
1471           { \skip 1 verse }
1472           { \skip 1 sec }
1473         }
1474         ond one.
1475       }
1476     }
1477   >>
1478 }
1479 @end lilypond
1480
1481 Note that if @code{\unfoldRepeats} is used around a section
1482 containing @code{\repeatTie}, the @code{\repeatTie} should be
1483 removed to avoid both types of tie being printed.
1484
1485 When the repeated section has different words a @code{\repeat}
1486 cannot be used around the lyrics and @code{\skip} commands need to
1487 be inserted manually, as before.
1488
1489 @lilypond[quote,verbatim]
1490 \score {
1491   <<
1492     \new Staff {
1493       \time 2/4
1494       \new Voice = "melody" {
1495         \relative c'' {
1496           \repeat volta 2 { b4 b ~}
1497           \alternative { { b b } { b \repeatTie c } }
1498           c4 c
1499         }
1500       }
1501     }
1502     \new Lyrics {
1503       \lyricsto "melody" {
1504         Here's a __ verse.
1505         \repeat unfold 2 { \skip 1 }
1506       }
1507     }
1508     \new Lyrics {
1509       \lyricsto "melody" {
1510         Here's one
1511         \repeat unfold 2 { \skip 1 }
1512         more to sing.
1513       }
1514     }
1515   >>
1516 }
1517 @end lilypond
1518
1519 If you wish to show extenders and hyphens into and out of
1520 alternative sections these must be inserted manually.
1521
1522 @lilypond[quote,verbatim]
1523 \score {
1524   <<
1525     \new Staff {
1526       \time 2/4
1527       \new Voice = "melody" {
1528         \relative c'' {
1529           \repeat volta 2 { b4 b ~}
1530           \alternative { { b b } { b \repeatTie c } }
1531           c4 c
1532         }
1533       }
1534     }
1535     \new Lyrics {
1536       \lyricsto "melody" {
1537         Here's a __ verse.
1538         \repeat unfold 2 { \skip 1 }
1539       }
1540     }
1541     \new Lyrics {
1542       \lyricsto "melody" {
1543         Here's "a_"
1544         \skip 1
1545         "_" sec -- ond one.
1546       }
1547     }
1548   >>
1549 }
1550 @end lilypond
1551
1552 @seealso
1553 Notation Reference:
1554 @ref{Keeping contexts alive},
1555 @ref{Repeats}.
1556
1557
1558 @node Divisi lyrics
1559 @unnumberedsubsubsec Divisi lyrics
1560
1561 @cindex divided lyrics
1562 @cindex lyrics, divided
1563
1564 When just the words and rhythms of the two parts differ with the
1565 pitches remaining the same, temporarily turning off the automatic
1566 detection of melismata and indicating the melisma in the lyrics
1567 may be the appropriate method to use:
1568
1569 @lilypond[quote,verbatim]
1570 \score {
1571   <<
1572     \new Voice = "melody" {
1573       \relative c' {
1574         \set melismaBusyProperties = #'()
1575         \slurDown
1576         \slurDashed
1577         e4 e8 ( e ) c4 c |
1578         \unset melismaBusyProperties
1579         c
1580       }
1581     }
1582     \new Lyrics \lyricsto "melody" {
1583       They shall not o -- ver -- come
1584     }
1585     \new Lyrics \lyricsto "melody" {
1586       We will _
1587     }
1588   >>
1589 }
1590 @end lilypond
1591
1592 When both music and words differ it may be better to display
1593 the differing music and lyrics by naming voice contexts and
1594 attaching lyrics to those specific contexts:
1595
1596 @lilypond[verbatim,ragged-right,quote]
1597 \score {
1598   <<
1599     \new Voice = "melody" {
1600       \relative c' {
1601         <<
1602           {
1603             \voiceOne
1604             e4 e8 e
1605           }
1606           \new Voice = "splitpart" {
1607             \voiceTwo
1608             c4 c
1609           }
1610         >>
1611         \oneVoice
1612         c4 c |
1613         c
1614       }
1615     }
1616     \new Lyrics \lyricsto "melody" {
1617       They shall not o -- ver -- come
1618     }
1619     \new Lyrics \lyricsto "splitpart" {
1620       We will
1621     }
1622   >>
1623 }
1624 @end lilypond
1625
1626 It is common in choral music to have a voice part split for
1627 several measures.  The @code{<< @{@dots{}@} \\ @{@dots{}@} >>}
1628 construct, where the two (or more) musical expressions are
1629 separated by double backslashes, might seem the proper way to
1630 set the split voices.  This construct, however, will assign
1631 @strong{all} the expressions within it to @strong{NEW Voice
1632 contexts} which will result in @emph{no lyrics} being set for
1633 them since the lyrics will be set to the original voice context
1634 -- not, typically, what one wants.  The temporary polyphonic
1635 passage is the proper construct to use, see section
1636 @emph{Temporary polyphonic passages} in @ref{Single-staff polyphony}.
1637
1638
1639 @node Polyphony with shared lyrics
1640 @unnumberedsubsubsec Polyphony with shared lyrics
1641
1642 @cindex NullVoice
1643 @cindex polyphony, shared lyrics
1644 @cindex lyrics, shared among voices
1645 @cindex \partcombine and lyrics
1646 @funindex \partcombine
1647
1648 When two voices with different rhythms share the same lyrics,
1649 aligning the lyrics to one of the voices may lead to problems in
1650 the other voice.  For example, the second lyric extender below is
1651 too short, since the lyrics are aligned only to the top voice:
1652
1653 @lilypond[quote,verbatim]
1654 soprano = \relative { b'8( c d c) d2 }
1655 alto = \relative { g'2 b8( a g a) }
1656 words = \lyricmode { la __ la __ }
1657
1658 \new Staff <<
1659   \new Voice = "sopranoVoice" { \voiceOne \soprano }
1660   \new Voice { \voiceTwo \alto }
1661   \new Lyrics \lyricsto "sopranoVoice" \words
1662 >>
1663 @end lilypond
1664
1665 To get the desired result, align the lyrics to a new
1666 @code{NullVoice} context containing a suitable combination of the
1667 two voices.  The notes of the @code{NullVoice} context do not
1668 appear on the printed page, but can be used to align the lyrics
1669 appropriately:
1670
1671 @lilypond[quote,verbatim]
1672 soprano = \relative { b'8( c d c) d2 }
1673 alto = \relative { g'2 b8( a g a) }
1674 aligner = \relative { b'8( c d c) b( a g a) }
1675 words = \lyricmode { la __ la __ }
1676
1677 \new Staff <<
1678   \new Voice { \voiceOne \soprano }
1679   \new Voice { \voiceTwo \alto }
1680   \new NullVoice = "aligner" \aligner
1681   \new Lyrics \lyricsto "aligner" \words
1682 >>
1683 @end lilypond
1684
1685 The @code{NullVoice} context must be placed within a @code{Staff}
1686 context and contain notes that are already being displayed in that staff and that are also in the same octave.  Otherwise the
1687 @code{NullVoice} may interact with the printed voices in
1688 unexpected ways.  For example, arbitrary notes in the
1689 @code{NullVoice} may cause accidentals to appear (or disappear) on
1690 the staff.
1691
1692 This method also can be used with the @code{\partcombine}
1693 function, which does not allow lyrics on its own:
1694
1695 @lilypond[quote,verbatim]
1696 soprano = \relative { b'8( c d c) d2 }
1697 alto = \relative { g'2 b8( a g a) }
1698 aligner = \relative { b'8( c d c) b( a g a) }
1699 words = \lyricmode { la __ la __ }
1700
1701 \new Staff <<
1702   \new Voice \partcombine \soprano \alto
1703   \new NullVoice = "aligner" \aligner
1704   \new Lyrics \lyricsto "aligner" \words
1705 >>
1706 @end lilypond
1707
1708 @knownissues
1709 The @code{\addLyrics} function only works with @code{Voice} lyrics
1710 and so cannot be used with @code{NullVoice}.
1711
1712 @noindent
1713 The @code{\partcombine} function is described in
1714 @ref{Automatic part combining}.
1715
1716 Lastly, this method can be used even when the voices are in
1717 different staves, and is not limited to only two voices:
1718
1719 @lilypond[quote,verbatim]
1720 soprano = \relative { b'8( c d c) d2 }
1721 altoOne = \relative { g'2 b8( a b4) }
1722 altoTwo = \relative { d'2 g4( fis8 g) }
1723 aligner = \relative { b'8( c d c) d( d d d) }
1724 words = \lyricmode { la __ la __ }
1725
1726 \new ChoirStaff <<
1727   \new Staff <<
1728     \soprano
1729     \new NullVoice = "aligner" \aligner
1730   >>
1731   \new Lyrics \lyricsto "aligner" \words
1732   \new Staff \partcombine \altoOne \altoTwo
1733 >>
1734 @end lilypond
1735
1736 However, note that in the second half of the measure above, the
1737 notes in the @code{NullVoice} context reflect the rhythm of the
1738 lower staff, but they do not deviate from the single pitch being
1739 displayed in the staff to which the @code{NullVoice} belongs.
1740 While not actually required in this particular example, it is a
1741 good idea in general to enter the notes in this way.
1742
1743
1744 @node Stanzas
1745 @subsection Stanzas
1746
1747 @menu
1748 * Adding stanza numbers::
1749 * Adding dynamics marks to stanzas::
1750 * Adding singers' names to stanzas::
1751 * Stanzas with different rhythms::
1752 * Printing stanzas at the end::
1753 * Printing stanzas at the end in multiple columns::
1754 @end menu
1755
1756
1757 @node Adding stanza numbers
1758 @unnumberedsubsubsec Adding stanza numbers
1759
1760 @cindex stanza number
1761
1762 Stanza numbers can be added by setting @code{stanza}, e.g.,
1763
1764 @lilypond[quote,ragged-right,verbatim,relative=2]
1765 \new Voice {
1766   \time 3/4 g2 e4 a2 f4 g2.
1767 } \addlyrics {
1768   \set stanza = #"1. "
1769   Hi, my name is Bert.
1770 } \addlyrics {
1771   \set stanza = #"2. "
1772   Oh, ché -- ri, je t'aime
1773 }
1774 @end lilypond
1775
1776
1777 @noindent
1778 These numbers are put just before the start of the first syllable.
1779
1780 @c TODO Create and add snippet to show how two lines of a
1781 @c stanza can be grouped together, along these lines:
1782 @c (might need improving a bit) -td
1783
1784 @ignore
1785 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup
1786 #"brace105" }
1787
1788 stanzaOneOne = {
1789   \set stanza = \markup { "1. " \leftbrace }
1790   \lyricmode { Child, you're mine and I love you.
1791     Lend thine ear to what I say.
1792
1793   }
1794 }
1795
1796 stanzaOneThree =  {
1797 %  \set stanza = \markup { "   "}
1798   \lyricmode { Child, I have no great -- er joy
1799     Than to have you walk in truth.
1800
1801   }
1802 }
1803
1804 \new Voice {
1805   \repeat volta 2 { c'8 c' c' c' c' c' c'4
1806                     c'8 c' c' c' c' c' c'4   }
1807 }  \addlyrics { \stanzaOneOne }
1808    \addlyrics { \stanzaOneThree }
1809
1810 @end ignore
1811
1812 @node Adding dynamics marks to stanzas
1813 @unnumberedsubsubsec Adding dynamics marks to stanzas
1814
1815 Stanzas differing in loudness may be indicated by putting a
1816 dynamics mark before each stanza.  In LilyPond, everything coming in
1817 front of a stanza goes into the @code{StanzaNumber} object; dynamics
1818 marks are no different.  For technical reasons, you have to set the
1819 stanza outside @code{\lyricmode}:
1820
1821 @lilypond[quote,ragged-right,verbatim]
1822 text = {
1823   \set stanza = \markup { \dynamic "ff" "1. " }
1824   \lyricmode {
1825     Big bang
1826   }
1827 }
1828
1829 <<
1830   \new Voice = "tune" {
1831     \time 3/4
1832     g'4 c'2
1833   }
1834 \new Lyrics \lyricsto "tune" \text
1835 >>
1836 @end lilypond
1837
1838 @node Adding singers' names to stanzas
1839 @unnumberedsubsubsec Adding singers' names to stanzas
1840
1841 @cindex singer name
1842 @cindex name of singer
1843
1844 Names of singers can also be added.  They are printed at the start of
1845 the line, just like instrument names.  They are created by setting
1846 @code{vocalName}.  A short version may be entered as
1847 @code{shortVocalName}.
1848
1849 @lilypond[ragged-right,quote,verbatim,relative=2]
1850 \new Voice {
1851   \time 3/4 g2 e4 a2 f4 g2.
1852 } \addlyrics {
1853   \set vocalName = #"Bert "
1854   Hi, my name is Bert.
1855 } \addlyrics {
1856   \set vocalName = #"Ernie "
1857   Oh, ché -- ri, je t'aime
1858 }
1859 @end lilypond
1860
1861 @node Stanzas with different rhythms
1862 @unnumberedsubsubsec Stanzas with different rhythms
1863
1864 Often, different stanzas of one song are put to one melody in slightly
1865 differing ways.  Such variations can still be captured with
1866 @code{\lyricsto}.
1867
1868 @subsubheading Ignoring melismata
1869
1870 One possibility is that the text has a melisma in one stanza, but
1871 multiple syllables in another.  One solution is to make the faster
1872 voice ignore the melisma.  This is done by setting
1873 @code{ignoreMelismata} in the Lyrics context.
1874
1875 @lilypond[verbatim,ragged-right,quote]
1876 <<
1877   \relative c' \new Voice = "lahlah" {
1878     \set Staff.autoBeaming = ##f
1879     c4
1880     \slurDotted
1881     f8.[( g16])
1882     a4
1883   }
1884   \new Lyrics \lyricsto "lahlah" {
1885     more slow -- ly
1886   }
1887   \new Lyrics \lyricsto "lahlah" {
1888     go
1889     \set ignoreMelismata = ##t
1890     fas -- ter
1891     \unset ignoreMelismata
1892     still
1893   }
1894 >>
1895 @end lilypond
1896
1897 @knownissues
1898 Unlike most @code{\set} commands, @code{\set ignoreMelismata} does
1899 not work if prefixed with @code{\once}.  It is necessary to use
1900 @code{\set} and @code{\unset} to bracket the lyrics where melismata
1901 are to be ignored.
1902
1903 @subsubheading Adding syllables to grace notes
1904
1905 @cindex grace notes and lyrics
1906 @cindex lyrics on grace notes
1907
1908 By default, grace notes (e.g. via @code{\grace}) do not get assigned
1909 syllables when using @code{\lyricsto}, but this behavior can be
1910 changed:
1911
1912 @lilypond[verbatim,ragged-right,quote]
1913 <<
1914   \new Voice = melody \relative c' {
1915     f4 \appoggiatura a32 b4
1916     \grace { f16 a16 } b2
1917     \afterGrace b2 { f16[ a16] }
1918     \appoggiatura a32 b4
1919     \acciaccatura a8 b4
1920   }
1921   \new Lyrics
1922   \lyricsto melody {
1923     normal
1924     \set includeGraceNotes = ##t
1925     case,
1926     gra -- ce case,
1927     after -- grace case,
1928     \set ignoreMelismata = ##t
1929     app. case,
1930     acc. case.
1931   }
1932 >>
1933 @end lilypond
1934
1935 @knownissues
1936 Like @code{associatedVoice}, @code{includeGraceNotes} needs to be
1937 set at latest one syllable before the one which is to be put under a
1938 grace note.  For the case of a grace note at the very beginning of a
1939 piece of music, consider using a @code{\with} or @code{\context}
1940 block:
1941
1942 @lilypond[verbatim,ragged-right,quote]
1943 <<
1944   \new Voice = melody \relative c' {
1945     \grace { c16( d e f }
1946     g1) f
1947   }
1948   \new Lyrics \with { includeGraceNotes = ##t }
1949   \lyricsto melody {
1950     Ah __ fa
1951   }
1952 >>
1953 @end lilypond
1954
1955 @subsubheading Switching to an alternative melody
1956
1957 @cindex associatedVoice
1958 @cindex alternative melody, switching to
1959
1960 More complex variations in setting lyrics to music are possible.
1961 The melody to which the lyrics are being set can be changed from
1962 within the lyrics by setting the @code{associatedVoice} property:
1963
1964 @lilypond[verbatim,quote]
1965 <<
1966   \relative c' \new Voice = "lahlah" {
1967     \set Staff.autoBeaming = ##f
1968     c4
1969     <<
1970       \new Voice = "alternative" {
1971         \voiceOne
1972         \tuplet 3/2 {
1973           % show associations clearly.
1974           \override NoteColumn.force-hshift = #-3
1975           f8 f g
1976         }
1977       }
1978       {
1979         \voiceTwo
1980         f8.[ g16]
1981         \oneVoice
1982       } >>
1983     a8( b) c
1984   }
1985   \new Lyrics \lyricsto "lahlah" {
1986     Ju -- ras -- sic Park
1987   }
1988   \new Lyrics \lyricsto "lahlah" {
1989     % Tricky: need to set associatedVoice
1990     % one syllable too soon!
1991     \set associatedVoice = "alternative" % applies to "ran"
1992     Ty --
1993     ran --
1994     no --
1995     \set associatedVoice = "lahlah" % applies to "rus"
1996     sau -- rus Rex
1997   } >>
1998 @end lilypond
1999
2000 @noindent
2001 The text for the first stanza is set to the melody called
2002 @q{lahlah} in the usual way, but the second stanza is set initally
2003 to the @code{lahlah} context and is then switched to the
2004 @code{alternative} melody for the syllables @q{ran} to @q{sau} by
2005 the lines:
2006
2007 @example
2008 \set associatedVoice = "alternative" % applies to "ran"
2009 Ty --
2010 ran --
2011 no --
2012 \set associatedVoice = "lahlah" % applies to "rus"
2013 sau -- rus Rex
2014 @end example
2015
2016 @noindent
2017 Here, @code{alternative} is the name of the @code{Voice} context
2018 containing the triplet.
2019
2020 Note the placement of the @code{\set associatedVoice} command --
2021 it appears to be one syllable too early, but this is correct.
2022
2023 @warning{The @code{\set associatedVoice} command must be placed
2024 one syllable @emph{before} the one at which the switch to the new
2025 voice is to occur.  In other words, changing the associated Voice
2026 happens one syllable later than expected.  This is for technical
2027 reasons, and it is not a bug.}
2028
2029
2030 @node Printing stanzas at the end
2031 @unnumberedsubsubsec Printing stanzas at the end
2032
2033 Sometimes it is appropriate to have one stanza set
2034 to the music, and the rest added in verse form at
2035 the end of the piece.  This can be accomplished by adding
2036 the extra verses into a @code{\markup} section outside
2037 of the main score block.  Notice that there are two
2038 different ways to force linebreaks when using
2039 @code{\markup}.
2040
2041 @lilypond[ragged-right,verbatim,quote]
2042 melody = \relative c' {
2043 e d c d | e e e e |
2044 d d e d | c1 |
2045 }
2046
2047 text = \lyricmode {
2048 \set stanza = #"1." Ma- ry had a lit- tle lamb,
2049 its fleece was white as snow.
2050 }
2051
2052 \score{ <<
2053   \new Voice = "one" { \melody }
2054   \new Lyrics \lyricsto "one" \text
2055 >>
2056   \layout { }
2057 }
2058 \markup { \column{
2059   \line{ Verse 2. }
2060   \line{ All the children laughed and played }
2061   \line{ To see a lamb at school. }
2062   }
2063 }
2064 \markup{
2065   \wordwrap-string #"
2066   Verse 3.
2067
2068   Mary took it home again,
2069
2070   It was against the rule."
2071 }
2072 @end lilypond
2073
2074
2075 @node Printing stanzas at the end in multiple columns
2076 @unnumberedsubsubsec Printing stanzas at the end in multiple columns
2077
2078 When a piece of music has many verses, they are often printed in
2079 multiple columns across the page.  An outdented verse number often
2080 introduces each verse.  The following example shows how to produce such
2081 output in LilyPond.
2082
2083 @lilypond[ragged-right,quote,verbatim]
2084 melody = \relative c' {
2085   c4 c c c | d d d d
2086 }
2087
2088 text = \lyricmode {
2089   \set stanza = #"1." This is verse one.
2090   It has two lines.
2091 }
2092
2093 \score {
2094   <<
2095     \new Voice = "one" { \melody }
2096     \new Lyrics \lyricsto "one" \text
2097   >>
2098   \layout { }
2099 }
2100
2101 \markup {
2102   \fill-line {
2103     \hspace #0.1 % moves the column off the left margin;
2104      % can be removed if space on the page is tight
2105      \column {
2106       \line { \bold "2."
2107         \column {
2108           "This is verse two."
2109           "It has two lines."
2110         }
2111       }
2112       \combine \null \vspace #0.1 % adds vertical spacing between verses
2113       \line { \bold "3."
2114         \column {
2115           "This is verse three."
2116           "It has two lines."
2117         }
2118       }
2119     }
2120     \hspace #0.1 % adds horizontal spacing between columns;
2121     \column {
2122       \line { \bold "4."
2123         \column {
2124           "This is verse four."
2125           "It has two lines."
2126         }
2127       }
2128       \combine \null \vspace #0.1 % adds vertical spacing between verses
2129       \line { \bold "5."
2130         \column {
2131           "This is verse five."
2132           "It has two lines."
2133         }
2134       }
2135     }
2136   \hspace #0.1 % gives some extra space on the right margin;
2137   % can be removed if page space is tight
2138   }
2139 }
2140 @end lilypond
2141
2142
2143 @seealso
2144 Internals Reference:
2145 @rinternals{LyricText},
2146 @rinternals{StanzaNumber}.
2147
2148
2149 @node Songs
2150 @subsection Songs
2151
2152 @menu
2153 * References for songs::
2154 * Lead sheets::
2155 @end menu
2156
2157 @node References for songs
2158 @unnumberedsubsubsec References for songs
2159
2160 Songs are usually written on three staves with the melody for the
2161 singer on the top staff and two staves of piano accompaniment at
2162 the bottom.  The lyrics of the first stanza are printed immediately
2163 underneath the top staff.  If there are just a small number of
2164 further stanzas these can be printed immediately under the first
2165 one, but if there are more stanzas than can be easily accommodated
2166 there the second and subsequent stanzas are printed after the music
2167 as stand-alone text.
2168
2169 All the notational elements needed to write songs are fully described
2170 elsewhere:
2171
2172 @itemize
2173
2174 @item
2175 For constructing the staff layout, see @ref{Displaying staves}.
2176
2177 @item
2178 For writing piano music, see
2179 @ref{Keyboard and other multi-staff instruments}.
2180
2181 @item
2182 For writing the lyrics to a melody line, see
2183 @ref{Common notation for vocal music}.
2184
2185 @item
2186 For placing the lyrics, see @ref{Placing lyrics vertically}.
2187
2188 @item
2189 For entering stanzas, see @ref{Stanzas}.
2190
2191 @item
2192 Songs are frequently printed with the chording indicated by chord
2193 names above the staves.  This is described in @ref{Displaying chords}.
2194
2195 @item
2196 To print fret diagrams of the chords for guitar accompaniment or
2197 accompaniment by other fretted instruments, see @qq{Fret diagram
2198 markups} in @ref{Common notation for fretted strings}.
2199
2200 @end itemize
2201
2202 @seealso
2203 Learning Manual:
2204 @rlearning{Songs}.
2205
2206 Notation Reference:
2207 @ref{Common notation for vocal music},
2208 @ref{Displaying chords},
2209 @ref{Displaying staves},
2210 @ref{Keyboard and other multi-staff instruments},
2211 @ref{Placing lyrics vertically},
2212 @ref{Stanzas}.
2213
2214 Snippets:
2215 @rlsr{Vocal music}.
2216
2217
2218 @node Lead sheets
2219 @unnumberedsubsubsec Lead sheets
2220
2221 Lead sheets may be printed by combining vocal parts and
2222 @q{chord mode}; this syntax is explained in @ref{Chord notation}.
2223
2224 @snippets
2225 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2226 {simple-lead-sheet.ly}
2227
2228 @seealso
2229 Notation Reference:
2230 @ref{Chord notation}.
2231
2232
2233 @node Choral
2234 @subsection Choral
2235
2236 @cindex anthems
2237 @cindex part songs
2238 @cindex oratorio
2239 @cindex SATB
2240
2241 This section discusses notation issues that relate most directly
2242 to choral music.  This includes anthems, part songs, oratorio,
2243 etc.
2244
2245 @menu
2246 * References for choral::
2247 * Score layouts for choral::
2248 * Divided voices::
2249 @end menu
2250
2251 @node References for choral
2252 @unnumberedsubsubsec References for choral
2253
2254 Choral music is usually notated on two, three or four staves within
2255 a @code{ChoirStaff} group.  Accompaniment, if required, is placed
2256 beneath in a @code{PianoStaff} group, which is usually reduced in
2257 size for rehearsal of @emph{a cappella} choral works.  The notes for
2258 each vocal part are placed in a @code{Voice} context, with each staff
2259 being given either a single vocal part (i.e., one @code{Voice}) or
2260 a pair of vocal parts (i.e., two @code{Voice}s).
2261
2262 Words are placed in @code{Lyrics} contexts, either underneath each
2263 corresponding music staff, or one above and one below the music
2264 staff if this contains the music for two parts.
2265
2266 Several common topics in choral music are described fully elsewhere:
2267
2268 @itemize
2269
2270 @item
2271 An introduction to creating an SATB vocal score can be found in
2272 the Learning Manual, see @rlearning{Four-part SATB vocal score}.
2273 There is also a built-in template which simplifies the entry of
2274 SATB vocal music, see @rlearning{Built-in templates}.
2275
2276 @item
2277 Several templates suitable for various styles of choral music can
2278 also be found in the Learning Manual, see
2279 @rlearning{Vocal ensembles templates}.
2280
2281 @item
2282 For information about @code{ChoirStaff} and @code{PianoStaff} see
2283 @ref{Grouping staves}.
2284
2285 @item
2286 Shape note heads, as used in Sacred Harp and similar notation, are
2287 described in @ref{Shape note heads}.
2288
2289 @item
2290 When two vocal parts share a staff the stems, ties, slurs, etc., of
2291 the higher part will be directed up and those of the lower part
2292 down.  To do this, use @code{\voiceOne} and @code{\voiceTwo}.  See
2293 @ref{Single-staff polyphony}.
2294
2295 @item
2296 When a vocal part temporarily splits, you should use
2297 @emph{Temporary polyphonic passages}
2298 (see @ref{Single-staff polyphony}).
2299
2300 @end itemize
2301
2302 @predefined
2303 @code{\oneVoice},
2304 @code{\voiceOne},
2305 @code{\voiceTwo}.
2306
2307 @seealso
2308 Learning Manual:
2309 @rlearning{Four-part SATB vocal score},
2310 @rlearning{Vocal ensembles templates}.
2311
2312 Notation Reference:
2313 @ref{Context layout order},
2314 @ref{Grouping staves},
2315 @ref{Shape note heads},
2316 @ref{Single-staff polyphony}.
2317
2318 Snippets:
2319 @rlsr{Vocal music}.
2320
2321 Internals Reference:
2322 @rinternals{ChoirStaff},
2323 @rinternals{Lyrics},
2324 @rinternals{PianoStaff}.
2325
2326
2327 @node Score layouts for choral
2328 @unnumberedsubsubsec Score layouts for choral
2329
2330 Choral music containing four staves, with or without piano
2331 accompaniment, is usually laid out with two systems per page.
2332 Depending on the page size, achieving this may require changes
2333 to several default settings.  The following settings should be
2334 considered:
2335
2336 @itemize
2337
2338 @item
2339 The global staff size can be modified to change the overall size
2340 of the elements of the score.  See @ref{Setting the staff size}.
2341
2342 @item
2343 The distances between the systems, the staves and the lyrics can
2344 all be adjusted independently.  See @ref{Vertical spacing}.
2345
2346 @item
2347 The dimensions of the vertical layout variables can be displayed as
2348 an aid to adjusting the vertical spacing.  This and other
2349 possibilities for fitting the music onto fewer pages are described
2350 in @ref{Fitting music onto fewer pages}.
2351
2352 @item
2353 If the number of systems per page changes from one to two it is
2354 customary to indicate this with a system separator mark between
2355 the two systems.  See @ref{Separating systems}.
2356
2357 @item
2358 For details of other page formatting properties, see
2359 @ref{Page layout}.
2360
2361 @end itemize
2362
2363
2364 Dynamic markings by default are placed below the staff, but in
2365 choral music they are usually placed above the staff in order to
2366 avoid the lyrics.  The predefined command @code{\dynamicUp} does
2367 this for the dynamic markings in a single @code{Voice} context.
2368 If there are many @code{Voice} contexts this predefined command
2369 would have to be placed in every one.  Alternatively its expanded
2370 form can be used to place all dynamic markings in the entire score
2371 above their respective staves, as shown here:
2372
2373 @lilypond[verbatim,quote]
2374 \score {
2375   \new ChoirStaff <<
2376     \new Staff {
2377       \new Voice {
2378         \relative c'' { g4\f g g g }
2379       }
2380     }
2381     \new Staff {
2382       \new Voice {
2383         \relative c' { d4 d d\p d }
2384       }
2385     }
2386   >>
2387   \layout {
2388     \context {
2389       \Score
2390       \override DynamicText.direction = #UP
2391       \override DynamicLineSpanner.direction = #UP
2392     }
2393   }
2394 }
2395 @end lilypond
2396
2397 @predefined
2398 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
2399
2400 @seealso
2401 Notation Reference:
2402 @ref{Changing spacing},
2403 @ref{Displaying spacing},
2404 @ref{Fitting music onto fewer pages},
2405 @ref{Page layout},
2406 @ref{Score layout},
2407 @ref{Separating systems},
2408 @ref{Setting the staff size},
2409 @ref{Explicit breaks},
2410 @ref{Vertical spacing}.
2411
2412 Internals Reference:
2413 @rinternals{VerticalAxisGroup},
2414 @rinternals{StaffGrouper}.
2415
2416
2417 @node Divided voices
2418 @unnumberedsubsubsec Divided voices
2419
2420 @cindex voices, divided
2421
2422 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2423 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
2424
2425 @seealso
2426 Notation Reference:
2427 @ref{Expressive marks as lines}.
2428
2429
2430 @node Opera and stage musicals
2431 @subsection Opera and stage musicals
2432
2433 The music, lyrics and dialogue to opera and stage musicals are
2434 usually set out in one or more of the following forms:
2435
2436 @itemize
2437
2438 @item
2439 A @emph{Conductors' Score} containing the full orchestral and vocal
2440 parts, together with libretto cues if there are spoken passages.
2441
2442 @item
2443 @emph{Orchestral Parts} containing the music for the individual
2444 instruments of the orchestra or band.
2445
2446 @item
2447 A @emph{Vocal Score} containing all vocal parts with piano
2448 accompaniment.  The accompaniment is usually an orchestral
2449 reduction, and if so the name of the original orchestral instrument
2450 is often indicated.  Vocal scores sometimes includes stage
2451 directions and libretto cues.
2452
2453 @item
2454 A @emph{Vocal Book} containing just the vocal parts
2455 (no accompaniment), sometimes combined with the libretto.
2456
2457 @item
2458 A @emph{Libretto} containing the extended passages of spoken
2459 dialogue usually found in musicals, together with the words to the
2460 sung parts.  Stage directions are usually included.  LilyPond can
2461 be used to typeset libretti but as they contain no music
2462 alternative methods may be preferable.
2463
2464 @end itemize
2465
2466 The sections in the LilyPond documentation which cover the topics
2467 needed to create scores in the styles commonly found in opera and
2468 musicals are indicated in the References below.  This is followed
2469 by sections covering those techniques which are peculiar to
2470 typesetting opera and musical scores.
2471
2472 @menu
2473 * References for opera and stage musicals::
2474 * Character names::
2475 * Musical cues::
2476 * Spoken music::
2477 * Dialogue over music::
2478 @end menu
2479
2480 @node References for opera and stage musicals
2481 @unnumberedsubsubsec References for opera and stage musicals
2482
2483 @itemize
2484
2485 @item
2486 A conductors' score contains many grouped staves and lyrics.  Ways
2487 of grouping staves is shown in @ref{Grouping staves}.  To nest
2488 groups of staves see @ref{Nested staff groups}.
2489
2490 @item
2491 The printing of empty staves in conductors' scores and vocal scores
2492 is often suppressed.  To create such a @qq{Frenched score} see
2493 @ref{Hiding staves}.
2494
2495 @item
2496 Writing orchestral parts is covered in @ref{Writing parts}.
2497 Other sections in the Specialist notation chapter may be relevant,
2498 depending on the orchestration used.  Many instruments are
2499 transposing instruments, see @ref{Instrument transpositions}.
2500
2501 @item
2502 If the number of systems per page changes from page to page it is
2503 customary to separate the systems with a system separator mark.
2504 See @ref{Separating systems}.
2505
2506 @item
2507 For details of other page formatting properties, see
2508 @ref{Page layout}.
2509
2510 @item
2511 Dialogue cues, stage directions and footnotes can be inserted, see
2512 @ref{Creating footnotes} and @ref{Text}.  Extensive stage directions
2513 can also be added with a section of stand-alone markups between two
2514 @code{\score} blocks, see @ref{Separate text}.
2515
2516 @end itemize
2517
2518 @seealso
2519 Musical Glossary:
2520 @rglos{Frenched score},
2521 @rglos{Frenched staves},
2522 @rglos{transposing instrument}.
2523
2524 Notation Reference:
2525 @ref{Creating footnotes},
2526 @ref{Grouping staves},
2527 @ref{Hiding staves},
2528 @ref{Instrument transpositions},
2529 @ref{Nested staff groups},
2530 @ref{Page layout},
2531 @ref{Separating systems},
2532 @ref{Transpose},
2533 @ref{Writing parts},
2534 @ref{Writing text}.
2535
2536 Snippets:
2537 @rlsr{Vocal music}.
2538
2539
2540 @node Character names
2541 @unnumberedsubsubsec Character names
2542
2543 @cindex character names
2544 @cindex names, character
2545
2546 Character names are usually shown to the left of the staff when the
2547 staff is dedicated to that character alone:
2548
2549 @lilypond[quote,verbatim,ragged-right]
2550 \score {
2551   <<
2552     \new Staff {
2553       \set Staff.vocalName = \markup \smallCaps Kaspar
2554       \set Staff.shortVocalName = \markup \smallCaps Kas.
2555       \relative c' {
2556         \clef "G_8"
2557         c4 c c c
2558         \break
2559         c4 c c c
2560       }
2561     }
2562     \new Staff {
2563       \set Staff.vocalName = \markup \smallCaps Melchior
2564       \set Staff.shortVocalName = \markup \smallCaps Mel
2565       \clef "bass"
2566       \relative c' {
2567         a4 a a a
2568         a4 a a a
2569       }
2570     }
2571   >>
2572 }
2573 @end lilypond
2574
2575 When two or more characters share a staff the character's name is
2576 usually printed above the staff at the start of every section
2577 applying to that character.  This can be done with markup.  Often a
2578 specific font is used for this purpose.
2579
2580 @lilypond[quote,verbatim,relative=1]
2581 \clef "G_8"
2582 c4^\markup \fontsize #1 \smallCaps Kaspar
2583 c c c
2584 \clef "bass"
2585 a4^\markup \fontsize #1 \smallCaps Melchior
2586 a a a
2587 \clef "G_8"
2588 c4^\markup \fontsize #1 \smallCaps Kaspar
2589 c c c
2590 @end lilypond
2591
2592 Alternatively, if there are many character changes, it may be
2593 easier to set up @qq{instrument} definitions for each character at
2594 the top level so that @code{\instrumentSwitch} can be used to
2595 indicate each change.
2596
2597 @lilypond[quote,verbatim]
2598 \addInstrumentDefinition #"kaspar"
2599   #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
2600      (shortInstrumentName . "Kas.")
2601      (clefGlyph . "clefs.G")
2602      (clefTransposition . -7)
2603      (middleCPosition . 1)
2604      (clefPosition . -2)
2605      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Kaspar"))
2606      (midiInstrument . "voice oohs"))
2607
2608 \addInstrumentDefinition #"melchior"
2609   #`((instrumentTransposition . ,(ly:make-pitch 0 0 0))
2610      (shortInstrumentName . "Mel.")
2611      (clefGlyph . "clefs.F")
2612      (clefTransposition . 0)
2613      (middleCPosition . 6)
2614      (clefPosition . 2)
2615      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Melchior"))
2616      (midiInstrument . "choir aahs"))
2617
2618 \relative c' {
2619   \instrumentSwitch "kaspar"
2620   c4 c c c
2621   \instrumentSwitch "melchior"
2622   a4 a a a
2623   \instrumentSwitch "kaspar"
2624   c4 c c c
2625 }
2626 @end lilypond
2627
2628 @seealso
2629 Notation Reference:
2630 @ref{Instrument names},
2631 @ref{Scheme functions},
2632 @ref{Text},
2633 @ref{Text markup commands}.
2634
2635 Extending LilyPond:
2636 @rextend{Markup construction in Scheme}.
2637
2638
2639 @node Musical cues
2640 @unnumberedsubsubsec Musical cues
2641
2642 @cindex musical cues
2643 @cindex cues, musical
2644
2645 Musical cues can be inserted in Vocal Scores, Vocal Books and
2646 Orchestral Parts to indicate what music in another part
2647 immediately precedes an entry.  Also, cues are often inserted in the
2648 piano reduction in Vocal Scores to indicate what each orchestral
2649 instrument is playing.  This aids the conductor when a full
2650 Conductors' Score is not available.
2651
2652 The basic mechanism for inserting cues is fully explained in the
2653 main text, see @ref{Quoting other voices} and
2654 @ref{Formatting cue notes}.  But when many cues have to be
2655 inserted, for example, as an aid to a conductor in a vocal score,
2656 the instrument name must be positioned carefully just before and
2657 close to the start of the cue notes.  The following example shows
2658 how this is done.
2659
2660 @lilypond[quote,verbatim]
2661 flute = \relative c'' {
2662   s4 s4 e g
2663 }
2664 \addQuote "flute" { \flute }
2665
2666 pianoRH = \relative c'' {
2667   c4. g8
2668   % position name of cue-ing instrument just before the cue notes,
2669   % and above the staff
2670   \new CueVoice {
2671     \override InstrumentSwitch.self-alignment-X = #RIGHT
2672     \set instrumentCueName = "Flute"
2673   }
2674   \cueDuring "flute" #UP { g4 bes4 }
2675 }
2676 pianoLH = \relative c { c4 <c' e> e, <g c> }
2677
2678 \score {
2679   \new PianoStaff <<
2680     \new Staff {
2681       \pianoRH
2682     }
2683     \new Staff {
2684       \clef "bass"
2685       \pianoLH
2686     }
2687   >>
2688 }
2689 @end lilypond
2690
2691 If a transposing instrument is being quoted the instrument part should
2692 specify its key so the conversion of its cue notes will be done
2693 automatically.  The example below shows this transposition for a
2694 B-flat clarinet.  The notes in this example are low on the staff so
2695 @code{DOWN} is specified in @code{\cueDuring} (so the stems are
2696 down) and the instrument name is positioned below the staff.  Note
2697 also that the piano right-hand voice is explicitly declared.  This
2698 is because the cue notes in this example begin at the start of the
2699 first bar and this would otherwise cause the entire piano right-hand
2700 notes to be placed in a @code{CueVoice} context.
2701
2702 @lilypond[quote,verbatim]
2703 clarinet = \relative c' {
2704   \transposition bes
2705   fis4 d d c
2706 }
2707 \addQuote "clarinet" { \clarinet }
2708
2709 pianoRH = \relative c'' {
2710   \transposition c'
2711   % position name of cue-ing instrument below the staff
2712   \new CueVoice {
2713     \override InstrumentSwitch.self-alignment-X = #RIGHT
2714     \override InstrumentSwitch.direction = #DOWN
2715     \set instrumentCueName = "Clar."
2716   }
2717   \cueDuring "clarinet" #DOWN { c4. g8 }
2718   g4 bes4
2719 }
2720 pianoLH = \relative c { c4 <c' e> e, <g c> }
2721
2722 \score {
2723   <<
2724     \new PianoStaff <<
2725       \new Staff {
2726         \new Voice {
2727           \pianoRH
2728         }
2729       }
2730       \new Staff {
2731         \clef "bass"
2732         \pianoLH
2733       }
2734     >>
2735   >>
2736 }
2737 @end lilypond
2738
2739 From these two examples it is clear that inserting many cues in a
2740 Vocal Score would be tedious, and the notes of the piano part would
2741 become obscured.  However, as the following snippet shows, it is
2742 possible to define a music function to reduce the amount of typing
2743 and to make the piano notes clearer.
2744
2745 @snippets
2746 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2747 {adding-orchestral-cues-to-a-vocal-score.ly}
2748
2749 @seealso
2750 Musical Glossary:
2751 @rglos{cue-notes}.
2752
2753 Notation Reference:
2754 @ref{Aligning objects},
2755 @ref{Direction and placement},
2756 @ref{Formatting cue notes},
2757 @ref{Quoting other voices},
2758 @ref{Using music functions}.
2759
2760 Snippets:
2761 @rlsr{Vocal music}.
2762
2763 Internals Reference:
2764 @rinternals{InstrumentSwitch},
2765 @rinternals{CueVoice}.
2766
2767 @knownissues
2768 @code{\cueDuring} automatically inserts a @code{CueVoice} context
2769 and all cue notes are placed in that context.  This means it is not
2770 possible to have two overlapping sequences of cue notes by this
2771 technique.  Overlapping sequences could be entered by explicitly
2772 declaring separate @code{CueVoice} contexts and using
2773 @code{\quoteDuring} to extract and insert the cue notes.
2774
2775
2776 @node Spoken music
2777 @unnumberedsubsubsec Spoken music
2778
2779 @cindex parlato
2780 @cindex Sprechgesang
2781 Such effects as @q{parlato} or @q{Sprechgesang} require performers to
2782 speak without pitch but still with rhythm; these are notated by cross
2783 note heads, as demonstrated in @ref{Special note heads}.
2784
2785 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
2786 @c add "showing the rhythm of a melody" snip
2787 @c add "one staff-line notation"
2788 @c add "improvisation" ref
2789 @c add "lyrics independents of notes" ref
2790
2791 @node Dialogue over music
2792 @unnumberedsubsubsec Dialogue over music
2793
2794 Dialogue over music is usually printed over the staves in an italic
2795 font, with the start of each phrase keyed in to a particular music
2796 moment.
2797
2798 For short interjections a simple markup suffices.
2799
2800 @lilypond[quote,verbatim,relative=2]
2801 a4^\markup { \smallCaps { Alex - } \italic { He's gone } } a a a
2802 a4 a a^\markup { \smallCaps { Bethan - } \italic Where? } a
2803 a4 a a a
2804 @end lilypond
2805
2806 For longer phrases it may be necessary to expand the music to make
2807 the words fit neatly.  There is no provision in LilyPond to do this
2808 fully automatically, and some manual intervention to layout the
2809 page will be necessary.
2810
2811 For long phrases or for passages with a lot of closely packed
2812 dialogue, using a Lyrics context will give better results.  The
2813 Lyrics context should not be associated with a music Voice; instead
2814 each section of dialogue should be given an explicit duration.  If
2815 there is a gap in the dialogue, the final word should be separated
2816 from the rest and the duration split between them so that the
2817 underlying music spaces out smoothly.
2818
2819 If the dialogue extends for more than one line it will be necessary
2820 to manually insert @code{\break}s and adjust the placing of the
2821 dialogue to avoid running into the right margin.  The final word of
2822 the last measure on a line should also be separated out, as above.
2823
2824 Here is an example illustrating how this might be done.
2825
2826 @c This should be a snippet, but it can't be as it needs to be
2827 @c manually adjusted to suit the imposed line length.  -td
2828
2829 @lilypond[quote,verbatim,ragged-right]
2830 music = \relative c'' {
2831   \repeat unfold 3 { a4 a a a }
2832 }
2833
2834 dialogue = \lyricmode {
2835   \markup {
2836     \fontsize #1 \upright \smallCaps Abe:
2837     "Say this over measures one and"
2838   }4*7
2839   "two"4 |
2840   \break
2841   "and this over measure"4*3
2842   "three"4 |
2843 }
2844
2845 \score {
2846   <<
2847     \new Lyrics \with {
2848       \override LyricText.font-shape = #'italic
2849       \override LyricText.self-alignment-X = #LEFT
2850     }
2851     { \dialogue }
2852     \new Staff {
2853       \new Voice { \music }
2854     }
2855   >>
2856 }
2857 @end lilypond
2858
2859 @c TODO show use of \column to produce dialogue on two lines
2860
2861 @seealso
2862 Notation Reference:
2863 @ref{Manual syllable durations},
2864 @ref{Text}.
2865
2866 Internal Reference:
2867 @rinternals{LyricText}.
2868
2869
2870 @node Chants psalms and hymns
2871 @subsection Chants psalms and hymns
2872
2873 @cindex chants
2874 @cindex psalms
2875 @cindex hymns
2876 @cindex religious music
2877
2878 The music and words for chants, psalms and hymns usually follow a
2879 well-established format in any particular church.  Although the
2880 formats may differ from church to church the type-setting problems
2881 which arise are broadly similar, and are covered in this section.
2882
2883 @menu
2884 * References for chants and psalms::
2885 * Setting a chant::
2886 * Pointing a psalm::
2887 * Partial measures in hymn tunes::
2888 @end menu
2889
2890 @node References for chants and psalms
2891 @unnumberedsubsubsec References for chants and psalms
2892
2893 Typesetting Gregorian chant in various styles of ancient notation
2894 is described in @ref{Ancient notation}.
2895
2896 @seealso
2897 Notation reference:
2898 @ref{Ancient notation}.
2899
2900 Snippets:
2901 @rlsr{Vocal music}.
2902
2903
2904 @node Setting a chant
2905 @unnumberedsubsubsec Setting a chant
2906
2907 Modern chant settings use modern notation with varying numbers of
2908 elements taken from ancient notation.  Some of the elements and
2909 methods to consider are shown here.
2910
2911 Chants often use quarter notes without stems to indicate the pitch,
2912 with the rhythm being taken from the spoken rhythm of the words.
2913
2914 @lilypond[verbatim,quote]
2915 stemOff = { \hide Staff.Stem }
2916
2917 \relative c' {
2918   \stemOff
2919   a'4 b c2 |
2920 }
2921
2922 @end lilypond
2923
2924 Chants often omit the bar lines or use shortened or dotted bar
2925 lines to indicate pauses in the music.  To omit all bar lines from
2926 all staves remove the bar line engraver completely:
2927
2928 @lilypond[verbatim,quote]
2929 \score {
2930   \new StaffGroup <<
2931     \new Staff {
2932       \relative c'' {
2933         a4 b c2 |
2934         a4 b c2 |
2935         a4 b c2 |
2936       }
2937     }
2938     \new Staff {
2939       \relative c'' {
2940         a4 b c2 |
2941         a4 b c2 |
2942         a4 b c2 |
2943       }
2944     }
2945   >>
2946   \layout {
2947     \context {
2948       \Staff
2949       \remove "Bar_engraver"
2950     }
2951   }
2952 }
2953 @end lilypond
2954
2955 Bar lines can also be removed on a staff-by-staff basis:
2956
2957 @lilypond[verbatim, quote]
2958 \score {
2959   \new ChoirStaff <<
2960     \new Staff
2961     \with { \remove "Bar_engraver" } {
2962       \relative c'' {
2963         a4 b c2 |
2964         a4 b c2 |
2965         a4 b c2 |
2966       }
2967     }
2968     \new Staff {
2969       \relative c'' {
2970         a4 b c2 |
2971         a4 b c2 |
2972         a4 b c2 |
2973       }
2974     }
2975   >>
2976 }
2977 @end lilypond
2978
2979 To remove bar lines from just a section of music treat it as a
2980 cadenza.  If the section is long you may need to insert dummy
2981 bar lines with @code{\bar ""} to show where the line should break.
2982
2983 @lilypond[verbatim,quote,relative=2]
2984 a4 b c2 |
2985 \cadenzaOn
2986 a4 b c2
2987 a4 b c2
2988 \bar ""
2989 a4 b c2
2990 a4 b c2
2991 \cadenzaOff
2992 a4 b c2 |
2993 a4 b c2 |
2994 @end lilypond
2995
2996 Rests or pauses in chants can be indicated by modified bar lines.
2997
2998 @lilypond[verbatim, quote,relative=2]
2999 a4
3000 \cadenzaOn
3001 b c2
3002 a4 b c2
3003 \bar "'"
3004 a4 b c2
3005 a4 b c2
3006 \bar ";"
3007 a4 b c2
3008 \bar "!"
3009 a4 b c2
3010 \bar "||"
3011 @end lilypond
3012
3013 Alternatively, the notation used in Gregorian chant for pauses or
3014 rests is sometimes used even though the rest of the notation is
3015 modern.  This uses a modified @code{\breathe} mark:
3016
3017 @lilypond[verbatim,quote]
3018 divisioMinima = {
3019   \once \override BreathingSign.stencil = #ly:breathing-sign::divisio-minima
3020   \once \override BreathingSign.Y-offset = #0
3021   \breathe
3022 }
3023 divisioMaior = {
3024   \once \override BreathingSign.stencil = #ly:breathing-sign::divisio-maior
3025   \once \override BreathingSign.Y-offset = #0
3026   \breathe
3027 }
3028 divisioMaxima = {
3029   \once \override BreathingSign.stencil = #ly:breathing-sign::divisio-maxima
3030   \once \override BreathingSign.Y-offset = #0
3031   \breathe
3032 }
3033 finalis = {
3034   \once \override BreathingSign.stencil = #ly:breathing-sign::finalis
3035   \once \override BreathingSign.Y-offset = #0
3036   \breathe
3037 }
3038
3039 \score {
3040   \relative c'' {
3041     g2 a4 g
3042     \divisioMinima
3043     g2 a4 g
3044     \divisioMaior
3045     g2 a4 g
3046     \divisioMaxima
3047     g2 a4 g
3048     \finalis
3049   }
3050   \layout {
3051     \context {
3052       \Staff
3053       \remove "Bar_engraver"
3054     }
3055   }
3056 }
3057 @end lilypond
3058
3059 Chants usually omit the time signature and often omit the clef too.
3060
3061 @lilypond[verbatim,quote]
3062 \score {
3063   \new Staff {
3064     \relative c'' {
3065       a4 b c2 |
3066       a4 b c2 |
3067       a4 b c2 |
3068     }
3069   }
3070   \layout {
3071     \context {
3072       \Staff
3073       \remove "Bar_engraver"
3074       \remove "Time_signature_engraver"
3075       \remove "Clef_engraver"
3076     }
3077   }
3078 }
3079 @end lilypond
3080
3081 Chants for psalms in the Anglican tradition are usually either
3082 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
3083 of 7 bars.  Each group of 7 bars is divided into two halves,
3084 corresponding to the two halves of each verse, usually separated by
3085 a double bar line.  Only whole and half notes are used.  The 1st bar
3086 in each half always contains a single chord of whole notes.  This is
3087 the @qq{reciting note}.  Chants are usually centered on the page.
3088
3089 @lilypond[verbatim,quote]
3090 SopranoMusic = \relative g' {
3091   g1 | c2 b | a1 | \bar "||"
3092   a1 | d2 c | c b | c1 | \bar "||"
3093 }
3094
3095 AltoMusic = \relative c' {
3096   e1 | g2 g | f1 |
3097   f1 | f2 e | d d | e1 |
3098 }
3099
3100 TenorMusic = \relative a {
3101   c1 | c2 c | c1 |
3102   d1 | g,2 g | g g | g1 |
3103 }
3104
3105 BassMusic =  \relative c {
3106   c1 | e2 e | f1 |
3107   d1 | b2 c | g' g | c,1 |
3108 }
3109
3110 global = {
3111   \time 2/2
3112 }
3113
3114 % Use markup to center the chant on the page
3115 \markup {
3116   \fill-line {
3117     \score {  % centered
3118       <<
3119         \new ChoirStaff <<
3120           \new Staff <<
3121             \global
3122             \clef "treble"
3123             \new Voice = "Soprano" <<
3124               \voiceOne
3125               \SopranoMusic
3126             >>
3127             \new Voice = "Alto" <<
3128               \voiceTwo
3129               \AltoMusic
3130             >>
3131           >>
3132           \new Staff <<
3133             \clef "bass"
3134             \global
3135             \new Voice = "Tenor" <<
3136               \voiceOne
3137               \TenorMusic
3138             >>
3139             \new Voice = "Bass" <<
3140               \voiceTwo
3141               \BassMusic
3142             >>
3143           >>
3144         >>
3145       >>
3146       \layout {
3147         \context {
3148           \Score
3149           \override SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/2)
3150         }
3151         \context {
3152           \Staff
3153           \remove "Time_signature_engraver"
3154         }
3155       }
3156     }  % End score
3157   }
3158 }  % End markup
3159 @end lilypond
3160
3161 Some other approaches to setting such a chant are shown in the first
3162 of the following snippets.
3163
3164 @snippets
3165
3166 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3167 {chant-or-psalms-notation.ly}
3168
3169 Canticles and other liturgical texts may be set more freely, and
3170 may use notational elements from ancient music.  Often the words
3171 are shown underneath and aligned with the notes.  If so, the notes
3172 are spaced in accordance with the syllables rather than the notes'
3173 durations.
3174
3175 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3176 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
3177
3178 @seealso
3179 Learning Manual:
3180 @rlearning{Visibility and color of objects},
3181 @rlearning{Vocal ensembles templates}.
3182
3183 Notation Reference:
3184 @ref{Ancient notation},
3185 @ref{Bar lines},
3186 @ref{Modifying context plug-ins},
3187 @ref{Typesetting Gregorian chant},
3188 @ref{Unmetered music},
3189 @ref{Visibility of objects}.
3190
3191
3192 @node Pointing a psalm
3193 @unnumberedsubsubsec Pointing a psalm
3194
3195 The words to an Anglican psalm are usually printed in separate
3196 verses centered underneath the chant.
3197
3198 Single chants (with 7 bars) are repeated for every verse.  Double
3199 chants (with 14 bars) are repeated for every pair of verses.  Marks
3200 are inserted in the words to show how they should be fitted to the
3201 chant.  Each verse is divided into two halves.  A colon is usually
3202 used to indicate this division.  This corresponds to the double bar
3203 line in the music.  The words before the colon are sung to the first
3204 three bars of music; the words after the colon are sung to the last
3205 four bars.
3206
3207 Single bar lines (or in some psalters an inverted comma or similar
3208 symbol) are inserted between words to indicate where the bar lines
3209 in the music fall.  In markup mode a single bar line can be entered
3210 with the bar check symbol, @code{|}.
3211
3212 @lilypond[verbatim,quote]
3213 \markup {
3214   \fill-line {
3215     \column {
3216       \left-align {
3217         \line { O come let us sing | unto the | Lord : let }
3218         \line { us heartily rejoice in the | strength of | our }
3219         \line { sal- | -vation. }
3220       }
3221     }
3222   }
3223 }
3224 @end lilypond
3225
3226 Other symbols may require glyphs from the @code{fetaMusic} fonts.
3227 For details, see @ref{Fonts}.
3228
3229 @lilypond[verbatim,quote]
3230 tick = \markup {
3231   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3232 }
3233 \markup {
3234   \fill-line {
3235     \column {
3236       \left-align {
3237         \line { O come let us sing \tick unto the \tick Lord : let }
3238         \line {
3239           us heartily rejoice in the \tick strength of \tick our
3240         }
3241         \line { sal \tick vation. }
3242       }
3243     }
3244   }
3245 }
3246 @end lilypond
3247
3248 Where there is one whole note in a bar all the words corresponding
3249 to that bar are recited on that one note in speech rhythm.  Where
3250 there are two notes in a bar there will usually be only one or two
3251 corresponding syllables.  If there are more that two syllables a
3252 dot is usually inserted to indicate where the change in note occurs.
3253
3254 @lilypond[verbatim,quote]
3255 dot = \markup {
3256   \raise #0.7 \musicglyph #"dots.dot"
3257 }
3258 tick = \markup {
3259   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3260 }
3261 \markup {
3262   \fill-line {
3263     \column {
3264       \left-align {
3265         \line {
3266           O come let us sing \tick unto \dot the \tick Lord : let
3267         }
3268         \line {
3269           us heartily rejoice in the \tick strength of \tick our
3270         }
3271         \line { sal \tick vation. }
3272       }
3273     }
3274   }
3275 }
3276 @end lilypond
3277
3278 In some psalters an asterisk is used to indicate a break in a
3279 recited section instead of a comma, and stressed or slightly
3280 lengthened syllables are indicated in bold text.
3281
3282 @lilypond[verbatim,quote]
3283 dot = \markup {
3284   \raise #0.7 \musicglyph #"dots.dot"
3285 }
3286 tick = \markup {
3287   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3288 }
3289 \markup {
3290   \fill-line {
3291     \column {
3292       \left-align {
3293         \line { Today if ye will hear his voice * }
3294         \line {
3295           \concat { \bold hard en }
3296           | not your | hearts : as in the pro-
3297         }
3298         \line { vocation * and as in the \bold day of tempt- | }
3299         \line { -ation | in the | wilderness. }
3300       }
3301     }
3302   }
3303 }
3304 @end lilypond
3305
3306 In other psalters an accent is placed over the syllable to indicate
3307 stress.
3308
3309 @lilypond[verbatim,quote]
3310 tick = \markup {
3311   \raise #2 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3312 }
3313 \markup {
3314   \fill-line {
3315     \column {
3316       \left-align {
3317         \line {
3318           O come let us \concat {
3319             si \combine \tick ng
3320           }
3321           | unto the | Lord : let
3322         }
3323         \line {
3324           us heartily \concat {
3325             rejo \combine \tick ice
3326           }
3327           in the | strength of | our
3328         }
3329         \line { sal- | -vation. }
3330       }
3331     }
3332   }
3333 }
3334 @end lilypond
3335
3336 The use of markup to center text, and arrange lines in columns is
3337 described in @ref{Formatting text}.
3338
3339 Most of these elements are shown in one or other of the two verses
3340 in the template, see @rlearning{Psalms}.
3341
3342 @seealso
3343 Learning Manual:
3344 @rlearning{Psalms},
3345 @rlearning{Vocal ensembles templates}.
3346
3347 Notation Reference:
3348 @ref{Fonts},
3349 @ref{Formatting text}.
3350
3351
3352 @node Partial measures in hymn tunes
3353 @unnumberedsubsubsec Partial measures in hymn tunes
3354
3355 Hymn tunes frequently start and end every line of music with
3356 partial measures so that each line of music corresponds exactly
3357 with a line of text.  This requires a @code{\partial} command at
3358 the start of the music and @code{\bar "|"} or @code{\bar "||"}
3359 commands at the end of each line.
3360
3361 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3362 {hymn-template.ly}
3363
3364
3365 @node Ancient vocal music
3366 @subsection Ancient vocal music
3367
3368 Ancient vocal music is supported, as explained in
3369 @ref{Ancient notation}.
3370
3371 @c TODO
3372
3373 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
3374 @c and "Transcription of Ancient music with incipit" snippet. -vv
3375
3376 @seealso
3377 Notation Reference:
3378 @ref{Ancient notation}.
3379
3380
3381
3382