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