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