]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/vocal.itely
Fixed errors in Catalan translation
[lilypond.git] / Documentation / notation / vocal.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  For details, see the Contributors'
7     Guide, node Updating translation committishes..
8 @end ignore
9
10 @c \version "2.17.30"
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     g4 e2 ~ |
658     e8
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 ~ f
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 ] ~ f4 ~ 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
2286 @item
2287 Several templates suitable for various styles of choral music can
2288 also be found in the Learning Manual, see
2289 @rlearning{Vocal ensembles templates}.
2290
2291 @item
2292 For information about @code{ChoirStaff} and @code{PianoStaff} see
2293 @ref{Grouping staves}.
2294
2295 @item
2296 Shape note heads, as used in Sacred Harp and similar notation, are
2297 described in @ref{Shape note heads}.
2298
2299 @item
2300 When two vocal parts share a staff the stems, ties, slurs, etc., of
2301 the higher part will be directed up and those of the lower part
2302 down.  To do this, use @code{\voiceOne} and @code{\voiceTwo}.  See
2303 @ref{Single-staff polyphony}.
2304
2305 @item
2306 When a vocal part temporarily splits, you should use
2307 @emph{Temporary polyphonic passages}
2308 (see @ref{Single-staff polyphony}).
2309
2310 @end itemize
2311
2312 @predefined
2313 @code{\oneVoice},
2314 @code{\voiceOne},
2315 @code{\voiceTwo}.
2316
2317 @seealso
2318 Learning Manual:
2319 @rlearning{Four-part SATB vocal score},
2320 @rlearning{Vocal ensembles templates}.
2321
2322 Notation Reference:
2323 @ref{Context layout order},
2324 @ref{Grouping staves},
2325 @ref{Shape note heads},
2326 @ref{Single-staff polyphony}.
2327
2328 Snippets:
2329 @rlsr{Vocal music}.
2330
2331 Internals Reference:
2332 @rinternals{ChoirStaff},
2333 @rinternals{Lyrics},
2334 @rinternals{PianoStaff}.
2335
2336
2337 @node Score layouts for choral
2338 @unnumberedsubsubsec Score layouts for choral
2339
2340 Choral music containing four staves, with or without piano
2341 accompaniment, is usually laid out with two systems per page.
2342 Depending on the page size, achieving this may require changes
2343 to several default settings.  The following settings should be
2344 considered:
2345
2346 @itemize
2347
2348 @item
2349 The global staff size can be modified to change the overall size
2350 of the elements of the score.  See @ref{Setting the staff size}.
2351
2352 @item
2353 The distances between the systems, the staves and the lyrics can
2354 all be adjusted independently.  See @ref{Vertical spacing}.
2355
2356 @item
2357 The dimensions of the vertical layout variables can be displayed as
2358 an aid to adjusting the vertical spacing.  This and other
2359 possibilities for fitting the music onto fewer pages are described
2360 in @ref{Fitting music onto fewer pages}.
2361
2362 @item
2363 If the number of systems per page changes from one to two it is
2364 customary to indicate this with a system separator mark between
2365 the two systems.  See @ref{Separating systems}.
2366
2367 @item
2368 For details of other page formatting properties, see
2369 @ref{Page layout}.
2370
2371 @end itemize
2372
2373
2374 Dynamic markings by default are placed below the staff, but in
2375 choral music they are usually placed above the staff in order to
2376 avoid the lyrics.  The predefined command @code{\dynamicUp} does
2377 this for the dynamic markings in a single @code{Voice} context.
2378 If there are many @code{Voice} contexts this predefined command
2379 would have to be placed in every one.  Alternatively its expanded
2380 form can be used to place all dynamic markings in the entire score
2381 above their respective staves, as shown here:
2382
2383 @lilypond[verbatim,quote]
2384 \score {
2385   \new ChoirStaff <<
2386     \new Staff {
2387       \new Voice {
2388         \relative c'' { g4\f g g g }
2389       }
2390     }
2391     \new Staff {
2392       \new Voice {
2393         \relative c' { d4 d d\p d }
2394       }
2395     }
2396   >>
2397   \layout {
2398     \context {
2399       \Score
2400       \override DynamicText.direction = #UP
2401       \override DynamicLineSpanner.direction = #UP
2402     }
2403   }
2404 }
2405 @end lilypond
2406
2407 @predefined
2408 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
2409
2410 @seealso
2411 Notation Reference:
2412 @ref{Changing spacing},
2413 @ref{Displaying spacing},
2414 @ref{Fitting music onto fewer pages},
2415 @ref{Page layout},
2416 @ref{Score layout},
2417 @ref{Separating systems},
2418 @ref{Setting the staff size},
2419 @ref{Using an extra voice for breaks},
2420 @ref{Vertical spacing}.
2421
2422 Internals Reference:
2423 @rinternals{VerticalAxisGroup},
2424 @rinternals{StaffGrouper}.
2425
2426
2427 @node Divided voices
2428 @unnumberedsubsubsec Divided voices
2429
2430 @cindex voices, divided
2431
2432 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2433 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
2434
2435 @seealso
2436 Notation Reference:
2437 @ref{Expressive marks as lines}.
2438
2439
2440 @node Opera and stage musicals
2441 @subsection Opera and stage musicals
2442
2443 The music, lyrics and dialogue to opera and stage musicals are
2444 usually set out in one or more of the following forms:
2445
2446 @itemize
2447
2448 @item
2449 A @emph{Conductors' Score} containing the full orchestral and vocal
2450 parts, together with libretto cues if there are spoken passages.
2451
2452 @item
2453 @emph{Orchestral Parts} containing the music for the individual
2454 instruments of the orchestra or band.
2455
2456 @item
2457 A @emph{Vocal Score} containing all vocal parts with piano
2458 accompaniment.  The accompaniment is usually an orchestral
2459 reduction, and if so the name of the original orchestral instrument
2460 is often indicated.  Vocal scores sometimes includes stage
2461 directions and libretto cues.
2462
2463 @item
2464 A @emph{Vocal Book} containing just the vocal parts
2465 (no accompaniment), sometimes combined with the libretto.
2466
2467 @item
2468 A @emph{Libretto} containing the extended passages of spoken
2469 dialogue usually found in musicals, together with the words to the
2470 sung parts.  Stage directions are usually included.  LilyPond can
2471 be used to typeset libretti but as they contain no music
2472 alternative methods may be preferable.
2473
2474 @end itemize
2475
2476 The sections in the LilyPond documentation which cover the topics
2477 needed to create scores in the styles commonly found in opera and
2478 musicals are indicated in the References below.  This is followed
2479 by sections covering those techniques which are peculiar to
2480 typesetting opera and musical scores.
2481
2482 @menu
2483 * References for opera and stage musicals::
2484 * Character names::
2485 * Musical cues::
2486 * Spoken music::
2487 * Dialogue over music::
2488 @end menu
2489
2490 @node References for opera and stage musicals
2491 @unnumberedsubsubsec References for opera and stage musicals
2492
2493 @itemize
2494
2495 @item
2496 A conductors' score contains many grouped staves and lyrics.  Ways
2497 of grouping staves is shown in @ref{Grouping staves}.  To nest
2498 groups of staves see @ref{Nested staff groups}.
2499
2500 @item
2501 The printing of empty staves in conductors' scores and vocal scores
2502 is often suppressed.  To create such a @qq{Frenched score} see
2503 @ref{Hiding staves}.
2504
2505 @item
2506 Writing orchestral parts is covered in @ref{Writing parts}.
2507 Other sections in the Specialist notation chapter may be relevant,
2508 depending on the orchestration used.  Many instruments are
2509 transposing instruments, see @ref{Instrument transpositions}.
2510
2511 @item
2512 If the number of systems per page changes from page to page it is
2513 customary to separate the systems with a system separator mark.
2514 See @ref{Separating systems}.
2515
2516 @item
2517 For details of other page formatting properties, see
2518 @ref{Page layout}.
2519
2520 @item
2521 Dialogue cues, stage directions and footnotes can be inserted, see
2522 @ref{Creating footnotes} and @ref{Text}.  Extensive stage directions
2523 can also be added with a section of stand-alone markups between two
2524 @code{\score} blocks, see @ref{Separate text}.
2525
2526 @end itemize
2527
2528 @seealso
2529 Musical Glossary:
2530 @rglos{Frenched score},
2531 @rglos{Frenched staves},
2532 @rglos{transposing instrument}.
2533
2534 Notation Reference:
2535 @ref{Creating footnotes},
2536 @ref{Grouping staves},
2537 @ref{Hiding staves},
2538 @ref{Instrument transpositions},
2539 @ref{Nested staff groups},
2540 @ref{Page layout},
2541 @ref{Separating systems},
2542 @ref{Transpose},
2543 @ref{Writing parts},
2544 @ref{Writing text}.
2545
2546 Snippets:
2547 @rlsr{Vocal music}.
2548
2549
2550 @node Character names
2551 @unnumberedsubsubsec Character names
2552
2553 @cindex character names
2554 @cindex names, character
2555
2556 Character names are usually shown to the left of the staff when the
2557 staff is dedicated to that character alone:
2558
2559 @lilypond[quote,verbatim,ragged-right]
2560 \score {
2561   <<
2562     \new Staff {
2563       \set Staff.vocalName = \markup \smallCaps Kaspar
2564       \set Staff.shortVocalName = \markup \smallCaps Kas.
2565       \relative c' {
2566         \clef "G_8"
2567         c4 c c c
2568         \break
2569         c4 c c c
2570       }
2571     }
2572     \new Staff {
2573       \set Staff.vocalName = \markup \smallCaps Melchior
2574       \set Staff.shortVocalName = \markup \smallCaps Mel
2575       \clef "bass"
2576       \relative c' {
2577         a4 a a a
2578         a4 a a a
2579       }
2580     }
2581   >>
2582 }
2583 @end lilypond
2584
2585 When two or more characters share a staff the character's name is
2586 usually printed above the staff at the start of every section
2587 applying to that character.  This can be done with markup.  Often a
2588 specific font is used for this purpose.
2589
2590 @lilypond[quote,verbatim,relative=1]
2591 \clef "G_8"
2592 c4^\markup \fontsize #1 \smallCaps Kaspar
2593 c c c
2594 \clef "bass"
2595 a4^\markup \fontsize #1 \smallCaps Melchior
2596 a a a
2597 \clef "G_8"
2598 c4^\markup \fontsize #1 \smallCaps Kaspar
2599 c c c
2600 @end lilypond
2601
2602 Alternatively, if there are many character changes, it may be
2603 easier to set up @qq{instrument} definitions for each character at
2604 the top level so that @code{\instrumentSwitch} can be used to
2605 indicate each change.
2606
2607 @lilypond[quote,verbatim]
2608 \addInstrumentDefinition #"kaspar"
2609   #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
2610      (shortInstrumentName . "Kas.")
2611      (clefGlyph . "clefs.G")
2612      (clefTransposition . -7)
2613      (middleCPosition . 1)
2614      (clefPosition . -2)
2615      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Kaspar"))
2616      (midiInstrument . "voice oohs"))
2617
2618 \addInstrumentDefinition #"melchior"
2619   #`((instrumentTransposition . ,(ly:make-pitch 0 0 0))
2620      (shortInstrumentName . "Mel.")
2621      (clefGlyph . "clefs.F")
2622      (clefTransposition . 0)
2623      (middleCPosition . 6)
2624      (clefPosition . 2)
2625      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Melchior"))
2626      (midiInstrument . "choir aahs"))
2627
2628 \relative c' {
2629   \instrumentSwitch "kaspar"
2630   c4 c c c
2631   \instrumentSwitch "melchior"
2632   a4 a a a
2633   \instrumentSwitch "kaspar"
2634   c4 c c c
2635 }
2636 @end lilypond
2637
2638 @seealso
2639 Notation Reference:
2640 @ref{Instrument names},
2641 @ref{Scheme functions},
2642 @ref{Text},
2643 @ref{Text markup commands}.
2644
2645 Extending LilyPond:
2646 @rextend{Markup construction in Scheme}.
2647
2648
2649 @node Musical cues
2650 @unnumberedsubsubsec Musical cues
2651
2652 @cindex musical cues
2653 @cindex cues, musical
2654
2655 Musical cues can be inserted in Vocal Scores, Vocal Books and
2656 Orchestral Parts to indicate what music in another part
2657 immediately precedes an entry.  Also, cues are often inserted in the
2658 piano reduction in Vocal Scores to indicate what each orchestral
2659 instrument is playing.  This aids the conductor when a full
2660 Conductors' Score is not available.
2661
2662 The basic mechanism for inserting cues is fully explained in the
2663 main text, see @ref{Quoting other voices} and
2664 @ref{Formatting cue notes}.  But when many cues have to be
2665 inserted, for example, as an aid to a conductor in a vocal score,
2666 the instrument name must be positioned carefully just before and
2667 close to the start of the cue notes.  The following example shows
2668 how this is done.
2669
2670 @lilypond[quote,verbatim]
2671 flute = \relative c'' {
2672   s4 s4 e g
2673 }
2674 \addQuote "flute" { \flute }
2675
2676 pianoRH = \relative c'' {
2677   c4. g8
2678   % position name of cue-ing instrument just before the cue notes,
2679   % and above the staff
2680   \new CueVoice {
2681     \override InstrumentSwitch.self-alignment-X = #RIGHT
2682     \set instrumentCueName = "Flute"
2683   }
2684   \cueDuring "flute" #UP { g4 bes4 }
2685 }
2686 pianoLH = \relative c { c4 <c' e> e, <g c> }
2687
2688 \score {
2689   \new PianoStaff <<
2690     \new Staff {
2691       \pianoRH
2692     }
2693     \new Staff {
2694       \clef "bass"
2695       \pianoLH
2696     }
2697   >>
2698 }
2699 @end lilypond
2700
2701 If a transposing instrument is being quoted the instrument part should
2702 specify its key so the conversion of its cue notes will be done
2703 automatically.  The example below shows this transposition for a
2704 B-flat clarinet.  The notes in this example are low on the staff so
2705 @code{DOWN} is specified in @code{\cueDuring} (so the stems are
2706 down) and the instrument name is positioned below the staff.  Note
2707 also that the piano right-hand voice is explicitly declared.  This
2708 is because the cue notes in this example begin at the start of the
2709 first bar and this would otherwise cause the entire piano right-hand
2710 notes to be placed in a @code{CueVoice} context.
2711
2712 @lilypond[quote,verbatim]
2713 clarinet = \relative c' {
2714   \transposition bes
2715   fis4 d d c
2716 }
2717 \addQuote "clarinet" { \clarinet }
2718
2719 pianoRH = \relative c'' {
2720   \transposition c'
2721   % position name of cue-ing instrument below the staff
2722   \new CueVoice {
2723     \override InstrumentSwitch.self-alignment-X = #RIGHT
2724     \override InstrumentSwitch.direction = #DOWN
2725     \set instrumentCueName = "Clar."
2726   }
2727   \cueDuring "clarinet" #DOWN { c4. g8 }
2728   g4 bes4
2729 }
2730 pianoLH = \relative c { c4 <c' e> e, <g c> }
2731
2732 \score {
2733   <<
2734     \new PianoStaff <<
2735       \new Staff {
2736         \new Voice {
2737           \pianoRH
2738         }
2739       }
2740       \new Staff {
2741         \clef "bass"
2742         \pianoLH
2743       }
2744     >>
2745   >>
2746 }
2747 @end lilypond
2748
2749 From these two examples it is clear that inserting many cues in a
2750 Vocal Score would be tedious, and the notes of the piano part would
2751 become obscured.  However, as the following snippet shows, it is
2752 possible to define a music function to reduce the amount of typing
2753 and to make the piano notes clearer.
2754
2755 @snippets
2756 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2757 {adding-orchestral-cues-to-a-vocal-score.ly}
2758
2759 @seealso
2760 Musical Glossary:
2761 @rglos{cue-notes}.
2762
2763 Notation Reference:
2764 @ref{Aligning objects},
2765 @ref{Direction and placement},
2766 @ref{Formatting cue notes},
2767 @ref{Quoting other voices},
2768 @ref{Using music functions}.
2769
2770 Snippets:
2771 @rlsr{Vocal music}.
2772
2773 Internals Reference:
2774 @rinternals{InstrumentSwitch},
2775 @rinternals{CueVoice}.
2776
2777 @knownissues
2778 @code{\cueDuring} automatically inserts a @code{CueVoice} context
2779 and all cue notes are placed in that context.  This means it is not
2780 possible to have two overlapping sequences of cue notes by this
2781 technique.  Overlapping sequences could be entered by explicitly
2782 declaring separate @code{CueVoice} contexts and using
2783 @code{\quoteDuring} to extract and insert the cue notes.
2784
2785
2786 @node Spoken music
2787 @unnumberedsubsubsec Spoken music
2788
2789 @cindex parlato
2790 @cindex Sprechgesang
2791 Such effects as @q{parlato} or @q{Sprechgesang} require performers to
2792 speak without pitch but still with rhythm; these are notated by cross
2793 note heads, as demonstrated in @ref{Special note heads}.
2794
2795 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
2796 @c add "showing the rhythm of a melody" snip
2797 @c add "one staff-line notation"
2798 @c add "improvisation" ref
2799 @c add "lyrics independents of notes" ref
2800
2801 @node Dialogue over music
2802 @unnumberedsubsubsec Dialogue over music
2803
2804 Dialogue over music is usually printed over the staves in an italic
2805 font, with the start of each phrase keyed in to a particular music
2806 moment.
2807
2808 For short interjections a simple markup suffices.
2809
2810 @lilypond[quote,verbatim,relative=2]
2811 a4^\markup { \smallCaps { Alex - } \italic { He's gone } } a a a
2812 a4 a a^\markup { \smallCaps { Bethan - } \italic Where? } a
2813 a4 a a a
2814 @end lilypond
2815
2816 For longer phrases it may be necessary to expand the music to make
2817 the words fit neatly.  There is no provision in LilyPond to do this
2818 fully automatically, and some manual intervention to layout the
2819 page will be necessary.
2820
2821 For long phrases or for passages with a lot of closely packed
2822 dialogue, using a Lyrics context will give better results.  The
2823 Lyrics context should not be associated with a music Voice; instead
2824 each section of dialogue should be given an explicit duration.  If
2825 there is a gap in the dialogue, the final word should be separated
2826 from the rest and the duration split between them so that the
2827 underlying music spaces out smoothly.
2828
2829 If the dialogue extends for more than one line it will be necessary
2830 to manually insert @code{\break}s and adjust the placing of the
2831 dialogue to avoid running into the right margin.  The final word of
2832 the last measure on a line should also be separated out, as above.
2833
2834 Here is an example illustrating how this might be done.
2835
2836 @c This should be a snippet, but it can't be as it needs to be
2837 @c manually adjusted to suit the imposed line length.  -td
2838
2839 @lilypond[quote,verbatim,ragged-right]
2840 music = \relative c'' {
2841   \repeat unfold 3 { a4 a a a }
2842 }
2843
2844 dialogue = \lyricmode {
2845   \markup {
2846     \fontsize #1 \upright \smallCaps Abe:
2847     "Say this over measures one and"
2848   }4*7
2849   "two"4 |
2850   \break
2851   "and this over measure"4*3
2852   "three"4 |
2853 }
2854
2855 \score {
2856   <<
2857     \new Lyrics \with {
2858       \override LyricText.font-shape = #'italic
2859       \override LyricText.self-alignment-X = #LEFT
2860     }
2861     { \dialogue }
2862     \new Staff {
2863       \new Voice { \music }
2864     }
2865   >>
2866 }
2867 @end lilypond
2868
2869 @c TODO show use of \column to produce dialogue on two lines
2870
2871 @seealso
2872 Notation Reference:
2873 @ref{Manual syllable durations},
2874 @ref{Text}.
2875
2876 Internal Reference:
2877 @rinternals{LyricText}.
2878
2879
2880 @node Chants psalms and hymns
2881 @subsection Chants psalms and hymns
2882
2883 @cindex chants
2884 @cindex psalms
2885 @cindex hymns
2886 @cindex religious music
2887
2888 The music and words for chants, psalms and hymns usually follow a
2889 well-established format in any particular church.  Although the
2890 formats may differ from church to church the type-setting problems
2891 which arise are broadly similar, and are covered in this section.
2892
2893 @menu
2894 * References for chants and psalms::
2895 * Setting a chant::
2896 * Pointing a psalm::
2897 * Partial measures in hymn tunes::
2898 @end menu
2899
2900 @node References for chants and psalms
2901 @unnumberedsubsubsec References for chants and psalms
2902
2903 Typesetting Gregorian chant in various styles of ancient notation
2904 is described in @ref{Ancient notation}.
2905
2906 @seealso
2907 Notation reference:
2908 @ref{Ancient notation}.
2909
2910 Snippets:
2911 @rlsr{Vocal music}.
2912
2913
2914 @node Setting a chant
2915 @unnumberedsubsubsec Setting a chant
2916
2917 Modern chant settings use modern notation with varying numbers of
2918 elements taken from ancient notation.  Some of the elements and
2919 methods to consider are shown here.
2920
2921 Chants often use quarter notes without stems to indicate the pitch,
2922 with the rhythm being taken from the spoken rhythm of the words.
2923
2924 @lilypond[verbatim,quote]
2925 stemOff = { \hide Staff.Stem }
2926
2927 \relative c' {
2928   \stemOff
2929   a'4 b c2 |
2930 }
2931
2932 @end lilypond
2933
2934 Chants often omit the bar lines or use shortened or dotted bar
2935 lines to indicate pauses in the music.  To omit all bar lines from
2936 all staves remove the bar line engraver completely:
2937
2938 @lilypond[verbatim,quote]
2939 \score {
2940   \new StaffGroup <<
2941     \new Staff {
2942       \relative c'' {
2943         a4 b c2 |
2944         a4 b c2 |
2945         a4 b c2 |
2946       }
2947     }
2948     \new Staff {
2949       \relative c'' {
2950         a4 b c2 |
2951         a4 b c2 |
2952         a4 b c2 |
2953       }
2954     }
2955   >>
2956   \layout {
2957     \context {
2958       \Staff
2959       \remove "Bar_engraver"
2960     }
2961   }
2962 }
2963 @end lilypond
2964
2965 Bar lines can also be removed on a staff-by-staff basis:
2966
2967 @lilypond[verbatim, quote]
2968 \score {
2969   \new ChoirStaff <<
2970     \new Staff
2971     \with { \remove "Bar_engraver" } {
2972       \relative c'' {
2973         a4 b c2 |
2974         a4 b c2 |
2975         a4 b c2 |
2976       }
2977     }
2978     \new Staff {
2979       \relative c'' {
2980         a4 b c2 |
2981         a4 b c2 |
2982         a4 b c2 |
2983       }
2984     }
2985   >>
2986 }
2987 @end lilypond
2988
2989 To remove bar lines from just a section of music treat it as a
2990 cadenza.  If the section is long you may need to insert dummy
2991 bar lines with @code{\bar ""} to show where the line should break.
2992
2993 @lilypond[verbatim,quote,relative=2]
2994 a4 b c2 |
2995 \cadenzaOn
2996 a4 b c2
2997 a4 b c2
2998 \bar ""
2999 a4 b c2
3000 a4 b c2
3001 \cadenzaOff
3002 a4 b c2 |
3003 a4 b c2 |
3004 @end lilypond
3005
3006 Rests or pauses in chants can be indicated by modified bar lines.
3007
3008 @lilypond[verbatim, quote,relative=2]
3009 a4
3010 \cadenzaOn
3011 b c2
3012 a4 b c2
3013 \bar "'"
3014 a4 b c2
3015 a4 b c2
3016 \bar ";"
3017 a4 b c2
3018 \bar "!"
3019 a4 b c2
3020 \bar "||"
3021 @end lilypond
3022
3023 Alternatively, the notation used in Gregorian chant for pauses or
3024 rests is sometimes used even though the rest of the notation is
3025 modern.  This uses a modified @code{\breathe} mark:
3026
3027 @lilypond[verbatim,quote]
3028 divisioMinima = {
3029   \once \override BreathingSign.stencil = #ly:breathing-sign::divisio-minima
3030   \once \override BreathingSign.Y-offset = #0
3031   \breathe
3032 }
3033 divisioMaior = {
3034   \once \override BreathingSign.stencil = #ly:breathing-sign::divisio-maior
3035   \once \override BreathingSign.Y-offset = #0
3036   \breathe
3037 }
3038 divisioMaxima = {
3039   \once \override BreathingSign.stencil = #ly:breathing-sign::divisio-maxima
3040   \once \override BreathingSign.Y-offset = #0
3041   \breathe
3042 }
3043 finalis = {
3044   \once \override BreathingSign.stencil = #ly:breathing-sign::finalis
3045   \once \override BreathingSign.Y-offset = #0
3046   \breathe
3047 }
3048
3049 \score {
3050   \relative c'' {
3051     g2 a4 g
3052     \divisioMinima
3053     g2 a4 g
3054     \divisioMaior
3055     g2 a4 g
3056     \divisioMaxima
3057     g2 a4 g
3058     \finalis
3059   }
3060   \layout {
3061     \context {
3062       \Staff
3063       \remove "Bar_engraver"
3064     }
3065   }
3066 }
3067 @end lilypond
3068
3069 Chants usually omit the time signature and often omit the clef too.
3070
3071 @lilypond[verbatim,quote]
3072 \score {
3073   \new Staff {
3074     \relative c'' {
3075       a4 b c2 |
3076       a4 b c2 |
3077       a4 b c2 |
3078     }
3079   }
3080   \layout {
3081     \context {
3082       \Staff
3083       \remove "Bar_engraver"
3084       \remove "Time_signature_engraver"
3085       \remove "Clef_engraver"
3086     }
3087   }
3088 }
3089 @end lilypond
3090
3091 Chants for psalms in the Anglican tradition are usually either
3092 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
3093 of 7 bars.  Each group of 7 bars is divided into two halves,
3094 corresponding to the two halves of each verse, usually separated by
3095 a double bar line.  Only whole and half notes are used.  The 1st bar
3096 in each half always contains a single chord of whole notes.  This is
3097 the @qq{reciting note}.  Chants are usually centered on the page.
3098
3099 @lilypond[verbatim,quote]
3100 SopranoMusic = \relative g' {
3101   g1 | c2 b | a1 | \bar "||"
3102   a1 | d2 c | c b | c1 | \bar "||"
3103 }
3104
3105 AltoMusic = \relative c' {
3106   e1 | g2 g | f1 |
3107   f1 | f2 e | d d | e1 |
3108 }
3109
3110 TenorMusic = \relative a {
3111   c1 | c2 c | c1 |
3112   d1 | g,2 g | g g | g1 |
3113 }
3114
3115 BassMusic =  \relative c {
3116   c1 | e2 e | f1 |
3117   d1 | b2 c | g' g | c,1 |
3118 }
3119
3120 global = {
3121   \time 2/2
3122 }
3123
3124 % Use markup to center the chant on the page
3125 \markup {
3126   \fill-line {
3127     \score {  % centered
3128       <<
3129         \new ChoirStaff <<
3130           \new Staff <<
3131             \global
3132             \clef "treble"
3133             \new Voice = "Soprano" <<
3134               \voiceOne
3135               \SopranoMusic
3136             >>
3137             \new Voice = "Alto" <<
3138               \voiceTwo
3139               \AltoMusic
3140             >>
3141           >>
3142           \new Staff <<
3143             \clef "bass"
3144             \global
3145             \new Voice = "Tenor" <<
3146               \voiceOne
3147               \TenorMusic
3148             >>
3149             \new Voice = "Bass" <<
3150               \voiceTwo
3151               \BassMusic
3152             >>
3153           >>
3154         >>
3155       >>
3156       \layout {
3157         \context {
3158           \Score
3159           \override SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/2)
3160         }
3161         \context {
3162           \Staff
3163           \remove "Time_signature_engraver"
3164         }
3165       }
3166     }  % End score
3167   }
3168 }  % End markup
3169 @end lilypond
3170
3171 Some other approaches to setting such a chant are shown in the first
3172 of the following snippets.
3173
3174 @snippets
3175
3176 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3177 {chant-or-psalms-notation.ly}
3178
3179 Canticles and other liturgical texts may be set more freely, and
3180 may use notational elements from ancient music.  Often the words
3181 are shown underneath and aligned with the notes.  If so, the notes
3182 are spaced in accordance with the syllables rather than the notes'
3183 durations.
3184
3185 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3186 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
3187
3188 @seealso
3189 Learning Manual:
3190 @rlearning{Visibility and color of objects},
3191 @rlearning{Vocal ensembles templates}.
3192
3193 Notation Reference:
3194 @ref{Ancient notation},
3195 @ref{Bar lines},
3196 @ref{Modifying context plug-ins},
3197 @ref{Typesetting Gregorian chant},
3198 @ref{Unmetered music},
3199 @ref{Visibility of objects}.
3200
3201
3202 @node Pointing a psalm
3203 @unnumberedsubsubsec Pointing a psalm
3204
3205 The words to an Anglican psalm are usually printed in separate
3206 verses centered underneath the chant.
3207
3208 Single chants (with 7 bars) are repeated for every verse.  Double
3209 chants (with 14 bars) are repeated for every pair of verses.  Marks
3210 are inserted in the words to show how they should be fitted to the
3211 chant.  Each verse is divided into two halves.  A colon is usually
3212 used to indicate this division.  This corresponds to the double bar
3213 line in the music.  The words before the colon are sung to the first
3214 three bars of music; the words after the colon are sung to the last
3215 four bars.
3216
3217 Single bar lines (or in some psalters an inverted comma or similar
3218 symbol) are inserted between words to indicate where the bar lines
3219 in the music fall.  In markup mode a single bar line can be entered
3220 with the bar check symbol, @code{|}.
3221
3222 @lilypond[verbatim,quote]
3223 \markup {
3224   \fill-line {
3225     \column {
3226       \left-align {
3227         \line { O come let us sing | unto the | Lord : let }
3228         \line { us heartily rejoice in the | strength of | our }
3229         \line { sal- | -vation. }
3230       }
3231     }
3232   }
3233 }
3234 @end lilypond
3235
3236 Other symbols may require glyphs from the @code{fetaMusic} fonts.
3237 For details, see @ref{Fonts}.
3238
3239 @lilypond[verbatim,quote]
3240 tick = \markup {
3241   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3242 }
3243 \markup {
3244   \fill-line {
3245     \column {
3246       \left-align {
3247         \line { O come let us sing \tick unto the \tick Lord : let }
3248         \line {
3249           us heartily rejoice in the \tick strength of \tick our
3250         }
3251         \line { sal \tick vation. }
3252       }
3253     }
3254   }
3255 }
3256 @end lilypond
3257
3258 Where there is one whole note in a bar all the words corresponding
3259 to that bar are recited on that one note in speech rhythm.  Where
3260 there are two notes in a bar there will usually be only one or two
3261 corresponding syllables.  If there are more that two syllables a
3262 dot is usually inserted to indicate where the change in note occurs.
3263
3264 @lilypond[verbatim,quote]
3265 dot = \markup {
3266   \raise #0.7 \musicglyph #"dots.dot"
3267 }
3268 tick = \markup {
3269   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3270 }
3271 \markup {
3272   \fill-line {
3273     \column {
3274       \left-align {
3275         \line {
3276           O come let us sing \tick unto \dot the \tick Lord : let
3277         }
3278         \line {
3279           us heartily rejoice in the \tick strength of \tick our
3280         }
3281         \line { sal \tick vation. }
3282       }
3283     }
3284   }
3285 }
3286 @end lilypond
3287
3288 In some psalters an asterisk is used to indicate a break in a
3289 recited section instead of a comma, and stressed or slightly
3290 lengthened syllables are indicated in bold text.
3291
3292 @lilypond[verbatim,quote]
3293 dot = \markup {
3294   \raise #0.7 \musicglyph #"dots.dot"
3295 }
3296 tick = \markup {
3297   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3298 }
3299 \markup {
3300   \fill-line {
3301     \column {
3302       \left-align {
3303         \line { Today if ye will hear his voice * }
3304         \line {
3305           \concat { \bold hard en }
3306           | not your | hearts : as in the pro-
3307         }
3308         \line { vocation * and as in the \bold day of tempt- | }
3309         \line { -ation | in the | wilderness. }
3310       }
3311     }
3312   }
3313 }
3314 @end lilypond
3315
3316 In other psalters an accent is placed over the syllable to indicate
3317 stress.
3318
3319 @lilypond[verbatim,quote]
3320 tick = \markup {
3321   \raise #2 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3322 }
3323 \markup {
3324   \fill-line {
3325     \column {
3326       \left-align {
3327         \line {
3328           O come let us \concat {
3329             si \combine \tick ng
3330           }
3331           | unto the | Lord : let
3332         }
3333         \line {
3334           us heartily \concat {
3335             rejo \combine \tick ice
3336           }
3337           in the | strength of | our
3338         }
3339         \line { sal- | -vation. }
3340       }
3341     }
3342   }
3343 }
3344 @end lilypond
3345
3346 The use of markup to center text, and arrange lines in columns is
3347 described in @ref{Formatting text}.
3348
3349 Most of these elements are shown in one or other of the two verses
3350 in the template, see @rlearning{Psalms}.
3351
3352 @seealso
3353 Learning Manual:
3354 @rlearning{Psalms},
3355 @rlearning{Vocal ensembles templates}.
3356
3357 Notation Reference:
3358 @ref{Fonts},
3359 @ref{Formatting text}.
3360
3361
3362 @node Partial measures in hymn tunes
3363 @unnumberedsubsubsec Partial measures in hymn tunes
3364
3365 Hymn tunes frequently start and end every line of music with
3366 partial measures so that each line of music corresponds exactly
3367 with a line of text.  This requires a @code{\partial} command at
3368 the start of the music and @code{\bar "|"} or @code{\bar "||"}
3369 commands at the end of each line.
3370
3371 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3372 {hymn-template.ly}
3373
3374
3375 @node Ancient vocal music
3376 @subsection Ancient vocal music
3377
3378 Ancient vocal music is supported, as explained in
3379 @ref{Ancient notation}.
3380
3381 @c TODO
3382
3383 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
3384 @c and "Transcription of Ancient music with incipit" snippet. -vv
3385
3386 @seealso
3387 Notation Reference:
3388 @ref{Ancient notation}.
3389
3390
3391
3392