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