]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/vocal.itely
dae31bd36d56cac3c76f7b1b722cb8b027608386
[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.12.0"
11
12 @node Vocal music
13 @section Vocal music
14
15 @c TODO: inspirational headword
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 * Skipping notes::
47 * Extenders and hyphens::
48 @end menu
49
50
51 @node References for vocal music
52 @unnumberedsubsubsec References for vocal music
53
54 This section indicates where to find details of notation issues
55 that may arise in any type of vocal music.
56
57 @itemize
58
59 @item
60 Most styles of vocal music use written text as lyrics.  An introduction
61 to this notation is to be found in @rlearning{Setting simple songs}.
62
63 @item
64 Vocal music is likely to require the use of @code{markup} mode, either
65 for lyrics of for other text elements (character's names, etc.).
66 This syntax is described in @ref{Text markup introduction}.
67
68 @item
69 @notation{Ambitus} may be added at the beginning of vocal staves, as explained
70 in @ref{Ambitus}.
71
72 @end itemize
73
74 @seealso
75 Music Glossary:
76 @rglos{ambitus}.
77
78 @node Entering lyrics
79 @unnumberedsubsubsec Entering lyrics
80
81 Lyrics are entered in lyric mode.  This section explains how this
82 done.
83
84 @cindex lyrics
85 @funindex \lyricmode
86 @cindex punctuation
87 @cindex spaces, in lyrics
88 @cindex quotes, in lyrics
89
90 @c TODO: this section is to be rewritten.
91 Since LilyPond input files are text, there is at least one
92 issue to consider when working with vocal music:
93 song texts must be interpreted as text, not notes.  For example, the
94 input@tie{}@code{d} should be interpreted as a one letter syllable,
95 not the note@tie{}D.
96 Therefore, a special lyric mode has to be used, either explicitly
97 or using some abbreviated methods.
98
99 Lyrics are entered in a special input mode, which can be introduced
100 by the keyword @code{\lyricmode}, or by using @code{\addlyrics} or
101 @code{\lyricsto}.  In this mode you can enter lyrics,
102 with punctuation and accents, and the input @code{d} is not parsed as
103 a pitch, but rather as a one letter syllable.  Syllables are entered
104 like notes, but with pitches replaced by text.  For example,
105
106 @example
107 \lyricmode @{ Twin-4 kle4 twin- kle litt- le star2 @}
108 @end example
109
110 There are two main methods to specify the horizontal placement
111 of the syllables, either by specifying the duration of each syllable
112 explicitly, like in the example above, or by automatically aligning
113 the lyrics to a melody or other voice of music, using @code{\addlyrics}
114 or @code{\lyricsto}.
115 @c  TODO: broken
116 @c For more details see @ref{The Lyrics context}.
117
118 A word or syllable of lyrics begins with an alphabetic character, and ends
119 with
120 any space or digit.  The following characters can be any character
121 that is not a digit or white space.
122
123 Any character that is not a digit or white space will be regarded as
124 part of the syllable; one important consequence of this is that a word
125 can end with @code{@}}, which often leads to the following mistake:
126
127 @example
128 \lyricmode @{ lah- lah@}
129 @end example
130
131 In this example, the @code{@}} is included in the final syllable, so the
132 opening brace is not balanced and the input file will probably not
133 compile.
134
135
136 @funindex \property in \lyricmode
137
138 @noindent
139 Similarly, a period which follows an alphabetic sequence is included in
140 the resulting string.  As a consequence, spaces must be inserted around
141 property commands: do @emph{not} write
142
143 @example
144 \override Score.LyricText #'font-shape = #'italic
145 @end example
146
147 @noindent
148 but instead use
149
150 @example
151 \override Score . LyricText #'font-shape = #'italic
152 @end example
153
154 To enter lyrics with characters from non-English languages, or with
155 accented and special characters (such as the heart symbol or slanted quotes),
156 simply insert the characters directly into the input file and save
157 it with UTF-8 encoding.  See @ref{Text encoding}, for more info.
158
159 @lilypond[quote,ragged-right,fragment,verbatim]
160 \relative c' { e4 f e d e f e2 }
161 \addlyrics { He said: “Let my peo ple go”. }
162 @end lilypond
163
164 To use normal quotes in lyrics, add a backslash before the
165 quotes.  For example,
166
167 @lilypond[quote,ragged-right,fragment,verbatim]
168 \relative c' { \time 3/4 e4 e4. e8 d4 e d c2. }
169 \addlyrics { "\"I" am so lone- "ly\"" said she }
170 @end lilypond
171
172 The full definition of a word start in Lyrics mode is somewhat more
173 complex.
174
175 A word in Lyrics mode begins with: an alphabetic character, @code{_},
176 @code{?}, @code{!}, @code{:}, @code{'}, the control characters @code{^A}
177 through @code{^F}, @code{^Q} through @code{^W}, @code{^Y}, @code{^^},
178 any 8-bit character with ASCII code over 127, or a two-character
179 combination of a backslash followed by one of @code{`}, @code{'},
180 @code{"}, or @code{^}.
181
182 @c " to balance double quotes for not-so-bright context-sensitive editors
183
184 To define variables containing lyrics, the function @code{lyricmode}
185 must be used.
186
187 @example
188 verseOne = \lyricmode @{ Joy to the world the Lord is come @}
189 \score @{
190   <<
191     \new Voice = "one" \relative c'' @{
192       \autoBeamOff
193       \time 2/4
194       c4 b8. a16 g4. f8 e4 d c2
195     @}
196     \addlyrics @{ \verseOne @}
197   >>
198 @}
199 @end example
200
201
202 @seealso
203 Notation Reference:
204 @ref{Fonts}.
205
206 Internals Reference:
207 @rinternals{LyricText},
208 @rinternals{LyricSpace}.
209
210
211 @node Aligning lyrics to a melody
212 @unnumberedsubsubsec Aligning lyrics to a melody
213
214 @funindex \lyricmode
215 @funindex \addlyrics
216 @funindex \lyricsto
217
218 @c TODO: this stuff is to be rewritten. -vv
219
220 Aligning of text with melodies can be made automatically, but if you
221 specify the durations of the syllables it can also be made manually.
222 Lyrics aligning and typesetting are prepared with the help of skips,
223 hyphens and extender lines.
224
225 Lyrics are printed by interpreting them in the context called
226 @code{Lyrics}; see @rinternals{Lyrics}, for more.
227
228 @example
229 \new Lyrics \lyricmode @dots{}
230 @end example
231
232 There are two main methods to specify the horizontal placement
233 of the syllables:
234
235 @itemize
236 @item
237 by automatically aligning
238 the lyrics to a melody or other voice of music, using @code{\addlyrics}
239 or @code{\lyricsto}
240
241 @item
242 or by specifying the duration of each syllable
243 explicitly, using @code{\lyricmode}
244 @end itemize
245
246 The @code{Voice} context containing the melody to which the lyrics
247 are being aligned must not have @qq{died}, or the lyrics after that
248 point will be lost.  This can happen if there are periods when that
249 voice has nothing to do.  For methods of keeping contexts alive, see
250 @ref{Keeping contexts alive}.
251
252
253 @node Automatic syllable durations
254 @unnumberedsubsubsec Automatic syllable durations
255
256 @cindex syllable durations, automatic
257 @cindex lyrics and melodies
258
259 The lyrics can be aligned under a given melody
260 automatically.  This is achieved by combining the
261 melody and the lyrics with the @code{\lyricsto} expression
262
263 @example
264 \new Lyrics \lyricsto @var{name} @dots{}
265 @end example
266
267 @noindent
268 This aligns the lyrics to the
269 notes of the @code{Voice} context called @var{name}, which must
270 already exist.  Therefore normally the @code{Voice} is specified first, and
271 then the lyrics are specified with @code{\lyricsto}.  The command
272 @code{\lyricsto} switches to @code{\lyricmode} mode automatically, so the
273 @code{\lyricmode} keyword may be omitted.
274
275 The following example uses different commands for entering lyrics.
276
277 @lilypond[quote,fragment,ragged-right,verbatim]
278 <<
279   \new Voice = "one" \relative c'' {
280     \autoBeamOff
281     \time 2/4
282     c4 b8. a16 g4. f8 e4 d c2
283   }
284
285 % not recommended: left-aligned syllables
286   \new Lyrics \lyricmode { Joy4 to8. the16 world!4. the8 Lord4 is come.2 }
287
288 % wrong: durations needed
289   \new Lyrics \lyricmode { Joy to the earth! the Sa -- viour reigns. }
290
291 %correct
292   \new Lyrics \lyricsto "one" { No more let sins and sor -- rows grow. }
293 >>
294 @end lilypond
295
296 The second stanza is not properly aligned because the durations
297 were not specified.  A solution for that would be to use @code{\lyricsto}.
298
299 @cindex \addlyrics
300
301 The @code{\addlyrics} command is actually just a convenient way
302 to write a more complicated LilyPond structure that sets up the
303 lyrics.
304
305 @example
306 @{ MUSIC @}
307 \addlyrics @{ LYRICS @}
308 @end example
309
310 @noindent
311 is the same as
312
313 @example
314 \new Voice = "blah" @{ music @}
315 \new Lyrics \lyricsto "blah" @{ LYRICS @}
316 @end example
317
318 Here is an example,
319
320 @lilypond[ragged-right,verbatim,fragment,quote]
321 \time 3/4
322 \relative c' { c2 e4 g2. }
323 \addlyrics { play the game }
324 @end lilypond
325
326 More stanzas can be added by adding more
327 @code{\addlyrics} sections
328
329 @lilypond[ragged-right,verbatim,fragment,quote]
330 \time 3/4
331 \relative c' { c2 e4 g2. }
332 \addlyrics { play the game }
333 \addlyrics { speel het spel }
334 \addlyrics { joue le jeu }
335 @end lilypond
336
337 The command @code{\addlyrics} cannot handle polyphony settings.
338 For these cases you should use @code{\lyricsto} and
339 @code{\lyricmode}, for details see @ref{Entering lyrics}.
340
341 @node Manual syllable durations
342 @unnumberedsubsubsec Manual syllable durations
343
344 Lyrics can also be entered without @code{\addlyrics} or
345 @code{\lyricsto}.  In this case,
346 syllables are entered like notes -- but with pitches replaced by text -- and the
347 duration of each syllable must be entered explicitly.  For example:
348
349 @example
350 play2 the4 game2.
351 sink2 or4 swim2.
352 @end example
353
354 The alignment to a melody can be specified with the
355 @code{associatedVoice} property,
356
357 @example
358 \set associatedVoice = #"lala"
359 @end example
360
361 @noindent
362 The value of the property (here: @code{"lala"}) should be the name of
363 a @code{Voice} context.  Without this setting, extender lines
364 will not be formatted properly.
365
366 Here is an example demonstrating manual lyric durations,
367
368 @lilypond[relative=1,ragged-right,verbatim,fragment,quote]
369 << \new Voice = "melody" {
370     \time 3/4
371     c2 e4 g2.
372  }
373  \new Lyrics \lyricmode {
374    \set associatedVoice = #"melody"
375    play2 the4 game2.
376  } >>
377 @end lilypond
378
379
380 @seealso
381 Notation Reference:
382 @ref{Keeping contexts alive}.
383
384 Internals Reference:
385 @rinternals{Lyrics},
386 @rinternals{Voice}.
387
388
389 @node Multiple syllables to one note
390 @unnumberedsubsubsec Multiple syllables to one note
391
392 @funindex _
393 @cindex spaces, in lyrics
394 @cindex quotes, in lyrics
395 @cindex ties, in lyrics
396
397 In order to assign more than one syllable to a single note with
398 spaces between the syllables, you can surround the phrase with
399 quotes or use a @code{_} character.  Alternatively, you can use
400 code the tilde  symbol (@code{~}) to get a lyric tie.  The lyric
401 tie is implemented with the Unicode character U+203F, so be
402 sure to have a font (like DejaVuLGC) installed that includes this
403 glyph.
404
405 @lilypond[quote,ragged-right,fragment,verbatim]
406 \time 3/4
407 \relative c' { c2 e4 g2 e4 }
408 \addlyrics { gran- de_a- mi- go }
409 \addlyrics { pu- "ro y ho-" nes- to }
410 \addlyrics { pu- ro~y~ho- nes- to }
411 @end lilypond
412
413
414 @seealso
415 Internals Reference:
416 @rinternals{LyricCombineMusic}.
417
418
419 @c Here come the section which used to be "Melismata"
420 @c the new title might be more self-explanatory
421
422
423 @node Multiple notes to one syllable
424 @unnumberedsubsubsec Multiple notes to one syllable
425
426 @cindex melisma
427 @cindex melismata
428 @cindex phrasing, in lyrics
429
430 Sometimes, particularly in Medieval music, several notes are to be sung on one
431 single syllable; such vocalises are called melismas, or melismata.
432
433 @c this method seems to be the simplest; therefore
434 @c it might be better to present it first - vv
435
436 You can define melismata entirely in the lyrics, by entering @code{_}
437 for every extra note that has to be added to the melisma.
438
439 @c TODO: clarify: __ is used to crate a lyric extender,
440 @c _ is used to add a note to a melisma, so both __ and _ are needed.
441
442 @c verbose! --FV
443 @c duplicated: TODO fix
444 Additionally, you can make an extender line to be typeset to indicate
445 the melisma in the score, writing a double underscore next to the
446 first syllable of the melisma.  This example shows the three elements
447 that are used for this purpose (all of them surrounded by spaces):
448 double hyphens to separate syllables in a word, underscores to add
449 notes to a melisma, and a double underscore to put an extender line.
450
451 @c wrong: extender line only on last syllable of a word.  Change example
452 @lilypond[relative=1,verbatim,fragment,quote]
453 { \set melismaBusyProperties = #'()
454  c d( e) f f( e) e e  }
455 \addlyrics
456  { Ky -- _ _ ri __ _ _ _  e }
457 @end lilypond
458
459 In this case, you can also have ties and slurs in the melody if you
460 set @code{melismaBusyProperties}, as is done in the example above.
461
462 However, the @code{\lyricsto} command can also
463 detect melismata automatically: it only puts one
464 syllable under a tied or slurred group of notes.  If you want to force
465 an unslurred group of notes to be a melisma, insert @code{\melisma}
466 after the first note of the group, and @code{\melismaEnd} after the
467 last one, e.g.,
468
469 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
470 <<
471   \new Voice = "lala" {
472     \time 3/4
473     f4 g8
474     \melisma
475     f e f
476     \melismaEnd
477     e2
478   }
479   \new Lyrics \lyricsto "lala" {
480     la di __ daah
481   }
482 >>
483 @end lilypond
484
485 In addition, notes are considered a melisma if they are manually
486 beamed, and automatic beaming (see @ref{Setting automatic beam
487 behavior}) is switched off.
488
489 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
490 <<
491   \new Voice = "lala" {
492     \time 3/4
493     \autoBeamOff
494     f4 g8[ f e f]
495     e2
496   }
497   \new Lyrics \lyricsto "lala" {
498     la di __ daah
499   }
500 >>
501 @end lilypond
502
503 @c TODO: this now links to LM -vv
504 @c   umm, yeah... so what?  -gp
505
506 @cindex SATB
507 @cindex choral score
508
509 A complete example of a SATB score setup is in
510 @rlearning{Vocal ensembles}.
511
512
513 @predefined
514 @funindex \melisma
515 @code{\melisma},
516 @funindex \melismaEnd
517 @code{\melismaEnd}.
518 @endpredefined
519
520
521 @c @seealso
522 @c @lsr{vocal,lyric@/-combine.ly}.
523
524
525 @knownissues
526
527 Melismata are not detected automatically, and extender lines must be
528 inserted by hand.
529
530 @node Skipping notes
531 @unnumberedsubsubsec Skipping notes
532
533 Making a lyric line run slower than the melody can be achieved by
534 inserting @code{\skip}s into the lyrics.  For every @code{\skip},
535 the text will be delayed another note.  The @code{\skip} command
536 must be followed by a valid duration, but this is ignored when
537 @code{\skip} is used in lyrics.
538
539 @lilypond[verbatim,ragged-right,quote]
540 \relative c' { c c g' }
541 \addlyrics {
542   twin -- \skip 4
543   kle
544 }
545 @end lilypond
546
547
548 @node Extenders and hyphens
549 @unnumberedsubsubsec Extenders and hyphens
550
551 @cindex melisma
552 @cindex extender
553
554 @c leave this as samp. -gp
555 In the last syllable of a word, melismata are sometimes indicated with
556 a long horizontal line starting in the melisma syllable, and ending in
557 the next one.  Such a line is called an extender line, and it is
558 entered as @samp{ __ } (note the spaces before and after the two
559 underscore characters).
560
561 @warning{Melismata are indicated in the score with extender lines,
562 which are entered as one double underscore; but short melismata can
563 also be entered by skipping individual notes, which are entered as
564 single underscore characters; these do not make an extender line to be
565 typeset by default.}
566
567 @cindex hyphens
568
569 @c leave this as samp. -gp
570 Centered hyphens are entered as @samp{ -- } between syllables of a same word
571 (note the spaces before and after the two hyphen characters).  The hyphen
572 will be centered between the syllables, and its length will be adjusted
573 depending on the space between the syllables.
574
575 In tightly engraved music, hyphens can be removed.  Whether this
576 happens can be controlled with the @code{minimum-distance} (minimum
577 distance between two syllables) and the @code{minimum-length}
578 (threshold below which hyphens are removed).
579
580
581 @seealso
582 Internals Reference:
583 @rinternals{LyricExtender},
584 @rinternals{LyricHyphen}.
585
586
587 @node Techniques specific to lyrics
588 @subsection Techniques specific to lyrics
589
590 @c TODO This whole section is to be reorganized. -vv
591
592 @menu
593 * Working with lyrics and variables::
594 * Lyrics and repeats::
595 * Divisi lyrics::
596 * Lyrics independent of notes::
597 * Spacing out syllables::
598 * Placement of lyrics between staves::
599 @end menu
600
601
602
603 @node Working with lyrics and variables
604 @unnumberedsubsubsec Working with lyrics and variables
605
606 @cindex lyrics, variables
607
608 To define variables containing lyrics, the function @code{\lyricmode}
609 must be used.  You do not have to enter durations though, if you add
610 @code{\addlyrics} or @code{\lyricsto}
611 when invoking your variable.
612
613 @example
614 verseOne = \lyricmode @{ Joy to the world the Lord is come @}
615 \score @{
616  <<
617    \new Voice = "one" \relative c'' @{
618      \autoBeamOff
619      \time 2/4
620      c4 b8. a16 g4. f8 e4 d c2
621    @}
622    \addlyrics @{ \verseOne @}
623  >>
624 @}
625 @end example
626
627 For different or more complex orderings, the best way is to set up the
628 hierarchy of staves and lyrics first, e.g.,
629 @example
630 \new ChoirStaff <<
631   \new Voice = "soprano" @{ @emph{music} @}
632   \new Lyrics = "sopranoLyrics" @{ s1 @}
633   \new Lyrics = "tenorLyrics" @{ s1 @}
634   \new Voice = "tenor" @{ @emph{music} @}
635 >>
636 @end example
637
638 @noindent
639 and then combine the appropriate melodies and lyric lines
640
641 @example
642 \context Lyrics = sopranoLyrics \lyricsto "soprano"
643 @emph{the lyrics}
644 @end example
645
646 @noindent
647 The final input would resemble
648
649 @example
650 <<\new ChoirStaff << @emph{setup the music} >>
651  \lyricsto "soprano" @emph{etc}
652  \lyricsto "alto" @emph{etc}
653 @emph{etc}
654 >>
655 @end example
656
657 @ignore
658 @c TODO
659 http://code.google.com/p/lilypond/issues/detail?id=329
660 The problem cannot be reproduced.
661 The following has no sense, because the issue seems to be fixed.
662 A comment is in tracker waiting for response ---FV
663
664
665 Be careful when defining a variable with lyrics that creates a new
666 context, for example, using the deprecated @code{\lyrics} command.  See
667 the next erroneous example:
668
669 @example
670 words = \lyrics{ %warning: this creates a new context
671  one two
672 }
673 <<
674   \new Voice = "sop" { c1 }
675   \new Lyrics \lyricsto "sop" { \words }
676   \new Voice = "alt" { c2 c }
677   \new Lyrics \lyricsto "alt" { \words }
678 >>
679 @end example
680
681 the problem is that \lyricsto will try to connect the "sop" melody with the context
682 created by "\new Lyrics".
683
684 Then \lyrics in \words creates another context, and the original "\new Lyrics" one
685 remains empty.
686
687 @end ignore
688
689
690 @seealso
691 @c TODO: document \new Staff << Voice \lyricsto >> bug
692 Internals Reference:
693 @rinternals{LyricCombineMusic},
694 @rinternals{Lyrics}.
695
696
697 @node Lyrics and repeats
698 @unnumberedsubsubsec Lyrics and repeats
699
700 @cindex repeats and lyrics
701
702 @c see http://lists.gnu.org/archive/html/lilypond-user/2010-07/msg00022.html
703 @c see http://lists.gnu.org/archive/html/lilypond-user/2010-06/msg00472.html
704
705 @subheading Simple repeats
706
707 Repeats in @emph{music} are fully described elsewhere; see
708 @ref{Repeats}.  This section explains how to add lyrics to repeated
709 sections of music.
710
711 Lyrics to a volta repeat can be written exactly as if the music was
712 not repeated, if the words are unchanged.
713
714 @lilypond[verbatim,quote]
715 \score {
716   <<
717     \new Staff {
718       \new Voice = "melody" {
719         \relative c'' {
720           a4 a a a
721           \repeat volta 2 { b4 b b b }
722         }
723       }
724     }
725     \new Lyrics {
726       \lyricsto "melody" {
727         Not re -- peat -- ed.
728         Re -- peat -- ed twice.
729       }
730     }
731   >>
732 }
733 @end lilypond
734
735 But if an unfold repeat is used, both the lyrics and the music must
736 be repeated (assuming the repeated words are the same), otherwise
737 the repeated section will have no lyrics.
738
739 @lilypond[verbatim,quote]
740 \score {
741   <<
742     \new Staff {
743       \new Voice = "melody" {
744         \relative c'' {
745           a4 a a a
746           \repeat unfold 2 { b4 b b b }
747         }
748       }
749     }
750     \new Lyrics {
751       \lyricsto "melody" {
752         Not re -- peat -- ed.
753         \repeat unfold 2 { Re -- peat -- ed twice. }
754       }
755     }
756   >>
757 }
758 @end lilypond
759
760 If the repeated section has different words and is unfolded simply
761 enter all the words:
762
763 @lilypond[verbatim,quote,ragged-right]
764 \score {
765   <<
766     \new Staff {
767       \new Voice = "melody" {
768         \relative c'' {
769           a4 a a a
770           \repeat unfold 2 { b4 b b b }
771         }
772       }
773     }
774     \new Lyrics {
775       \lyricsto "melody" {
776         Not re -- peat -- ed.
777         The first time words.
778         Sec -- ond time words.
779       }
780     }
781   >>
782 }
783 @end lilypond
784
785 When the words to a repeated volta section are different the words
786 to each repeat must entered in separate @code{Lyrics} contexts.
787 Earlier unrepeated sections must be skipped in the second and
788 subsequent repeats.  The easiest way to skip several notes is to
789 use @code{\repeat unfold} around the @code{\skip}.
790
791 @warning{The @code{\skip} command must be followed by a number,
792 but this number is ignored in lyric mode.  Each @code{\skip} skips
793 a single note of any value, irrespective of the value of the
794 following number.}
795
796 @lilypond[verbatim,quote]
797 \score {
798   <<
799     \new Staff {
800       \new Voice = "melody" {
801         \relative c'' {
802           a4 a a a
803           \repeat volta 2 { b4 b b b }
804         }
805       }
806     }
807     \new Lyrics {
808       \lyricsto "melody" {
809         Not re -- peat -- ed.
810         The first time words.
811       }
812     }
813     \new Lyrics {
814       \lyricsto "melody" {
815         % skip 4 notes of any duration
816         \repeat unfold 4 { \skip 1 }
817         Sec -- ond time words.
818       }
819     }
820   >>
821 }
822 @end lilypond
823
824 An alternative way, which avoids having to count notes, is to use a
825 temporary voice for the repeated section.  This may be useful if
826 the earlier sections are still subject to change.  A temporary voice
827 can be inserted anywhere in the main music stream in parallel with
828 it, as shown below, but it may be necessary to keep the main voice
829 alive in complex scores when using this technique; see
830 @ref{Keeping contexts alive}.
831
832 @lilypond[verbatim,quote,ragged-right]
833 \score {
834   <<
835     \new Staff {
836       \new Voice = "singleVoice" {
837         \relative c'' { a4 a a a }
838         \new Voice = "repeatVoice" {
839           \relative c'' \repeat volta 3 { b4 b b b }
840         }
841         \relative c'' { c4 c c c }
842       }
843     }
844     \new Lyrics <<
845       \lyricsto "singleVoice" {
846         Not re -- peat -- ed.
847         The end sec -- tion.
848       }
849       \lyricsto "repeatVoice" {
850         The first time words.
851       }
852     >>
853     \new Lyrics {
854       \lyricsto "repeatVoice" {
855         Sec -- ond time words.
856       }
857     }
858     \new Lyrics {
859       \lyricsto "repeatVoice" {
860         The third time words.
861       }
862     }
863   >>
864 }
865 @end lilypond
866
867 @c TODO lowering a common line of lyrics
868
869 @subheading Repeats with alternative endings
870
871 TBC
872
873
874 @node Divisi lyrics
875 @unnumberedsubsubsec Divisi lyrics
876
877 You can display alternate (or divisi) lyrics by naming voice
878 contexts and attaching lyrics to those specific contexts.
879
880 @lilypond[verbatim,ragged-right,quote]
881 \score{ <<
882   \new Voice = "melody" {
883     \relative c' {
884       c4
885       <<
886         { \voiceOne c8 e }
887         \new Voice = "splitpart" { \voiceTwo c4 }
888       >>
889       \oneVoice c4 c | c
890     }
891   }
892   \new Lyrics \lyricsto "melody" { we shall not o- ver- come }
893   \new Lyrics \lyricsto "splitpart" { will }
894 >> }
895 @end lilypond
896
897
898 You can use this trick to display different lyrics for a repeated
899 section.
900
901 @lilypond[verbatim,ragged-right,quote]
902 \score{ <<
903   \new Voice = "melody" \relative c' {
904     c2 e | g e | c1 |
905     \new Voice = "verse" \repeat volta 2 {c4 d e f | g1 | }
906     a2 b | c1}
907   \new Lyrics = "mainlyrics" \lyricsto melody \lyricmode {
908     do mi sol mi do
909     la si do }
910   \context Lyrics = "mainlyrics" \lyricsto verse \lyricmode {
911    do re mi fa sol }
912   \new Lyrics = "repeatlyrics" \lyricsto verse \lyricmode {
913    dodo rere mimi fafa solsol }
914 >>
915 }
916 @end lilypond
917
918
919
920 @node Lyrics independent of notes
921 @unnumberedsubsubsec Lyrics independent of notes
922
923 @cindex Devnull context
924
925 In some complex vocal music, it may be desirable to place
926 lyrics completely independently of notes.  Music defined
927 inside @code{lyricrhythm} disappears into the
928 @code{Devnull} context, but the rhythms can still be used
929 to place the lyrics.
930
931 @lilypond[quote,verbatim,ragged-right]
932 voice = {
933   c''2
934   \tag #'music { c''2 }
935   \tag #'lyricrhythm { c''4. c''8 }
936   d''1
937 }
938
939 lyr = \lyricmode { I like my cat! }
940
941 <<
942   \new Staff \keepWithTag #'music \voice
943   \new Devnull="nowhere" \keepWithTag #'lyricrhythm \voice
944   \new Lyrics \lyricsto "nowhere" \lyr
945   \new Staff { c'8 c' c' c' c' c' c' c'
946   c' c' c' c' c' c' c' c' }
947 >>
948 @end lilypond
949
950 This method is recommended only if the music in the @code{Devnull}
951 context does not contain melismata.  Melismata are defined by the
952 @code{Voice} context.  Connecting lyrics to a @code{Devnull} context
953 makes the voice/lyrics links to get lost, and so does the info on
954 melismata.  Therefore, if you link lyrics to a @code{Devnull} context,
955 the implicit melismata get ignored.
956
957 @c Conclusion: do not use devnull for lyrics -FV
958
959 @c this clarifies http://code.google.com/p/lilypond/issues/detail?id=248
960
961 @node Spacing out syllables
962 @unnumberedsubsubsec Spacing out syllables
963
964 @cindex Spacing lyrics
965 @cindex Lyrics, increasing space between
966
967 To increase the spacing between lyrics, set the @code{minimum-distance}
968 property of @code{LyricSpace}.
969
970 @lilypond[relative,verbatim,fragment,quote,ragged-right]
971 {
972   c c c c
973   \override Lyrics.LyricSpace #'minimum-distance = #1.0
974   c c c c
975 }
976 \addlyrics {
977   longtext longtext longtext longtext
978   longtext longtext longtext longtext
979 }
980 @end lilypond
981
982 @noindent
983 To make this change for all lyrics in the score, set the property in the
984 layout.
985
986 @lilypond[verbatim,quote,ragged-right]
987 \score {
988   \relative c' {
989   c c c c
990   c c c c
991   }
992   \addlyrics {
993   longtext longtext longtext longtext
994   longtext longtext longtext longtext
995   }
996   \layout {
997     \context {
998       \Lyrics
999       \override LyricSpace #'minimum-distance = #1.0
1000     }
1001   }
1002 }
1003 @end lilypond
1004
1005 @c @snippets
1006 @c This snippet has been renamed to "lyrics-alignment.ly"
1007 @c update as soon as lsr/is updated -vv
1008 @c @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1009 @c {lyrics-alignment.ly}
1010
1011 @c TODO: move to LSR -vv
1012 @snippets
1013
1014 Checking to make sure that text scripts and lyrics are within the margins is
1015 a relatively large computational task.  To speed up processing, LilyPond does
1016 not perform such calculations by default; to enable it, use
1017
1018 @example
1019 \override Score.PaperColumn #'keep-inside-line = ##t
1020 @end example
1021
1022 To make lyrics avoid bar lines as well, use
1023
1024 @example
1025 \layout @{
1026   \context @{
1027     \Lyrics
1028       \consists "Bar_engraver"
1029       \consists "Separating_line_group_engraver"
1030       \override BarLine #'transparent = ##t
1031   @}
1032 @}
1033 @end example
1034
1035 @c TODO Create and add lsr example of lyricMelismaAlignment
1036 @c It's used like this to center-align all lyric syllables,
1037 @c even when notes are tied. -td
1038
1039 @ignore
1040 \layout
1041 {
1042      \context { \Score lyricMelismaAlignment = #0 }
1043 }
1044 @end ignore
1045
1046
1047 @node Placement of lyrics between staves
1048 @unnumberedsubsubsec Placement of lyrics between staves
1049
1050 @c TODO Add text from -user
1051 @c TODO Add new spacing properties, centering lyrics, etc
1052 TBC
1053
1054 @node Stanzas
1055 @subsection Stanzas
1056
1057 @menu
1058 * Adding stanza numbers::
1059 * Adding dynamics marks to stanzas::
1060 * Adding singers' names to stanzas::
1061 * Stanzas with different rhythms::
1062 * Printing stanzas at the end::
1063 * Printing stanzas at the end in multiple columns::
1064 @end menu
1065
1066
1067 @node Adding stanza numbers
1068 @unnumberedsubsubsec Adding stanza numbers
1069
1070 @cindex stanza number
1071
1072 Stanza numbers can be added by setting @code{stanza}, e.g.,
1073
1074 @lilypond[quote,ragged-right,verbatim,relative=2,fragment]
1075 \new Voice {
1076   \time 3/4 g2 e4 a2 f4 g2.
1077 } \addlyrics {
1078   \set stanza = #"1. "
1079   Hi, my name is Bert.
1080 } \addlyrics {
1081   \set stanza = #"2. "
1082   Oh, ché -- ri, je t'aime
1083 }
1084 @end lilypond
1085
1086
1087 @noindent
1088 These numbers are put just before the start of the first syllable.
1089
1090 @c TODO Create and add snippet to show how two lines of a
1091 @c stanza can be grouped together, along these lines:
1092 @c (might need improving a bit) -td
1093
1094 @ignore
1095 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup
1096 #"brace105" }
1097
1098 stanzaOneOne = {
1099   \set stanza = \markup { "1. " \leftbrace }
1100   \lyricmode { Child, you're mine and I love you.
1101     Lend thine ear to what I say.
1102
1103   }
1104 }
1105
1106 stanzaOneThree =  {
1107 %  \set stanza = \markup { "   "}
1108   \lyricmode { Child, I have no great -- er joy
1109     Than to have you walk in truth.
1110
1111   }
1112 }
1113
1114 \new Voice {
1115   \repeat volta 2 { c'8 c' c' c' c' c' c'4
1116                     c'8 c' c' c' c' c' c'4   }
1117 }  \addlyrics { \stanzaOneOne }
1118    \addlyrics { \stanzaOneThree }
1119
1120 @end ignore
1121
1122 @node Adding dynamics marks to stanzas
1123 @unnumberedsubsubsec Adding dynamics marks to stanzas
1124
1125 Stanzas differing in loudness may be indicated by putting a
1126 dynamics mark before each stanza.  In LilyPond, everything coming in
1127 front of a stanza goes into the @code{StanzaNumber} object; dynamics marks
1128 are no different.  For technical reasons, you have to set the stanza
1129 outside @code{\lyricmode}:
1130
1131 @lilypond[quote,ragged-right,verbatim]
1132 text = {
1133   \set stanza = \markup { \dynamic "ff" "1. " }
1134   \lyricmode {
1135     Big bang
1136   }
1137 }
1138
1139 <<
1140   \new Voice = "tune" {
1141     \time 3/4
1142     g'4 c'2
1143   }
1144 \new Lyrics \lyricsto "tune" \text
1145 >>
1146 @end lilypond
1147
1148 @node Adding singers' names to stanzas
1149 @unnumberedsubsubsec Adding singers' names to stanzas
1150
1151 @cindex singer name
1152 @cindex name of singer
1153
1154 Names of singers can also be added.  They are printed at the start of
1155 the line, just like instrument names.  They are created by setting
1156 @code{vocalName}.  A short version may be entered as @code{shortVocalName}.
1157
1158 @lilypond[fragment,ragged-right,quote,verbatim,relative=2]
1159 \new Voice {
1160   \time 3/4 g2 e4 a2 f4 g2.
1161 } \addlyrics {
1162   \set vocalName = #"Bert "
1163   Hi, my name is Bert.
1164 } \addlyrics {
1165   \set vocalName = #"Ernie "
1166   Oh, ché -- ri, je t'aime
1167 }
1168 @end lilypond
1169
1170 @node Stanzas with different rhythms
1171 @unnumberedsubsubsec Stanzas with different rhythms
1172
1173 Often, different stanzas of one song are put to one melody in slightly
1174 differing ways.  Such variations can still be captured with
1175 @code{\lyricsto}.
1176
1177 @subsubheading Ignoring melismata
1178
1179 One possibility is that the text has a melisma in one stanza, but
1180 multiple syllables in another one.  One solution is to make the faster
1181 voice ignore the melisma.  This is done by setting
1182 @code{ignoreMelismata} in the Lyrics context.
1183
1184 @lilypond[verbatim,ragged-right,quote]
1185 <<
1186   \relative c' \new Voice = "lahlah" {
1187     \set Staff.autoBeaming = ##f
1188     c4
1189     \slurDotted
1190     f8.[( g16])
1191     a4
1192   }
1193   \new Lyrics \lyricsto "lahlah" {
1194     more slow -- ly
1195   }
1196   \new Lyrics \lyricsto "lahlah" {
1197     go
1198     \set ignoreMelismata = ##t
1199     fas -- ter
1200     \unset ignoreMelismata
1201     still
1202   }
1203 >>
1204 @end lilypond
1205
1206 @knownissues
1207 Unlike most @code{\set} commands, @code{\set ignoreMelismata} does
1208 not work if prefixed with @code{\once}.  It is necessary to use
1209 @code{\set} and @code{\unset} to bracket the lyrics where melismata
1210 are to be ignored.
1211
1212 @subsubheading Adding syllables to grace notes
1213
1214 By default, grace notes (e.g. via @code{\grace}) do not get assigned
1215 syllables when using @code{\lyricsto}, but this behavior can be
1216 changed:
1217
1218 @lilypond[verbatim,ragged-right,quote]
1219 \relative c' {
1220   f4 \appoggiatura a32 b4
1221   \grace { f16[ a16] } b2
1222   \afterGrace b2 { f16[ a16] }
1223   \appoggiatura a32 b4
1224   \acciaccatura a8 b4
1225 }
1226 \addlyrics {
1227   normal
1228   \set includeGraceNotes = ##t
1229   case,
1230   gra -- ce case,
1231   after -- grace case,
1232   \set ignoreMelismata = ##t
1233   app. case,
1234   acc. case.
1235 }
1236 @end lilypond
1237
1238 @knownissues
1239 Like for @code{associatedVoice}, @code{includeGraceNotes} needs to be
1240 set at latest one syllable before the one which is to be put under a
1241 grace note.  For the case of a grace note at the very beginning of a
1242 piece of music, consider using a @code{\with} or @code{\context}
1243 block:
1244
1245 @lilypond[verbatim,ragged-right,quote]
1246 <<
1247   \new Voice = melody \relative c' {
1248     \grace { c16[( d e f] }
1249     g1) f
1250   }
1251   \new Lyrics \with { includeGraceNotes = ##t }
1252   \lyricsto melody {
1253     Ah __ fa
1254   }
1255 >>
1256 @end lilypond
1257
1258 @subsubheading Switching to an alternative melody
1259
1260 More complex variations in text underlay are possible.  It is possible
1261 to switch the melody for a line of lyrics during the text.  This is
1262 done by setting the @code{associatedVoice} property.  In the example
1263
1264 @lilypond[ragged-right,quote]
1265 <<
1266   \relative c' \new Voice = "lahlah" {
1267     \set Staff.autoBeaming = ##f
1268     c4
1269     <<
1270       \new Voice = "alternative" {
1271         \voiceOne
1272         \times 2/3 {
1273           % show associations clearly.
1274           \override NoteColumn #'force-hshift = #-3
1275           f8 f g
1276         }
1277       }
1278       {
1279         \voiceTwo
1280         f8.[ g16]
1281         \oneVoice
1282       } >>
1283     a8( b) c
1284   }
1285   \new Lyrics \lyricsto "lahlah" {
1286     Ju -- ras -- sic Park
1287   }
1288   \new Lyrics \lyricsto "lahlah" {
1289     % Tricky: need to set associatedVoice
1290     % one syllable too soon!
1291     \set associatedVoice = alternative % applies to "ran"
1292     Ty --
1293     ran --
1294     no --
1295     \set associatedVoice = lahlah % applies to "rus"
1296     sau -- rus Rex
1297   } >>
1298 @end lilypond
1299
1300 @noindent
1301 the text for the first stanza is set to a melody called @q{lahlah},
1302
1303 @example
1304 \new Lyrics \lyricsto "lahlah" @{
1305   Ju -- ras -- sic Park
1306 @}
1307 @end example
1308
1309
1310 The second stanza initially is set to the @code{lahlah} context, but
1311 for the syllable @q{ran}, it switches to a different melody.
1312 This is achieved with
1313 @example
1314 \set associatedVoice = alternative
1315 @end example
1316
1317 @noindent
1318 Here, @code{alternative} is the name of the @code{Voice} context
1319 containing the triplet.
1320
1321 @c TODO: make this easier to understand -vv
1322 This command must be one syllable too early, before @q{Ty} in this
1323 case.  In other words, changing the associatedVoice happens one step
1324 later than expected.  This is for technical reasons, and it is not a
1325 bug.
1326
1327 @example
1328 \new Lyrics \lyricsto "lahlah" @{
1329   \set associatedVoice = alternative % applies to "ran"
1330   Ty --
1331   ran --
1332   no --
1333   \set associatedVoice = lahlah % applies to "rus"
1334   sau -- rus Rex
1335 @}
1336 @end example
1337
1338 @noindent
1339 The underlay is switched back to the starting situation by assigning
1340 @code{lahlah} to @code{associatedVoice}.
1341
1342
1343 @node Printing stanzas at the end
1344 @unnumberedsubsubsec Printing stanzas at the end
1345
1346 Sometimes it is appropriate to have one stanza set
1347 to the music, and the rest added in verse form at
1348 the end of the piece.  This can be accomplished by adding
1349 the extra verses into a @code{\markup} section outside
1350 of the main score block.  Notice that there are two
1351 different ways to force linebreaks when using
1352 @code{\markup}.
1353
1354 @lilypond[ragged-right,verbatim,quote]
1355 melody = \relative c' {
1356 e d c d | e e e e |
1357 d d e d | c1 |
1358 }
1359
1360 text = \lyricmode {
1361 \set stanza = #"1." Ma- ry had a lit- tle lamb,
1362 its fleece was white as snow.
1363 }
1364
1365 \score{ <<
1366   \new Voice = "one" { \melody }
1367   \new Lyrics \lyricsto "one" \text
1368 >>
1369   \layout { }
1370 }
1371 \markup { \column{
1372   \line{ Verse 2. }
1373   \line{ All the children laughed and played }
1374   \line{ To see a lamb at school. }
1375   }
1376 }
1377 \markup{
1378   \wordwrap-string #"
1379   Verse 3.
1380
1381   Mary took it home again,
1382
1383   It was against the rule."
1384 }
1385 @end lilypond
1386
1387
1388 @node Printing stanzas at the end in multiple columns
1389 @unnumberedsubsubsec Printing stanzas at the end in multiple columns
1390
1391 When a piece of music has many verses, they are often printed in
1392 multiple columns across the page.  An outdented verse number often
1393 introduces each verse.  The following example shows how to produce such
1394 output in LilyPond.
1395
1396 @lilypond[ragged-right,quote,verbatim]
1397 melody = \relative c' {
1398   c c c c | d d d d
1399 }
1400
1401 text = \lyricmode {
1402   \set stanza = #"1." This is verse one.
1403   It has two lines.
1404 }
1405
1406 \score{ <<
1407     \new Voice = "one" { \melody }
1408     \new Lyrics \lyricsto "one" \text
1409    >>
1410   \layout { }
1411 }
1412
1413 \markup {
1414   \fill-line {
1415     \hspace #0.1 % moves the column off the left margin;
1416         % can be removed if space on the page is tight
1417      \column {
1418       \line { \bold "2."
1419         \column {
1420           "This is verse two."
1421           "It has two lines."
1422         }
1423       }
1424       \hspace #0.1 % adds vertical spacing between verses
1425       \line { \bold "3."
1426         \column {
1427           "This is verse three."
1428           "It has two lines."
1429         }
1430       }
1431     }
1432     \hspace #0.1  % adds horizontal spacing between columns;
1433         % if they are still too close, add more " " pairs
1434         % until the result looks good
1435      \column {
1436       \line { \bold "4."
1437         \column {
1438           "This is verse four."
1439           "It has two lines."
1440         }
1441       }
1442       \hspace #0.1 % adds vertical spacing between verses
1443       \line { \bold "5."
1444         \column {
1445           "This is verse five."
1446           "It has two lines."
1447         }
1448       }
1449     }
1450   \hspace #0.1 % gives some extra space on the right margin;
1451       % can be removed if page space is tight
1452   }
1453 }
1454 @end lilypond
1455
1456
1457 @seealso
1458 Internals Reference:
1459 @rinternals{LyricText},
1460 @rinternals{StanzaNumber}.
1461
1462
1463 @node Songs
1464 @subsection Songs
1465
1466 @menu
1467 * References for songs::
1468 * Lead sheets::
1469 @end menu
1470
1471 @node References for songs
1472 @unnumberedsubsubsec References for songs
1473
1474 @c TODO chords, setting simple songs (LM), stanzas
1475 TBC
1476
1477 @node Lead sheets
1478 @unnumberedsubsubsec Lead sheets
1479
1480 Lead sheets may be printed by combining vocal parts and @q{chord mode};
1481 this syntax is explained in @ref{Chord notation}.
1482
1483 @snippets
1484 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1485 {simple-lead-sheet.ly}
1486
1487 @seealso
1488 Notation Reference:
1489 @ref{Chord notation}.
1490
1491
1492 @node Choral
1493 @subsection Choral
1494
1495 @cindex anthems
1496 @cindex part songs
1497 @cindex oratorio
1498 @cindex SATB
1499
1500 This section discusses notation issues that relate most directly
1501 to choral music.  This includes anthems, part songs, oratorio,
1502 etc.
1503
1504 @menu
1505 * References for choral::
1506 * Score layouts for choral::
1507 * Divided voices::
1508 @end menu
1509
1510 @node References for choral
1511 @unnumberedsubsubsec References for choral
1512
1513 Choral music is usually notated on two, three or four staves within
1514 a @code{ChoirStaff} group.  Accompaniment, if required, is placed
1515 beneath in a @code{PianoStaff} group, which is usually reduced in
1516 size for @emph{a capella} choral works.  The notes for each vocal
1517 part are placed in a @code{Voice} context, with each staff
1518 being given either a single vocal part (i.e., one @code{Voice}) or
1519 a pair of vocal parts (i.e., two @code{Voice}s).
1520
1521 Words are placed in @code{Lyrics} contexts, either underneath each
1522 corresponding music staff, or one above and one below the music
1523 staff if this contains the music for two parts.
1524
1525 Several common topics in choral music are described fully elsewhere:
1526
1527 @itemize
1528
1529 @item
1530 An introduction to creating an SATB vocal score can be found in
1531 the Learning Manual, see @rlearning{Four-part SATB vocal score}.
1532
1533 @item
1534 Several templates suitable for various styles of choral music can
1535 also be found in the Learning Manual, see
1536 @rlearning{Vocal ensembles}.
1537
1538 @item
1539 For information about @code{ChoirStaff} and @code{PianoStaff} see
1540 @ref{Grouping staves}.
1541
1542 @item
1543 Shape noteheads, as used in Sacred Harp and similar notation, are
1544 described in @ref{Shape note heads}.
1545
1546 @item
1547 When two vocal parts share a staff the stems, ties, slurs, etc., of
1548 the higher part will be directed up and those of the lower part
1549 down.  To do this, use @code{\voiceOne} and @code{\voiceTwo}.  See
1550 @ref{Single-staff polyphony}.
1551
1552 @end itemize
1553
1554 @predefined
1555 @code{\oneVoice},
1556 @code{\voiceOne},
1557 @code{\voiceTwo}.
1558
1559 @seealso
1560 Learning Manual:
1561 @rlearning{Four-part SATB vocal score},
1562 @rlearning{Vocal ensembles}.
1563
1564 Notation Reference:
1565 @ref{Context layout order},
1566 @ref{Grouping staves},
1567 @ref{Shape note heads},
1568 @ref{Single-staff polyphony}.
1569
1570 Internals Reference:
1571 @rinternals{ChoirStaff},
1572 @rinternals{Lyrics},
1573 @rinternals{PianoStaff}.
1574
1575 @node Score layouts for choral
1576 @unnumberedsubsubsec Score layouts for choral
1577
1578 Choral music containing four staves, with or without piano
1579 accompaniment, is usually laid out with two systems per page.
1580 Depending on the page size, achieving this may require changes
1581 to several default settings.  The following settings should be
1582 considered:
1583
1584 @itemize
1585
1586 @item
1587 The global staff size can be modified to change the overall size
1588 of the elements of the score.  See @ref{Setting the staff size}.
1589
1590 @item
1591 The distances between the systems, the staves and the lyrics can
1592 all be adjusted independently.  See @ref{Vertical spacing}.
1593
1594 @item
1595 The dimensions of the vertical layout variables can be displayed as
1596 an aid to adjusting the vertical spacing.  This and other
1597 possibilities for fitting the music onto fewer pages are described
1598 in @ref{Fitting music onto fewer pages}.
1599
1600 @item
1601 If the number of systems per page changes from one to two it is
1602 customary to indicate this with a system separator mark between
1603 the two systems.  See @ref{Separating systems}.
1604
1605 @item
1606 For details of other page formatting properties, see
1607 @ref{Page formatting}.
1608
1609 @end itemize
1610
1611
1612 Dynamic markings by default are placed below the staff, but in
1613 choral music they are usually placed above the staff in order to
1614 avoid the lyrics.  The predefined command @code{\dynamicUp} does
1615 this for the dynamic markings in a single @code{Voice} context.
1616 If there are many @code{Voice} contexts this predefined command
1617 would have to be placed in every one.  Alternatively its expanded
1618 form can be used to place all dynamic markings in the entire score
1619 above their respective staves, as shown here:
1620
1621 @lilypond[verbatim,quote]
1622 \score {
1623   \new ChoirStaff <<
1624     \new Staff {
1625       \new Voice {
1626         \relative c'' { g4\f g g g }
1627       }
1628     }
1629     \new Staff {
1630       \new Voice {
1631         \relative c' { d4 d d\p d }
1632       }
1633     }
1634   >>
1635   \layout {
1636     \context {
1637       \Score
1638       \override DynamicText #'direction = #UP
1639       \override DynamicLineSpanner #'direction = #UP
1640     }
1641   }
1642 }
1643 @end lilypond
1644
1645 @predefined
1646 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
1647
1648 @seealso
1649 Notation Reference:
1650 @ref{Changing spacing},
1651 @ref{Displaying spacing},
1652 @ref{Fitting music onto fewer pages},
1653 @ref{Page formatting},
1654 @ref{Score layout},
1655 See @ref{Separating systems},
1656 @ref{Setting the staff size},
1657 @ref{Using an extra voice for breaks},
1658 @ref{Vertical spacing}.
1659
1660 Internals Reference:
1661 @rinternals{VerticalAxisGroup},
1662 @rinternals{StaffGrouper}.
1663
1664
1665 @node Divided voices
1666 @unnumberedsubsubsec Divided voices
1667
1668 @cindex voices, divided
1669
1670 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1671 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
1672
1673 @seealso
1674 Notation Reference:
1675 @ref{Expressive marks as lines}.
1676
1677
1678 @node Opera and stage musicals
1679 @subsection Opera and stage musicals
1680
1681 The music, lyrics and dialogue to opera and stage musicals are
1682 usually set out in one or more of the following forms:
1683
1684 @itemize
1685
1686 @item
1687 A @emph{Conductors' Score} containing the full orchestral and vocal
1688 parts, together with libretto cues if there are spoken passages.
1689
1690 @item
1691 @emph{Orchestral Parts} containing the music for the individual
1692 instruments of the orchestra or band.
1693
1694 @item
1695 A @emph{Vocal Score} containing all vocal parts with piano
1696 accompaniment.  The accompaniment is usually an orchestral
1697 reduction, and if so the name of the original orchestral instrument
1698 is often indicated.  Vocal scores sometimes includes stage
1699 directions and libretto cues.
1700
1701 @item
1702 A @emph{Vocal Book} containing just the vocal parts
1703 (no accompaniment), sometimes combined with the libretto.
1704
1705 @item
1706 A @emph{Libretto} containing the extended passages of spoken
1707 dialogue usually found in musicals, together with the words to the
1708 sung parts.  Stage directions are usually included.  LilyPond can
1709 be used to typeset libretti but as they contain no music
1710 alternative methods may be preferable.
1711
1712 @end itemize
1713
1714 The sections in the LilyPond documentation which cover the topics
1715 needed to create scores in the styles commonly found in opera and
1716 musicals are indicated in the References below.  This is followed
1717 by sections covering those techniques which are peculiar to
1718 typesetting opera and musical scores.
1719
1720 @menu
1721 * References for opera and stage musicals::
1722 * Character names::
1723 * Musical cues::
1724 * Spoken music::
1725 * Dialogue over music::
1726 @end menu
1727
1728 @node References for opera and stage musicals
1729 @unnumberedsubsubsec References for opera and stage musicals
1730
1731 @itemize
1732
1733 @item
1734 A conductors' score contains many grouped staves and lyrics.  Ways
1735 of grouping staves is shown in @ref{Grouping staves}.  To nest
1736 groups of staves see @ref{Nested staff groups}.
1737
1738 @item
1739 The printing of empty staves in conductors' scores and vocal scores
1740 is often suppressed.  To create such a @qq{Frenched score} see
1741 @ref{Hiding staves}.
1742
1743 @item
1744 Writing orchestral parts is covered in @ref{Writing parts}.
1745 Other sections in the Specialist notation chapter may be relevant,
1746 depending on the orchestration used.  Many instruments are
1747 transposing instruments, see @ref{Instrument transpositions}.
1748
1749 @item
1750 If the number of systems per page changes from page to page it is
1751 customary to separate the systems with a system separator mark.
1752 See @ref{Separating systems}.
1753
1754 @item
1755 For details of other page formatting properties, see
1756 @ref{Page formatting}.
1757
1758 @item
1759 Dialogue cues and stage directions can be inserted with markup.
1760 See @ref{Text}.  Extensive stage directions can be inserted with
1761 a section of stand-alone markup between two @code{\score} blocks.
1762 See @ref{Separate text}.
1763
1764 @end itemize
1765
1766 @seealso
1767 Musical Glossary:
1768 @rglos{Frenched score},
1769 @rglos{Frenched staves},
1770 @rglos{transposing instrument}.
1771
1772 Notation Manual:
1773 @ref{Grouping staves},
1774 @ref{Hiding staves},
1775 @ref{Instrument transpositions},
1776 @ref{Nested staff groups},
1777 @ref{Page formatting},
1778 @ref{Separating systems},
1779 @ref{Transpose},
1780 @ref{Writing parts},
1781 @ref{Writing text}.
1782
1783
1784 @node Character names
1785 @unnumberedsubsubsec Character names
1786
1787 @cindex character names
1788 @cindex names, character
1789
1790 Character names are usually shown to the left of the staff when the
1791 staff is dedicated to that character alone.  The instrument name can
1792 be used for this purpose.
1793
1794 @lilypond[quote,verbatim,ragged-right]
1795 \score {
1796   <<
1797     \new Staff {
1798       \set Staff.instrumentName = #"Kaspar"
1799       \set Staff.shortInstrumentName = #"Kas"
1800       \relative c' {
1801         \clef "G_8"
1802         c4 c c c
1803         \break
1804         c4 c c c
1805       }
1806     }
1807     \new Staff {
1808       \set Staff.instrumentName = #"Melchior"
1809       \set Staff.shortInstrumentName = #"Mel"
1810       \clef "bass"
1811       \relative c' {
1812         a4 a a a
1813         a4 a a a
1814       }
1815     }
1816   >>
1817 }
1818 @end lilypond
1819
1820 When two or more characters share a staff the character's name is
1821 usually printed above the staff at the start of every section
1822 applying to that character.  This can be done with markup.  Often a
1823 specific font is used for this purpose.
1824
1825 @lilypond[quote,verbatim,relative=1]
1826 \clef "G_8"
1827 c4^\markup \fontsize #1 \smallCaps Kaspar
1828 c c c
1829 \clef "bass"
1830 a4^\markup \fontsize #1 \smallCaps Melchior
1831 a a a
1832 \clef "G_8"
1833 c4^\markup \fontsize #1 \smallCaps Kaspar
1834 c c c
1835 @end lilypond
1836
1837 Alternatively, if there are many character changes, it may be
1838 easier to set up @qq{instrument} definitions for each character at
1839 the top level so that @code{\instrumentSwitch} can be used to
1840 indicate each change.
1841
1842 @lilypond[quote,verbatim]
1843 \addInstrumentDefinition #"kaspar"
1844   #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
1845      (shortInstrumentName . "Kas.")
1846      (clefGlyph . "clefs.G")
1847      (clefOctavation . -7)
1848      (middleCPosition . 1)
1849      (clefPosition . -2)
1850      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Kaspar"))
1851      (midiInstrument . "voice oohs"))
1852
1853 \addInstrumentDefinition #"melchior"
1854   #`((instrumentTransposition . ,(ly:make-pitch 0 0 0))
1855      (shortInstrumentName . "Mel.")
1856      (clefGlyph . "clefs.F")
1857      (clefOctavation . 0)
1858      (middleCPosition . 6)
1859      (clefPosition . 2)
1860      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Melchior"))
1861      (midiInstrument . "voice aahs"))
1862
1863 \relative c' {
1864 \instrumentSwitch "kaspar"
1865 c4 c c c
1866 \instrumentSwitch "melchior"
1867 a4 a a a
1868 \instrumentSwitch "kaspar"
1869 c4 c c c
1870 }
1871 @end lilypond
1872
1873 @seealso
1874 Notation Reference:
1875 @ref{Instrument names},
1876 @ref{Selecting font and font size},
1877 @ref{Text}.
1878
1879 @node Musical cues
1880 @unnumberedsubsubsec Musical cues
1881
1882 @cindex musical cues
1883 @cindex cues, musical
1884
1885 Musical cues can be inserted in Vocal Scores, Vocal Books and
1886 Orchestral Parts to indicate what music in another part
1887 immediately precedes an entry.  Also, cues are often inserted in the
1888 piano reduction in Vocal Scores to indicate what each orchestral
1889 instrument is playing.  This aids the conductor when a full
1890 Conductors' Score is not available.
1891
1892 The basic mechanism for inserting cues is fully explained in the
1893 main text, see @ref{Quoting other voices} and
1894 @ref{Formatting cue notes}.  But when many cues have to be
1895 inserted, for example, as an aid to a conductor in a vocal score,
1896 the instrument name must be positioned carefully just before and
1897 close to the start of the cued notes.  The following example shows
1898 how this is done.  Note that the name of the grob for overriding
1899 the cued instrument name is @code{InstrumentSwitch}.
1900
1901 @lilypond[quote,verbatim]
1902 flute = \relative c'' {
1903   s4 s4 e g
1904 }
1905 \addQuote "flute" { \flute }
1906
1907 pianoRH = \relative c'' {
1908   c4. g8
1909   % position name of cued instrument just before the cued notes
1910   \once \override CueVoice.InstrumentSwitch
1911     #'self-alignment-X = #RIGHT
1912   % position name of cued instrument above the staff
1913   \once \override CueVoice.InstrumentSwitch #'direction = #UP
1914   \set CueVoice.instrumentCueName = "Flute"
1915   \cueDuring "flute" #UP { g4 bes4 }
1916 }
1917 pianoLH = \relative c { c4 <c' e> e, <g c> }
1918
1919 \score {
1920   \new PianoStaff <<
1921     \new Staff {
1922       \pianoRH
1923     }
1924     \new Staff {
1925       \clef "bass"
1926       \pianoLH
1927     }
1928   >>
1929 }
1930 @end lilypond
1931
1932 If a transposing instrument is being cued the instrument part should
1933 specify its key so the conversion of its cued notes will be done
1934 automatically.  The example below shows this transposition for a
1935 B-flat clarinet.  The notes in this example are low on the staff so
1936 @code{#DOWN} is specified in @code{\cueDuring} (so the stems are
1937 down) and the instrument name is positioned below the staff.  Note
1938 also that the piano right-hand voice is explicitly declared.  This
1939 is because the cued notes in this example begin at the start of the
1940 first bar and this would otherwise cause the entire piano right-hand
1941 notes to be placed in a @code{CueVoice} context.
1942
1943 @lilypond[quote,verbatim]
1944 clarinet = \relative c' {
1945   \transposition bes
1946   fis4 d d c
1947 }
1948 \addQuote "clarinet" { \clarinet }
1949
1950 pianoRH = \relative c'' {
1951   \transposition c'
1952   % position name of cued instrument just before the cued notes
1953   \once \override CueVoice.InstrumentSwitch
1954     #'self-alignment-X = #RIGHT
1955   % position name of cued instrument below the staff
1956   \once \override CueVoice.InstrumentSwitch #'direction = #DOWN
1957   \set CueVoice.instrumentCueName = "Clar."
1958   \cueDuring "clarinet" #DOWN { c4. g8 }
1959   g4 bes4
1960 }
1961 pianoLH = \relative c { c4 <c' e> e, <g c> }
1962
1963 \score {
1964   <<
1965     \new PianoStaff <<
1966       \new Staff {
1967         \new Voice {
1968           \pianoRH
1969         }
1970       }
1971       \new Staff {
1972         \clef "bass"
1973         \pianoLH
1974       }
1975     >>
1976   >>
1977 }
1978 @end lilypond
1979
1980 From these two examples it is clear that inserting many cues in a
1981 Vocal Score would be extremely tedious, and the notes of the piano
1982 part would be obscured by the many overrides.  However, as the
1983 following snippet shows, it is possible to define a music function
1984 to reduce the amount of typing and to make the piano notes clearer.
1985
1986 @snippets
1987 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1988 {adding-orchestral-cues-to-a-vocal-score.ly}
1989
1990 @seealso
1991 Musical Glossary:
1992 @rglos{cue-notes}.
1993
1994 Notation Reference:
1995 @ref{Aligning objects},
1996 @ref{Direction and placement},
1997 @ref{Formatting cue notes},
1998 @ref{Quoting other voices},
1999 @ref{Using music functions}.
2000
2001 Snippets:
2002 @rlsr{vocal-music}.
2003
2004 Internals Reference:
2005 @rinternals{InstrumentSwitch},
2006 @rinternals{CueVoice}.
2007
2008 @knownissues
2009 @code{\cueDuring} automatically inserts a @code{CueVoice} context
2010 and all cue notes are placed in that context.  This means it is not
2011 possible to have two overlapping sequences of cued notes by this
2012 technique.  Overlapping sequences could be entered by explicitly
2013 declaring separate @code{CueVoice} contexts and using
2014 @code{\quoteDuring} to extract and insert the cued notes.
2015
2016
2017 @node Spoken music
2018 @unnumberedsubsubsec Spoken music
2019
2020 @cindex parlato
2021 @cindex Sprechgesang
2022 Such effects as @q{parlato} or @q{Sprechgesang} require performers to speak
2023 without pitch but still with rhythm; these are notated by cross
2024 note heads, as demonstrated in @ref{Special note heads}.
2025
2026 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
2027 @c add "showing the rhythm of a melody" snip
2028 @c add "one staff-line notation"
2029 @c add "improvisation" ref
2030 @c add "lyrics independents of notes" ref
2031
2032 @node Dialogue over music
2033 @unnumberedsubsubsec Dialogue over music
2034
2035 TBC
2036
2037
2038 @node Chants psalms and hymns
2039 @subsection Chants psalms and hymns
2040
2041 @cindex chants
2042 @cindex psalms
2043 @cindex hymns
2044 @cindex religious music
2045
2046 The music and words for chants, psalms and hymns usually follow a
2047 well-established format in any particular church.  Although the
2048 formats may differ from church to church the type-setting problems
2049 which arise are broadly similar, and are covered in this section.
2050
2051 @menu
2052 * References for chants and psalms::
2053 * Setting a chant::
2054 * Pointing a psalm::
2055 * Partial measures in hymn tunes::
2056 @end menu
2057
2058 @node References for chants and psalms
2059 @unnumberedsubsubsec References for chants and psalms
2060
2061 Typesetting Gregorian chant in various styles of ancient notation
2062 is described in @ref{Ancient notation}.
2063
2064 @seealso
2065 Notation reference:
2066 @ref{Ancient notation}.
2067
2068
2069 @node Setting a chant
2070 @unnumberedsubsubsec Setting a chant
2071
2072 Modern chant settings use modern notation with varying numbers of
2073 elements taken from ancient notation.  Some of the elements and
2074 methods to consider are shown here.
2075
2076 Chants often use quarter notes without stems to indicate the pitch,
2077 with the rhythm being taken from the spoken rhythm of the words.
2078
2079 @lilypond[verbatim,quote]
2080 stemOff = { \override Staff.Stem #'transparent = ##t }
2081
2082 \relative c' {
2083   \stemOff
2084   a'4 b c2 |
2085 }
2086
2087 @end lilypond
2088
2089 Chants often omit the bar lines or use shortened or dotted bar
2090 lines to indicate pauses in the music.  To omit all bar lines from
2091 all staves remove the bar line engraver completely:
2092
2093 @lilypond[verbatim,quote]
2094 \score {
2095   \new StaffGroup <<
2096     \new Staff {
2097       \relative c'' {
2098         a4 b c2 |
2099         a4 b c2 |
2100         a4 b c2 |
2101       }
2102     }
2103     \new Staff {
2104       \relative c'' {
2105         a4 b c2 |
2106         a4 b c2 |
2107         a4 b c2 |
2108       }
2109     }
2110   >>
2111   \layout {
2112     \context {
2113       \Staff
2114       \remove Bar_engraver
2115     }
2116   }
2117 }
2118 @end lilypond
2119
2120 Bar lines can also be removed on a staff-by-staff basis:
2121
2122 @lilypond[verbatim, quote]
2123 \score {
2124   \new ChoirStaff <<
2125     \new Staff
2126     \with { \remove Bar_engraver } {
2127       \relative c'' {
2128         a4 b c2 |
2129         a4 b c2 |
2130         a4 b c2 |
2131       }
2132     }
2133     \new Staff {
2134       \relative c'' {
2135         a4 b c2 |
2136         a4 b c2 |
2137         a4 b c2 |
2138       }
2139     }
2140   >>
2141 }
2142 @end lilypond
2143
2144 To remove bar lines from just a section of music treat it as a
2145 cadenza.  If the section is long you may need to insert dummy
2146 barlines with @code{\bar ""} to show where the line should break.
2147
2148 @lilypond[verbatim,quote,relative=2]
2149 a4 b c2 |
2150 \cadenzaOn
2151 a4 b c2
2152 a4 b c2
2153 \bar ""
2154 a4 b c2
2155 a4 b c2
2156 \cadenzaOff
2157 a4 b c2 |
2158 a4 b c2 |
2159 @end lilypond
2160
2161 Rests or pauses in chants can be indicated by modified bar lines.
2162
2163 @lilypond[verbatim, quote,relative=2]
2164 a4
2165 \cadenzaOn
2166 b c2
2167 a4 b c2
2168 \bar "'"
2169 a4 b c2
2170 a4 b c2
2171 \bar ":"
2172 a4 b c2
2173 \bar "dashed"
2174 a4 b c2
2175 \bar "||"
2176 @end lilypond
2177
2178 Alternatively, the notation used in Gregorian chant for pauses or
2179 rests is sometimes used even though the rest of the notation is
2180 modern.  This uses a modified @code{\breathe} mark:
2181
2182 @lilypond[verbatim,quote]
2183 divisioMinima = {
2184   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-minima
2185   \once \override BreathingSign  #'Y-offset = #0
2186   \breathe
2187 }
2188 divisioMaior = {
2189   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maior
2190   \once \override BreathingSign  #'Y-offset = #0
2191   \breathe
2192 }
2193 divisioMaxima = {
2194   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maxima
2195   \once \override BreathingSign  #'Y-offset = #0
2196   \breathe
2197 }
2198 finalis = {
2199   \once \override BreathingSign  #'stencil = #ly:breathing-sign::finalis
2200   \once \override BreathingSign  #'Y-offset = #0
2201   \breathe
2202 }
2203
2204 \score {
2205   \relative c'' {
2206     g2 a4 g
2207     \divisioMinima
2208     g2 a4 g
2209     \divisioMaior
2210     g2 a4 g
2211     \divisioMaxima
2212     g2 a4 g
2213     \finalis
2214   }
2215   \layout {
2216     \context {
2217       \Staff
2218       \remove Bar_engraver
2219     }
2220   }
2221 }
2222 @end lilypond
2223
2224 Chants usually omit the time signature and often omit the clef too.
2225
2226 @lilypond[verbatim,quote]
2227 \score {
2228   \new Staff {
2229     \relative c'' {
2230       a4 b c2 |
2231       a4 b c2 |
2232       a4 b c2 |
2233     }
2234   }
2235   \layout {
2236     \context {
2237       \Staff
2238       \remove Bar_engraver
2239       \remove Time_signature_engraver
2240       \remove Clef_engraver
2241     }
2242   }
2243 }
2244 @end lilypond
2245
2246 Chants for psalms in the Anglican tradition are usually either
2247 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
2248 of 7 bars.  Each group of 7 bars is divided into two halves,
2249 corresponding to the two halves of each verse, usually separated by
2250 a double bar line.  Only whole and half notes are used.  The 1st bar
2251 in each half always contains a single chord of whole notes.  This is
2252 the @qq{reciting note}.  Chants are usually centered on the page.
2253
2254 @lilypond[verbatim,quote]
2255 SopranoMusic = \relative g' {
2256   g1 | c2 b | a1 | \bar "||"
2257   a1 | d2 c | c b | c1 | \bar "||"
2258 }
2259
2260 AltoMusic = \relative c' {
2261   e1 | g2 g | f1 |
2262   f1 | f2 e | d d | e1 |
2263 }
2264
2265 TenorMusic = \relative a {
2266   c1 | c2 c | c1 |
2267   d1 | g,2 g | g g | g1 |
2268 }
2269
2270 BassMusic =  \relative c {
2271   c1 | e2 e | f1 |
2272   d1 | b2 c | g' g | c,1 |
2273 }
2274
2275 global = {
2276   \time 2/2
2277 }
2278
2279 % Use markup to center the chant on the page
2280 \markup {
2281   \fill-line {
2282     \score {  % centered
2283       <<
2284         \new ChoirStaff <<
2285           \new Staff <<
2286             \global
2287             \clef "treble"
2288             \new Voice = "Soprano" <<
2289               \voiceOne
2290               \SopranoMusic
2291             >>
2292             \new Voice = "Alto" <<
2293               \voiceTwo
2294               \AltoMusic
2295             >>
2296           >>
2297           \new Staff <<
2298             \clef "bass"
2299             \global
2300             \new Voice = "Tenor" <<
2301               \voiceOne
2302               \TenorMusic
2303             >>
2304             \new Voice = "Bass" <<
2305               \voiceTwo
2306               \BassMusic
2307             >>
2308           >>
2309         >>
2310       >>
2311       \layout {
2312         \context {
2313           \Score
2314           \override SpacingSpanner
2315           #'base-shortest-duration = #(ly:make-moment 1 2)
2316         }
2317         \context {
2318           \Staff
2319           \remove "Time_signature_engraver"
2320         }
2321       }
2322     }  % End score
2323   }
2324 }  % End markup
2325 @end lilypond
2326
2327 Some other approaches to setting such a chant are shown in the first
2328 of the following snippets.
2329
2330 @snippets
2331
2332 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2333 {chant-or-psalms-notation.ly}
2334
2335 Canticles and other liturgical texts may be set more freely, and
2336 may use notational elements from ancient music.  Often the words
2337 are shown underneath and aligned with the notes.  If so, the notes
2338 are spaced in accordance with the syllables rather than the notes'
2339 durations.
2340
2341 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2342 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
2343
2344 @seealso
2345 Learning Manual:
2346 @rlearning{Visibility and color of objects},
2347 @rlearning{Vocal ensembles}.
2348
2349 Notation Reference:
2350 @ref{Ancient notation},
2351 @ref{Bar lines},
2352 @ref{Modifying context plug-ins},
2353 @ref{Typesetting Gregorian chant},
2354 @ref{Unmetered music},
2355 @ref{Visibility of objects}.
2356
2357
2358 @node Pointing a psalm
2359 @unnumberedsubsubsec Pointing a psalm
2360
2361 The words to an Anglican psalm are usually printed in separate
2362 verses centered underneath the chant.
2363
2364 Single chants (with 7 bars) are repeated for every verse.  Double
2365 chants (with 14 bars) are repeated for every pair of verses.  Marks
2366 are inserted in the words to show how they should be fitted to the
2367 chant.  Each verse is divided into two halves.  A colon is usually
2368 used to indicate this division.  This corresponds to the double bar
2369 line in the music.  The words before the colon are sung to the first
2370 three bars of music; the words after the colon are sung to the last
2371 four bars.
2372
2373 Single bar lines (or in some psalters an inverted comma or similar
2374 symbol) are inserted between words to indicate where the bar lines
2375 in the music fall.  In markup mode a single bar line can be entered
2376 with the bar check symbol, @code{|}.
2377
2378 @lilypond[verbatim,quote]
2379 \markup {
2380   \fill-line {
2381     \column {
2382       \left-align {
2383         \line { O come let us sing | unto the | Lord : let }
2384         \line { us heartily rejoice in the | strength of | our }
2385         \line { sal- | -vation. }
2386       }
2387     }
2388   }
2389 }
2390 @end lilypond
2391
2392 Other symbols may require glyphs from the @code{fetaMusic} fonts.
2393 For details, see @ref{Fonts}.
2394
2395 @lilypond[verbatim,quote]
2396 tick = \markup {
2397   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2398 }
2399 \markup {
2400   \fill-line {
2401     \column {
2402       \left-align {
2403         \line { O come let us sing \tick unto the \tick Lord : let }
2404         \line {
2405           us heartily rejoice in the \tick strength of \tick our
2406         }
2407         \line { sal \tick vation. }
2408       }
2409     }
2410   }
2411 }
2412 @end lilypond
2413
2414 Where there is one whole note in a bar all the words corresponding
2415 to that bar are recited on that one note in speech rhythm.  Where
2416 there are two notes in a bar there will usually be only one or two
2417 corresponding syllables.  If there are more that two syllables a
2418 dot is usually inserted to indicate where the change in note occurs.
2419
2420 @lilypond[verbatim,quote]
2421 dot = \markup {
2422   \raise #0.7 \musicglyph #"dots.dot"
2423 }
2424 tick = \markup {
2425   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2426 }
2427 \markup {
2428   \fill-line {
2429     \column {
2430       \left-align {
2431         \line {
2432           O come let us sing \tick unto \dot the \tick Lord : let
2433         }
2434         \line {
2435           us heartily rejoice in the \tick strength of \tick our
2436         }
2437         \line { sal \tick vation. }
2438       }
2439     }
2440   }
2441 }
2442 @end lilypond
2443
2444 In some psalters an asterisk is used to indicate a break in a
2445 recited section instead of a comma, and stressed or slightly
2446 lengthened syllables are indicated in bold text.
2447
2448 @lilypond[verbatim,quote]
2449 dot = \markup {
2450   \raise #0.7 \musicglyph #"dots.dot"
2451 }
2452 tick = \markup {
2453   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2454 }
2455 \markup {
2456   \fill-line {
2457     \column {
2458       \left-align {
2459         \line { Today if ye will hear his voice * }
2460         \line {
2461           \concat { \bold hard en }
2462           | not your | hearts : as in the pro-
2463         }
2464         \line { vocation * and as in the \bold day of tempt- | }
2465         \line { -ation | in the | wilderness. }
2466       }
2467     }
2468   }
2469 }
2470 @end lilypond
2471
2472 In other psalters an accent is placed over the syllable to indicate
2473 stress.
2474
2475 @lilypond[verbatim,quote]
2476 tick = \markup {
2477   \raise #2 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2478 }
2479 \markup {
2480   \fill-line {
2481     \column {
2482       \left-align {
2483         \line {
2484           O come let us \concat {
2485             si \combine \tick ng
2486           }
2487           | unto the | Lord : let
2488         }
2489         \line {
2490           us heartily \concat {
2491             rejo \combine \tick ice
2492           }
2493           in the | strength of | our
2494         }
2495         \line { sal- | -vation. }
2496       }
2497     }
2498   }
2499 }
2500 @end lilypond
2501
2502 The use of markup to center text, and arrange lines in columns is
2503 described in @ref{Formatting text}.
2504
2505 Most of these elements are shown in one or other of the two verses
2506 in the template, see @qq{Psalms} in @rlearning{Vocal ensembles}.
2507
2508 @seealso
2509 Learning Manual:
2510 @rlearning{Vocal ensembles}.
2511
2512 Notation Reference:
2513 @ref{Fonts},
2514 @ref{Formatting text}.
2515
2516
2517 @node Partial measures in hymn tunes
2518 @unnumberedsubsubsec Partial measures in hymn tunes
2519
2520 Hymn tunes frequently start and end every line of music with
2521 partial measures so that each line of music corresponds exactly
2522 with a line of text.  This requires a @code{\partial} command at
2523 the start of the music and @code{\bar "|"} or @code{\bar "||"}
2524 commands at the end of each line.
2525
2526 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2527 {hymn-template.ly}
2528
2529
2530 @node Ancient vocal music
2531 @subsection Ancient vocal music
2532
2533 Ancient vocal music is supported, as explained in @ref{Ancient notation}.
2534
2535 @c TODO
2536
2537 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
2538 @c and "Transcription of Ancient music with incipit" snippet. -vv
2539
2540 @seealso
2541 Notation Reference:
2542 @ref{Ancient notation}.
2543
2544
2545
2546