]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/vocal.itely
Doc: NR Typo for 2.1.3 - \vspace not h\hspace
[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   c4 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       \vspace #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     \column {
1994       \line { \bold "4."
1995         \column {
1996           "This is verse four."
1997           "It has two lines."
1998         }
1999       }
2000       \vspace #0.1 % adds vertical spacing between verses
2001       \line { \bold "5."
2002         \column {
2003           "This is verse five."
2004           "It has two lines."
2005         }
2006       }
2007     }
2008   \hspace #0.1 % gives some extra space on the right margin;
2009   % can be removed if page space is tight
2010   }
2011 }
2012 @end lilypond
2013
2014
2015 @seealso
2016 Internals Reference:
2017 @rinternals{LyricText},
2018 @rinternals{StanzaNumber}.
2019
2020
2021 @node Songs
2022 @subsection Songs
2023
2024 @menu
2025 * References for songs::
2026 * Lead sheets::
2027 @end menu
2028
2029 @node References for songs
2030 @unnumberedsubsubsec References for songs
2031
2032 Songs are usually written on three staves with the melody for the
2033 singer on the top staff and two staves of piano accompaniment at
2034 the bottom.  The lyrics of the first stanza are printed immediately
2035 underneath the top staff.  If there are just a small number of
2036 further stanzas these can be printed immediately under the first
2037 one, but if there are more stanzas than can be easily accommodated
2038 there the second and subsequent stanzas are printed after the music
2039 as stand-alone text.
2040
2041 All the notational elements needed to write songs are fully described
2042 elsewhere:
2043
2044 @itemize
2045
2046 @item
2047 For constructing the staff layout, see @ref{Displaying staves}.
2048
2049 @item
2050 For writing piano music, see
2051 @ref{Keyboard and other multi-staff instruments}.
2052
2053 @item
2054 For writing the lyrics to a melody line, see
2055 @ref{Common notation for vocal music}.
2056
2057 @item
2058 For placing the lyrics, see @ref{Placing lyrics vertically}.
2059
2060 @item
2061 For entering stanzas, see @ref{Stanzas}.
2062
2063 @item
2064 Songs are frequently printed with the chording indicated by chord
2065 names above the staves.  This is described in @ref{Displaying chords}.
2066
2067 @item
2068 To print fret diagrams of the chords for guitar accompaniment or
2069 accompaniment by other fretted instruments, see @qq{Fret diagram
2070 markups} in @ref{Common notation for fretted strings}.
2071
2072 @end itemize
2073
2074 @seealso
2075 Learning Manual:
2076 @rlearning{Songs}.
2077
2078 Notation Reference:
2079 @ref{Common notation for vocal music},
2080 @ref{Displaying chords},
2081 @ref{Displaying staves},
2082 @ref{Keyboard and other multi-staff instruments},
2083 @ref{Placing lyrics vertically},
2084 @ref{Stanzas}.
2085
2086 Snippets:
2087 @rlsr{Vocal music}.
2088
2089
2090 @node Lead sheets
2091 @unnumberedsubsubsec Lead sheets
2092
2093 Lead sheets may be printed by combining vocal parts and
2094 @q{chord mode}; this syntax is explained in @ref{Chord notation}.
2095
2096 @snippets
2097 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2098 {simple-lead-sheet.ly}
2099
2100 @seealso
2101 Notation Reference:
2102 @ref{Chord notation}.
2103
2104
2105 @node Choral
2106 @subsection Choral
2107
2108 @cindex anthems
2109 @cindex part songs
2110 @cindex oratorio
2111 @cindex SATB
2112
2113 This section discusses notation issues that relate most directly
2114 to choral music.  This includes anthems, part songs, oratorio,
2115 etc.
2116
2117 @menu
2118 * References for choral::
2119 * Score layouts for choral::
2120 * Divided voices::
2121 @end menu
2122
2123 @node References for choral
2124 @unnumberedsubsubsec References for choral
2125
2126 Choral music is usually notated on two, three or four staves within
2127 a @code{ChoirStaff} group.  Accompaniment, if required, is placed
2128 beneath in a @code{PianoStaff} group, which is usually reduced in
2129 size for @emph{a capella} choral works.  The notes for each vocal
2130 part are placed in a @code{Voice} context, with each staff
2131 being given either a single vocal part (i.e., one @code{Voice}) or
2132 a pair of vocal parts (i.e., two @code{Voice}s).
2133
2134 Words are placed in @code{Lyrics} contexts, either underneath each
2135 corresponding music staff, or one above and one below the music
2136 staff if this contains the music for two parts.
2137
2138 Several common topics in choral music are described fully elsewhere:
2139
2140 @itemize
2141
2142 @item
2143 An introduction to creating an SATB vocal score can be found in
2144 the Learning Manual, see @rlearning{Four-part SATB vocal score}.
2145
2146 @item
2147 Several templates suitable for various styles of choral music can
2148 also be found in the Learning Manual, see
2149 @rlearning{Vocal ensembles}.
2150
2151 @item
2152 For information about @code{ChoirStaff} and @code{PianoStaff} see
2153 @ref{Grouping staves}.
2154
2155 @item
2156 Shape note heads, as used in Sacred Harp and similar notation, are
2157 described in @ref{Shape note heads}.
2158
2159 @item
2160 When two vocal parts share a staff the stems, ties, slurs, etc., of
2161 the higher part will be directed up and those of the lower part
2162 down.  To do this, use @code{\voiceOne} and @code{\voiceTwo}.  See
2163 @ref{Single-staff polyphony}.
2164
2165 @end itemize
2166
2167 @predefined
2168 @code{\oneVoice},
2169 @code{\voiceOne},
2170 @code{\voiceTwo}.
2171
2172 @seealso
2173 Learning Manual:
2174 @rlearning{Four-part SATB vocal score},
2175 @rlearning{Vocal ensembles}.
2176
2177 Notation Reference:
2178 @ref{Context layout order},
2179 @ref{Grouping staves},
2180 @ref{Shape note heads},
2181 @ref{Single-staff polyphony}.
2182
2183 Snippets:
2184 @rlsr{Vocal music}.
2185
2186 Internals Reference:
2187 @rinternals{ChoirStaff},
2188 @rinternals{Lyrics},
2189 @rinternals{PianoStaff}.
2190
2191
2192 @node Score layouts for choral
2193 @unnumberedsubsubsec Score layouts for choral
2194
2195 Choral music containing four staves, with or without piano
2196 accompaniment, is usually laid out with two systems per page.
2197 Depending on the page size, achieving this may require changes
2198 to several default settings.  The following settings should be
2199 considered:
2200
2201 @itemize
2202
2203 @item
2204 The global staff size can be modified to change the overall size
2205 of the elements of the score.  See @ref{Setting the staff size}.
2206
2207 @item
2208 The distances between the systems, the staves and the lyrics can
2209 all be adjusted independently.  See @ref{Vertical spacing}.
2210
2211 @item
2212 The dimensions of the vertical layout variables can be displayed as
2213 an aid to adjusting the vertical spacing.  This and other
2214 possibilities for fitting the music onto fewer pages are described
2215 in @ref{Fitting music onto fewer pages}.
2216
2217 @item
2218 If the number of systems per page changes from one to two it is
2219 customary to indicate this with a system separator mark between
2220 the two systems.  See @ref{Separating systems}.
2221
2222 @item
2223 For details of other page formatting properties, see
2224 @ref{Page layout}.
2225
2226 @end itemize
2227
2228
2229 Dynamic markings by default are placed below the staff, but in
2230 choral music they are usually placed above the staff in order to
2231 avoid the lyrics.  The predefined command @code{\dynamicUp} does
2232 this for the dynamic markings in a single @code{Voice} context.
2233 If there are many @code{Voice} contexts this predefined command
2234 would have to be placed in every one.  Alternatively its expanded
2235 form can be used to place all dynamic markings in the entire score
2236 above their respective staves, as shown here:
2237
2238 @lilypond[verbatim,quote]
2239 \score {
2240   \new ChoirStaff <<
2241     \new Staff {
2242       \new Voice {
2243         \relative c'' { g4\f g g g }
2244       }
2245     }
2246     \new Staff {
2247       \new Voice {
2248         \relative c' { d4 d d\p d }
2249       }
2250     }
2251   >>
2252   \layout {
2253     \context {
2254       \Score
2255       \override DynamicText #'direction = #UP
2256       \override DynamicLineSpanner #'direction = #UP
2257     }
2258   }
2259 }
2260 @end lilypond
2261
2262 @predefined
2263 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
2264
2265 @seealso
2266 Notation Reference:
2267 @ref{Changing spacing},
2268 @ref{Displaying spacing},
2269 @ref{Fitting music onto fewer pages},
2270 @ref{Page layout},
2271 @ref{Score layout},
2272 @ref{Separating systems},
2273 @ref{Setting the staff size},
2274 @ref{Using an extra voice for breaks},
2275 @ref{Vertical spacing}.
2276
2277 Internals Reference:
2278 @rinternals{VerticalAxisGroup},
2279 @rinternals{StaffGrouper}.
2280
2281
2282 @node Divided voices
2283 @unnumberedsubsubsec Divided voices
2284
2285 @cindex voices, divided
2286
2287 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2288 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
2289
2290 @seealso
2291 Notation Reference:
2292 @ref{Expressive marks as lines}.
2293
2294
2295 @node Opera and stage musicals
2296 @subsection Opera and stage musicals
2297
2298 The music, lyrics and dialogue to opera and stage musicals are
2299 usually set out in one or more of the following forms:
2300
2301 @itemize
2302
2303 @item
2304 A @emph{Conductors' Score} containing the full orchestral and vocal
2305 parts, together with libretto cues if there are spoken passages.
2306
2307 @item
2308 @emph{Orchestral Parts} containing the music for the individual
2309 instruments of the orchestra or band.
2310
2311 @item
2312 A @emph{Vocal Score} containing all vocal parts with piano
2313 accompaniment.  The accompaniment is usually an orchestral
2314 reduction, and if so the name of the original orchestral instrument
2315 is often indicated.  Vocal scores sometimes includes stage
2316 directions and libretto cues.
2317
2318 @item
2319 A @emph{Vocal Book} containing just the vocal parts
2320 (no accompaniment), sometimes combined with the libretto.
2321
2322 @item
2323 A @emph{Libretto} containing the extended passages of spoken
2324 dialogue usually found in musicals, together with the words to the
2325 sung parts.  Stage directions are usually included.  LilyPond can
2326 be used to typeset libretti but as they contain no music
2327 alternative methods may be preferable.
2328
2329 @end itemize
2330
2331 The sections in the LilyPond documentation which cover the topics
2332 needed to create scores in the styles commonly found in opera and
2333 musicals are indicated in the References below.  This is followed
2334 by sections covering those techniques which are peculiar to
2335 typesetting opera and musical scores.
2336
2337 @menu
2338 * References for opera and stage musicals::
2339 * Character names::
2340 * Musical cues::
2341 * Spoken music::
2342 * Dialogue over music::
2343 @end menu
2344
2345 @node References for opera and stage musicals
2346 @unnumberedsubsubsec References for opera and stage musicals
2347
2348 @itemize
2349
2350 @item
2351 A conductors' score contains many grouped staves and lyrics.  Ways
2352 of grouping staves is shown in @ref{Grouping staves}.  To nest
2353 groups of staves see @ref{Nested staff groups}.
2354
2355 @item
2356 The printing of empty staves in conductors' scores and vocal scores
2357 is often suppressed.  To create such a @qq{Frenched score} see
2358 @ref{Hiding staves}.
2359
2360 @item
2361 Writing orchestral parts is covered in @ref{Writing parts}.
2362 Other sections in the Specialist notation chapter may be relevant,
2363 depending on the orchestration used.  Many instruments are
2364 transposing instruments, see @ref{Instrument transpositions}.
2365
2366 @item
2367 If the number of systems per page changes from page to page it is
2368 customary to separate the systems with a system separator mark.
2369 See @ref{Separating systems}.
2370
2371 @item
2372 For details of other page formatting properties, see
2373 @ref{Page layout}.
2374
2375 @item
2376 Dialogue cues, stage directions and footnotes can be inserted, see
2377 @ref{Creating footnotes} and @ref{Text}.  Extensive stage directions
2378 can also be added with a section of stand-alone markups between two
2379 @code{\score} blocks, see @ref{Separate text}.
2380
2381 @end itemize
2382
2383 @seealso
2384 Musical Glossary:
2385 @rglos{Frenched score},
2386 @rglos{Frenched staves},
2387 @rglos{transposing instrument}.
2388
2389 Notation Reference:
2390 @ref{Creating footnotes},
2391 @ref{Grouping staves},
2392 @ref{Hiding staves},
2393 @ref{Instrument transpositions},
2394 @ref{Nested staff groups},
2395 @ref{Page layout},
2396 @ref{Separating systems},
2397 @ref{Transpose},
2398 @ref{Writing parts},
2399 @ref{Writing text}.
2400
2401 Snippets:
2402 @rlsr{Vocal music}.
2403
2404
2405 @node Character names
2406 @unnumberedsubsubsec Character names
2407
2408 @cindex character names
2409 @cindex names, character
2410
2411 Character names are usually shown to the left of the staff when the
2412 staff is dedicated to that character alone:
2413
2414 @lilypond[quote,verbatim,ragged-right]
2415 \score {
2416   <<
2417     \new Staff {
2418       \set Staff.vocalName = \markup \smallCaps Kaspar
2419       \set Staff.shortVocalName = \markup \smallCaps Kas.
2420       \relative c' {
2421         \clef "G_8"
2422         c4 c c c
2423         \break
2424         c4 c c c
2425       }
2426     }
2427     \new Staff {
2428       \set Staff.vocalName = \markup \smallCaps Melchior
2429       \set Staff.shortVocalName = \markup \smallCaps Mel
2430       \clef "bass"
2431       \relative c' {
2432         a4 a a a
2433         a4 a a a
2434       }
2435     }
2436   >>
2437 }
2438 @end lilypond
2439
2440 When two or more characters share a staff the character's name is
2441 usually printed above the staff at the start of every section
2442 applying to that character.  This can be done with markup.  Often a
2443 specific font is used for this purpose.
2444
2445 @lilypond[quote,verbatim,relative=1]
2446 \clef "G_8"
2447 c4^\markup \fontsize #1 \smallCaps Kaspar
2448 c c c
2449 \clef "bass"
2450 a4^\markup \fontsize #1 \smallCaps Melchior
2451 a a a
2452 \clef "G_8"
2453 c4^\markup \fontsize #1 \smallCaps Kaspar
2454 c c c
2455 @end lilypond
2456
2457 Alternatively, if there are many character changes, it may be
2458 easier to set up @qq{instrument} definitions for each character at
2459 the top level so that @code{\instrumentSwitch} can be used to
2460 indicate each change.
2461
2462 @lilypond[quote,verbatim]
2463 \addInstrumentDefinition #"kaspar"
2464   #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
2465      (shortInstrumentName . "Kas.")
2466      (clefGlyph . "clefs.G")
2467      (clefOctavation . -7)
2468      (middleCPosition . 1)
2469      (clefPosition . -2)
2470      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Kaspar"))
2471      (midiInstrument . "voice oohs"))
2472
2473 \addInstrumentDefinition #"melchior"
2474   #`((instrumentTransposition . ,(ly:make-pitch 0 0 0))
2475      (shortInstrumentName . "Mel.")
2476      (clefGlyph . "clefs.F")
2477      (clefOctavation . 0)
2478      (middleCPosition . 6)
2479      (clefPosition . 2)
2480      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Melchior"))
2481      (midiInstrument . "voice aahs"))
2482
2483 \relative c' {
2484   \instrumentSwitch "kaspar"
2485   c4 c c c
2486   \instrumentSwitch "melchior"
2487   a4 a a a
2488   \instrumentSwitch "kaspar"
2489   c4 c c c
2490 }
2491 @end lilypond
2492
2493 @seealso
2494 Notation Reference:
2495 @ref{Instrument names},
2496 @ref{Scheme functions},
2497 @ref{Text},
2498 @ref{Text markup commands}.
2499
2500 Extending LilyPond:
2501 @rextend{Markup construction in Scheme}.
2502
2503
2504 @node Musical cues
2505 @unnumberedsubsubsec Musical cues
2506
2507 @cindex musical cues
2508 @cindex cues, musical
2509
2510 Musical cues can be inserted in Vocal Scores, Vocal Books and
2511 Orchestral Parts to indicate what music in another part
2512 immediately precedes an entry.  Also, cues are often inserted in the
2513 piano reduction in Vocal Scores to indicate what each orchestral
2514 instrument is playing.  This aids the conductor when a full
2515 Conductors' Score is not available.
2516
2517 The basic mechanism for inserting cues is fully explained in the
2518 main text, see @ref{Quoting other voices} and
2519 @ref{Formatting cue notes}.  But when many cues have to be
2520 inserted, for example, as an aid to a conductor in a vocal score,
2521 the instrument name must be positioned carefully just before and
2522 close to the start of the cue notes.  The following example shows
2523 how this is done.
2524
2525 @lilypond[quote,verbatim]
2526 flute = \relative c'' {
2527   s4 s4 e g
2528 }
2529 \addQuote "flute" { \flute }
2530
2531 pianoRH = \relative c'' {
2532   c4. g8
2533   % position name of cue-ing instrument just before the cue notes,
2534   % and above the staff
2535   s1*0^\markup { \right-align { \tiny "Flute" } }
2536   \cueDuring "flute" #UP { g4 bes4 }
2537 }
2538 pianoLH = \relative c { c4 <c' e> e, <g c> }
2539
2540 \score {
2541   \new PianoStaff <<
2542     \new Staff {
2543       \pianoRH
2544     }
2545     \new Staff {
2546       \clef "bass"
2547       \pianoLH
2548     }
2549   >>
2550 }
2551 @end lilypond
2552
2553 If a transposing instrument is being quoted the instrument part should
2554 specify its key so the conversion of its cue notes will be done
2555 automatically.  The example below shows this transposition for a
2556 B-flat clarinet.  The notes in this example are low on the staff so
2557 @code{DOWN} is specified in @code{\cueDuring} (so the stems are
2558 down) and the instrument name is positioned below the staff.  Note
2559 also that the piano right-hand voice is explicitly declared.  This
2560 is because the cue notes in this example begin at the start of the
2561 first bar and this would otherwise cause the entire piano right-hand
2562 notes to be placed in a @code{CueVoice} context.
2563
2564 @lilypond[quote,verbatim]
2565 clarinet = \relative c' {
2566   \transposition bes
2567   fis4 d d c
2568 }
2569 \addQuote "clarinet" { \clarinet }
2570
2571 pianoRH = \relative c'' {
2572   \transposition c'
2573   % position name of cue-ing instrument below the staff
2574   s1*0_\markup { \right-align { \tiny "Clar." } }
2575   \cueDuring "clarinet" #DOWN { c4. g8 }
2576   g4 bes4
2577 }
2578 pianoLH = \relative c { c4 <c' e> e, <g c> }
2579
2580 \score {
2581   <<
2582     \new PianoStaff <<
2583       \new Staff {
2584         \new Voice {
2585           \pianoRH
2586         }
2587       }
2588       \new Staff {
2589         \clef "bass"
2590         \pianoLH
2591       }
2592     >>
2593   >>
2594 }
2595 @end lilypond
2596
2597 From these two examples it is clear that inserting many cues in a
2598 Vocal Score would be tedious, and the notes of the piano part would
2599 become obscured.  However, as the following snippet shows, it is
2600 possible to define a music function to reduce the amount of typing
2601 and to make the piano notes clearer.
2602
2603 @snippets
2604 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2605 {adding-orchestral-cues-to-a-vocal-score.ly}
2606
2607 @seealso
2608 Musical Glossary:
2609 @rglos{cue-notes}.
2610
2611 Notation Reference:
2612 @ref{Aligning objects},
2613 @ref{Direction and placement},
2614 @ref{Formatting cue notes},
2615 @ref{Quoting other voices},
2616 @ref{Using music functions}.
2617
2618 Snippets:
2619 @rlsr{Vocal music}.
2620
2621 Internals Reference:
2622 @rinternals{InstrumentSwitch},
2623 @rinternals{CueVoice}.
2624
2625 @knownissues
2626 @code{\cueDuring} automatically inserts a @code{CueVoice} context
2627 and all cue notes are placed in that context.  This means it is not
2628 possible to have two overlapping sequences of cue notes by this
2629 technique.  Overlapping sequences could be entered by explicitly
2630 declaring separate @code{CueVoice} contexts and using
2631 @code{\quoteDuring} to extract and insert the cue notes.
2632
2633
2634 @node Spoken music
2635 @unnumberedsubsubsec Spoken music
2636
2637 @cindex parlato
2638 @cindex Sprechgesang
2639 Such effects as @q{parlato} or @q{Sprechgesang} require performers to
2640 speak without pitch but still with rhythm; these are notated by cross
2641 note heads, as demonstrated in @ref{Special note heads}.
2642
2643 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
2644 @c add "showing the rhythm of a melody" snip
2645 @c add "one staff-line notation"
2646 @c add "improvisation" ref
2647 @c add "lyrics independents of notes" ref
2648
2649 @node Dialogue over music
2650 @unnumberedsubsubsec Dialogue over music
2651
2652 Dialogue over music is usually printed over the staves in an italic
2653 font, with the start of each phrase keyed in to a particular music
2654 moment.
2655
2656 For short interjections a simple markup suffices.
2657
2658 @lilypond[quote,verbatim,relative=2]
2659 a4^\markup { \smallCaps { Alex - } \italic { He's gone } } a a a
2660 a4 a a^\markup { \smallCaps { Bethan - } \italic Where? } a
2661 a4 a a a
2662 @end lilypond
2663
2664 For longer phrases it may be necessary to expand the music to make
2665 the words fit neatly.  There is no provision in LilyPond to do this
2666 fully automatically, and some manual intervention to layout the
2667 page will be necessary.
2668
2669 For long phrases or for passages with a lot of closely packed
2670 dialogue, using a Lyrics context will give better results.  The
2671 Lyrics context should not be associated with a music Voice; instead
2672 each section of dialogue should be given an explicit duration.  If
2673 there is a gap in the dialogue, the final word should be separated
2674 from the rest and the duration split between them so that the
2675 underlying music spaces out smoothly.
2676
2677 If the dialogue extends for more than one line it will be necessary
2678 to manually insert @code{\break}s and adjust the placing of the
2679 dialogue to avoid running into the right margin.  The final word of
2680 the last measure on a line should also be separated out, as above.
2681
2682 Here is an example illustrating how this might be done.
2683
2684 @c This should be a snippet, but it can't be as it needs to be
2685 @c manually adjusted to suit the imposed line length.  -td
2686
2687 @lilypond[quote,verbatim,ragged-right]
2688 music = \relative c'' {
2689   \repeat unfold 3 { a4 a a a }
2690 }
2691
2692 dialogue = \lyricmode {
2693   \markup {
2694     \fontsize #1 \upright \smallCaps Abe:
2695     "Say this over measures one and"
2696   }4*7
2697   "two"4 |
2698   \break
2699   "and this over measure"4*3
2700   "three"4 |
2701 }
2702
2703 \score {
2704   <<
2705     \new Lyrics \with {
2706       \override LyricText #'font-shape = #'italic
2707       \override LyricText #'self-alignment-X = #LEFT
2708     }
2709     { \dialogue }
2710     \new Staff {
2711       \new Voice { \music }
2712     }
2713   >>
2714 }
2715 @end lilypond
2716
2717 @c TODO show use of \column to produce dialogue on two lines
2718
2719 @seealso
2720 Notation Reference:
2721 @ref{Manual syllable durations},
2722 @ref{Text}.
2723
2724 Internal Reference:
2725 @rinternals{LyricText}.
2726
2727
2728 @node Chants psalms and hymns
2729 @subsection Chants psalms and hymns
2730
2731 @cindex chants
2732 @cindex psalms
2733 @cindex hymns
2734 @cindex religious music
2735
2736 The music and words for chants, psalms and hymns usually follow a
2737 well-established format in any particular church.  Although the
2738 formats may differ from church to church the type-setting problems
2739 which arise are broadly similar, and are covered in this section.
2740
2741 @menu
2742 * References for chants and psalms::
2743 * Setting a chant::
2744 * Pointing a psalm::
2745 * Partial measures in hymn tunes::
2746 @end menu
2747
2748 @node References for chants and psalms
2749 @unnumberedsubsubsec References for chants and psalms
2750
2751 Typesetting Gregorian chant in various styles of ancient notation
2752 is described in @ref{Ancient notation}.
2753
2754 @seealso
2755 Notation reference:
2756 @ref{Ancient notation}.
2757
2758 Snippets:
2759 @rlsr{Vocal music}.
2760
2761
2762 @node Setting a chant
2763 @unnumberedsubsubsec Setting a chant
2764
2765 Modern chant settings use modern notation with varying numbers of
2766 elements taken from ancient notation.  Some of the elements and
2767 methods to consider are shown here.
2768
2769 Chants often use quarter notes without stems to indicate the pitch,
2770 with the rhythm being taken from the spoken rhythm of the words.
2771
2772 @lilypond[verbatim,quote]
2773 stemOff = { \override Staff.Stem #'transparent = ##t }
2774
2775 \relative c' {
2776   \stemOff
2777   a'4 b c2 |
2778 }
2779
2780 @end lilypond
2781
2782 Chants often omit the bar lines or use shortened or dotted bar
2783 lines to indicate pauses in the music.  To omit all bar lines from
2784 all staves remove the bar line engraver completely:
2785
2786 @lilypond[verbatim,quote]
2787 \score {
2788   \new StaffGroup <<
2789     \new Staff {
2790       \relative c'' {
2791         a4 b c2 |
2792         a4 b c2 |
2793         a4 b c2 |
2794       }
2795     }
2796     \new Staff {
2797       \relative c'' {
2798         a4 b c2 |
2799         a4 b c2 |
2800         a4 b c2 |
2801       }
2802     }
2803   >>
2804   \layout {
2805     \context {
2806       \Staff
2807       \remove Bar_engraver
2808     }
2809   }
2810 }
2811 @end lilypond
2812
2813 Bar lines can also be removed on a staff-by-staff basis:
2814
2815 @lilypond[verbatim, quote]
2816 \score {
2817   \new ChoirStaff <<
2818     \new Staff
2819     \with { \remove Bar_engraver } {
2820       \relative c'' {
2821         a4 b c2 |
2822         a4 b c2 |
2823         a4 b c2 |
2824       }
2825     }
2826     \new Staff {
2827       \relative c'' {
2828         a4 b c2 |
2829         a4 b c2 |
2830         a4 b c2 |
2831       }
2832     }
2833   >>
2834 }
2835 @end lilypond
2836
2837 To remove bar lines from just a section of music treat it as a
2838 cadenza.  If the section is long you may need to insert dummy
2839 bar lines with @code{\bar ""} to show where the line should break.
2840
2841 @lilypond[verbatim,quote,relative=2]
2842 a4 b c2 |
2843 \cadenzaOn
2844 a4 b c2
2845 a4 b c2
2846 \bar ""
2847 a4 b c2
2848 a4 b c2
2849 \cadenzaOff
2850 a4 b c2 |
2851 a4 b c2 |
2852 @end lilypond
2853
2854 Rests or pauses in chants can be indicated by modified bar lines.
2855
2856 @lilypond[verbatim, quote,relative=2]
2857 a4
2858 \cadenzaOn
2859 b c2
2860 a4 b c2
2861 \bar "'"
2862 a4 b c2
2863 a4 b c2
2864 \bar ":"
2865 a4 b c2
2866 \bar "dashed"
2867 a4 b c2
2868 \bar "||"
2869 @end lilypond
2870
2871 Alternatively, the notation used in Gregorian chant for pauses or
2872 rests is sometimes used even though the rest of the notation is
2873 modern.  This uses a modified @code{\breathe} mark:
2874
2875 @lilypond[verbatim,quote]
2876 divisioMinima = {
2877   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-minima
2878   \once \override BreathingSign  #'Y-offset = #0
2879   \breathe
2880 }
2881 divisioMaior = {
2882   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maior
2883   \once \override BreathingSign  #'Y-offset = #0
2884   \breathe
2885 }
2886 divisioMaxima = {
2887   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maxima
2888   \once \override BreathingSign  #'Y-offset = #0
2889   \breathe
2890 }
2891 finalis = {
2892   \once \override BreathingSign  #'stencil = #ly:breathing-sign::finalis
2893   \once \override BreathingSign  #'Y-offset = #0
2894   \breathe
2895 }
2896
2897 \score {
2898   \relative c'' {
2899     g2 a4 g
2900     \divisioMinima
2901     g2 a4 g
2902     \divisioMaior
2903     g2 a4 g
2904     \divisioMaxima
2905     g2 a4 g
2906     \finalis
2907   }
2908   \layout {
2909     \context {
2910       \Staff
2911       \remove Bar_engraver
2912     }
2913   }
2914 }
2915 @end lilypond
2916
2917 Chants usually omit the time signature and often omit the clef too.
2918
2919 @lilypond[verbatim,quote]
2920 \score {
2921   \new Staff {
2922     \relative c'' {
2923       a4 b c2 |
2924       a4 b c2 |
2925       a4 b c2 |
2926     }
2927   }
2928   \layout {
2929     \context {
2930       \Staff
2931       \remove Bar_engraver
2932       \remove Time_signature_engraver
2933       \remove Clef_engraver
2934     }
2935   }
2936 }
2937 @end lilypond
2938
2939 Chants for psalms in the Anglican tradition are usually either
2940 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
2941 of 7 bars.  Each group of 7 bars is divided into two halves,
2942 corresponding to the two halves of each verse, usually separated by
2943 a double bar line.  Only whole and half notes are used.  The 1st bar
2944 in each half always contains a single chord of whole notes.  This is
2945 the @qq{reciting note}.  Chants are usually centered on the page.
2946
2947 @lilypond[verbatim,quote]
2948 SopranoMusic = \relative g' {
2949   g1 | c2 b | a1 | \bar "||"
2950   a1 | d2 c | c b | c1 | \bar "||"
2951 }
2952
2953 AltoMusic = \relative c' {
2954   e1 | g2 g | f1 |
2955   f1 | f2 e | d d | e1 |
2956 }
2957
2958 TenorMusic = \relative a {
2959   c1 | c2 c | c1 |
2960   d1 | g,2 g | g g | g1 |
2961 }
2962
2963 BassMusic =  \relative c {
2964   c1 | e2 e | f1 |
2965   d1 | b2 c | g' g | c,1 |
2966 }
2967
2968 global = {
2969   \time 2/2
2970 }
2971
2972 % Use markup to center the chant on the page
2973 \markup {
2974   \fill-line {
2975     \score {  % centered
2976       <<
2977         \new ChoirStaff <<
2978           \new Staff <<
2979             \global
2980             \clef "treble"
2981             \new Voice = "Soprano" <<
2982               \voiceOne
2983               \SopranoMusic
2984             >>
2985             \new Voice = "Alto" <<
2986               \voiceTwo
2987               \AltoMusic
2988             >>
2989           >>
2990           \new Staff <<
2991             \clef "bass"
2992             \global
2993             \new Voice = "Tenor" <<
2994               \voiceOne
2995               \TenorMusic
2996             >>
2997             \new Voice = "Bass" <<
2998               \voiceTwo
2999               \BassMusic
3000             >>
3001           >>
3002         >>
3003       >>
3004       \layout {
3005         \context {
3006           \Score
3007           \override SpacingSpanner
3008           #'base-shortest-duration = #(ly:make-moment 1 2)
3009         }
3010         \context {
3011           \Staff
3012           \remove "Time_signature_engraver"
3013         }
3014       }
3015     }  % End score
3016   }
3017 }  % End markup
3018 @end lilypond
3019
3020 Some other approaches to setting such a chant are shown in the first
3021 of the following snippets.
3022
3023 @snippets
3024
3025 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3026 {chant-or-psalms-notation.ly}
3027
3028 Canticles and other liturgical texts may be set more freely, and
3029 may use notational elements from ancient music.  Often the words
3030 are shown underneath and aligned with the notes.  If so, the notes
3031 are spaced in accordance with the syllables rather than the notes'
3032 durations.
3033
3034 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3035 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
3036
3037 @seealso
3038 Learning Manual:
3039 @rlearning{Visibility and color of objects},
3040 @rlearning{Vocal ensembles}.
3041
3042 Notation Reference:
3043 @ref{Ancient notation},
3044 @ref{Bar lines},
3045 @ref{Modifying context plug-ins},
3046 @ref{Typesetting Gregorian chant},
3047 @ref{Unmetered music},
3048 @ref{Visibility of objects}.
3049
3050
3051 @node Pointing a psalm
3052 @unnumberedsubsubsec Pointing a psalm
3053
3054 The words to an Anglican psalm are usually printed in separate
3055 verses centered underneath the chant.
3056
3057 Single chants (with 7 bars) are repeated for every verse.  Double
3058 chants (with 14 bars) are repeated for every pair of verses.  Marks
3059 are inserted in the words to show how they should be fitted to the
3060 chant.  Each verse is divided into two halves.  A colon is usually
3061 used to indicate this division.  This corresponds to the double bar
3062 line in the music.  The words before the colon are sung to the first
3063 three bars of music; the words after the colon are sung to the last
3064 four bars.
3065
3066 Single bar lines (or in some psalters an inverted comma or similar
3067 symbol) are inserted between words to indicate where the bar lines
3068 in the music fall.  In markup mode a single bar line can be entered
3069 with the bar check symbol, @code{|}.
3070
3071 @lilypond[verbatim,quote]
3072 \markup {
3073   \fill-line {
3074     \column {
3075       \left-align {
3076         \line { O come let us sing | unto the | Lord : let }
3077         \line { us heartily rejoice in the | strength of | our }
3078         \line { sal- | -vation. }
3079       }
3080     }
3081   }
3082 }
3083 @end lilypond
3084
3085 Other symbols may require glyphs from the @code{fetaMusic} fonts.
3086 For details, see @ref{Fonts}.
3087
3088 @lilypond[verbatim,quote]
3089 tick = \markup {
3090   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3091 }
3092 \markup {
3093   \fill-line {
3094     \column {
3095       \left-align {
3096         \line { O come let us sing \tick unto the \tick Lord : let }
3097         \line {
3098           us heartily rejoice in the \tick strength of \tick our
3099         }
3100         \line { sal \tick vation. }
3101       }
3102     }
3103   }
3104 }
3105 @end lilypond
3106
3107 Where there is one whole note in a bar all the words corresponding
3108 to that bar are recited on that one note in speech rhythm.  Where
3109 there are two notes in a bar there will usually be only one or two
3110 corresponding syllables.  If there are more that two syllables a
3111 dot is usually inserted to indicate where the change in note occurs.
3112
3113 @lilypond[verbatim,quote]
3114 dot = \markup {
3115   \raise #0.7 \musicglyph #"dots.dot"
3116 }
3117 tick = \markup {
3118   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3119 }
3120 \markup {
3121   \fill-line {
3122     \column {
3123       \left-align {
3124         \line {
3125           O come let us sing \tick unto \dot the \tick Lord : let
3126         }
3127         \line {
3128           us heartily rejoice in the \tick strength of \tick our
3129         }
3130         \line { sal \tick vation. }
3131       }
3132     }
3133   }
3134 }
3135 @end lilypond
3136
3137 In some psalters an asterisk is used to indicate a break in a
3138 recited section instead of a comma, and stressed or slightly
3139 lengthened syllables are indicated in bold text.
3140
3141 @lilypond[verbatim,quote]
3142 dot = \markup {
3143   \raise #0.7 \musicglyph #"dots.dot"
3144 }
3145 tick = \markup {
3146   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3147 }
3148 \markup {
3149   \fill-line {
3150     \column {
3151       \left-align {
3152         \line { Today if ye will hear his voice * }
3153         \line {
3154           \concat { \bold hard en }
3155           | not your | hearts : as in the pro-
3156         }
3157         \line { vocation * and as in the \bold day of tempt- | }
3158         \line { -ation | in the | wilderness. }
3159       }
3160     }
3161   }
3162 }
3163 @end lilypond
3164
3165 In other psalters an accent is placed over the syllable to indicate
3166 stress.
3167
3168 @lilypond[verbatim,quote]
3169 tick = \markup {
3170   \raise #2 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3171 }
3172 \markup {
3173   \fill-line {
3174     \column {
3175       \left-align {
3176         \line {
3177           O come let us \concat {
3178             si \combine \tick ng
3179           }
3180           | unto the | Lord : let
3181         }
3182         \line {
3183           us heartily \concat {
3184             rejo \combine \tick ice
3185           }
3186           in the | strength of | our
3187         }
3188         \line { sal- | -vation. }
3189       }
3190     }
3191   }
3192 }
3193 @end lilypond
3194
3195 The use of markup to center text, and arrange lines in columns is
3196 described in @ref{Formatting text}.
3197
3198 Most of these elements are shown in one or other of the two verses
3199 in the template, see @qq{Psalms} in @rlearning{Vocal ensembles}.
3200
3201 @seealso
3202 Learning Manual:
3203 @rlearning{Vocal ensembles}.
3204
3205 Notation Reference:
3206 @ref{Fonts},
3207 @ref{Formatting text}.
3208
3209
3210 @node Partial measures in hymn tunes
3211 @unnumberedsubsubsec Partial measures in hymn tunes
3212
3213 Hymn tunes frequently start and end every line of music with
3214 partial measures so that each line of music corresponds exactly
3215 with a line of text.  This requires a @code{\partial} command at
3216 the start of the music and @code{\bar "|"} or @code{\bar "||"}
3217 commands at the end of each line.
3218
3219 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3220 {hymn-template.ly}
3221
3222
3223 @node Ancient vocal music
3224 @subsection Ancient vocal music
3225
3226 Ancient vocal music is supported, as explained in
3227 @ref{Ancient notation}.
3228
3229 @c TODO
3230
3231 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
3232 @c and "Transcription of Ancient music with incipit" snippet. -vv
3233
3234 @seealso
3235 Notation Reference:
3236 @ref{Ancient notation}.
3237
3238
3239
3240