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