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