]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/vocal.itely
Doc: NR 2.1 Vocal: Fix incorrect use of underscore
[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 @cindex lyrics, repeating
702
703 @subheading Simple repeats
704
705 Repeats in @emph{music} are fully described elsewhere; see
706 @ref{Repeats}.  This section explains how to add lyrics to repeated
707 sections of music.
708
709 Lyrics to a section of music that is repeated should be surrounded
710 by exactly the same repeat construct as the music, if the words are
711 unchanged.
712
713 @lilypond[verbatim,quote]
714 \score {
715   <<
716     \new Staff {
717       \new Voice = "melody" {
718         \relative c'' {
719           a4 a a a
720           \repeat volta 2 { b4 b b b }
721         }
722       }
723     }
724     \new Lyrics {
725       \lyricsto "melody" {
726         Not re -- peat -- ed.
727         \repeat volta 2 { Re -- peat -- ed twice. }
728       }
729     }
730   >>
731 }
732 @end lilypond
733
734 The words will then be correctly expanded if the repeats are
735 unfolded.
736
737 @lilypond[verbatim,quote]
738 \score {
739   \unfoldRepeats {
740     <<
741       \new Staff {
742         \new Voice = "melody" {
743           \relative c'' {
744             a4 a a a
745             \repeat volta 2 { b4 b b b }
746           }
747         }
748       }
749       \new Lyrics {
750         \lyricsto "melody" {
751           Not re -- peat -- ed.
752           \repeat volta 2 { Re -- peat -- ed twice. }
753         }
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 @cindex lyric skip
786 @funindex \skip
787
788 When the words to a repeated volta section are different the words
789 to each repeat must be entered in separate @code{Lyrics} contexts.
790 Earlier unrepeated sections must be skipped in the second and
791 subsequent repeats.  The easiest way to skip several notes is to
792 use @code{\repeat unfold} around the @code{\skip} command.
793
794 Note: do not use an underscore, @code{_}, to skip notes as this
795 indicates a melisma and will cause the preceding syllable to be
796 left-aligned.
797
798 @warning{The @code{@bs{}skip} command must be followed by a number,
799 but this number is ignored in lyric mode.  Each @code{@bs{}skip}
800 skips a single note of any value, irrespective of the value of the
801 following number.}
802
803 @lilypond[verbatim,quote]
804 \score {
805   <<
806     \new Staff {
807       \new Voice = "melody" {
808         \relative c'' {
809           a4 a a a
810           \repeat volta 2 { b4 b b b }
811         }
812       }
813     }
814     \new Lyrics {
815       \lyricsto "melody" {
816         Not re -- peat -- ed.
817         The first time words.
818       }
819     }
820     \new Lyrics {
821       \lyricsto "melody" {
822         % skip 4 notes of any duration
823         \repeat unfold 4 { \skip 1 }
824         Sec -- ond time words.
825       }
826     }
827   >>
828 }
829 @end lilypond
830
831 @cindex lyrics, repeating with a temporary voice
832
833 An alternative way, which avoids skips and having to count notes,
834 is to use a temporary voice for the repeated section.  This may be
835 preferable if the earlier sections are still subject to change.  A
836 temporary voice can be inserted anywhere in the main music stream
837 in parallel with it, as shown below, but it may be necessary to
838 keep the main voice alive in complex scores when using this
839 technique; see @ref{Keeping contexts alive}.
840
841 @lilypond[verbatim,quote,ragged-right]
842 \score {
843   <<
844     \new Staff {
845       \new Voice = "singleVoice" {
846         \relative c'' { a4 a a a }
847         \new Voice = "repeatVoice" {
848           \relative c'' \repeat volta 3 { b4 b b b }
849         }
850         \relative c'' { c4 c c c }
851       }
852     }
853     \new Lyrics <<
854       \lyricsto "singleVoice" {
855         Not re -- peat -- ed.
856         The end sec -- tion.
857       }
858       \lyricsto "repeatVoice" {
859         The first time words.
860       }
861     >>
862     \new Lyrics {
863       \lyricsto "repeatVoice" {
864         Sec -- ond time words.
865       }
866     }
867     \new Lyrics {
868       \lyricsto "repeatVoice" {
869         The third time words.
870       }
871     }
872   >>
873 }
874 @end lilypond
875
876 @c TODO lowering a common line of lyrics
877
878 @subheading Repeats with alternative endings
879
880 @cindex lyrics, repeats with alternative endings
881 @cindex repeating lyrics with alternative endings
882 @cindex alternative endings and lyrics
883
884 If the words of the repeated section are the same, exactly the
885 same structure can be used for both the lyrics and music.
886
887 @lilypond[quote,verbatim]
888 \score {
889   <<
890     \new Staff {
891       \time 2/4
892       \new Voice = "melody" {
893         \relative c'' {
894           a4 a a a
895           \repeat volta 2 { b4 b }
896           \alternative { { b b } { b c } }
897         }
898       }
899     }
900     \new Lyrics {
901       \lyricsto "melody" {
902         Not re -- peat -- ed.
903         \repeat volta 2 { Re -- peat -- }
904         \alternative { { ed twice. } { ed twice. } }
905       }
906     }
907   >>
908 }
909 @end lilypond
910
911 But when the repeated section has different words, a repeat
912 construct cannot be used around the words and @code{\skip} commands
913 have to be inserted manually as described in the previous section to
914 skip over the notes in the alternative sections which do not apply.
915
916 @lilypond[verbatim,quote,ragged-right]
917 \score {
918   <<
919     \new Staff {
920       \time 2/4
921       \new Voice = "melody" {
922         \relative c'' {
923           \repeat volta 2 { b4 b }
924           \alternative { { b b } { b c } }
925           c4 c
926         }
927       }
928     }
929     \new Lyrics {
930       \lyricsto "melody" {
931         The first time words.
932         \repeat unfold 2 { \skip 1 }
933         End here.
934       }
935     }
936     \new Lyrics {
937       \lyricsto "melody" {
938         Sec -- ond
939         \repeat unfold 2 { \skip 1 }
940         time words.
941       }
942     }
943   >>
944 }
945 @end lilypond
946
947 @cindex lyrics and tied notes
948 @funindex \repeatTie
949
950 When a note is tied over into two or more alternative endings a
951 tie is used to carry the note into the first alternative ending and
952 a @code{\repeatTie} is used in the second and subsequent endings.
953 This structure causes difficult alignment problems when lyrics are
954 involved and increasing the length of the alternative sections so
955 the tied notes are contained wholly within them may give a more
956 acceptable result.
957
958 The tie creates a melisma into the first alternative, but not into
959 the second and subsequent alternatives, so to align the lyrics
960 correctly it is necessary to disable the automatic creation of
961 melismata over the volta section and insert manual skips.
962
963 @lilypond[quote,verbatim]
964 \score {
965   <<
966     \new Staff {
967       \time 2/4
968       \new Voice = "melody" {
969         \relative c'' {
970           \set melismaBusyProperties = #'()
971           \repeat volta 2 { b4 b ~}
972           \alternative { { b b } { b \repeatTie c } }
973           \unset melismaBusyProperties
974           c4 c
975         }
976       }
977     }
978     \new Lyrics {
979       \lyricsto "melody" {
980         \repeat volta 2 { Here's a __ }
981         \alternative {
982           { \skip 1 verse }
983           { \skip 1 sec }
984         }
985         ond one.
986       }
987     }
988   >>
989 }
990 @end lilypond
991
992 Note that if @code{\unfoldRepeats} is used around a section
993 containing @code{\repeatTie}, the @code{\repeatTie} should be
994 removed to avoid both types of tie being printed.
995
996 When the repeated section has different words a @code{\repeat}
997 cannot be used around the lyrics and @code{\skip} commands need to
998 be inserted manually, as before.
999
1000 @lilypond[quote,verbatim]
1001 \score {
1002   <<
1003     \new Staff {
1004       \time 2/4
1005       \new Voice = "melody" {
1006         \relative c'' {
1007           \repeat volta 2 { b4 b ~}
1008           \alternative { { b b } { b \repeatTie c } }
1009           c4 c
1010         }
1011       }
1012     }
1013     \new Lyrics {
1014       \lyricsto "melody" {
1015         Here's a __ verse.
1016         \repeat unfold 2 { \skip 1 }
1017       }
1018     }
1019     \new Lyrics {
1020       \lyricsto "melody" {
1021         Here's one
1022         \repeat unfold 2 { \skip 1 }
1023         more to sing.
1024       }
1025     }
1026   >>
1027 }
1028 @end lilypond
1029
1030 If you wish to show extenders and hyphens into and out of
1031 alternative sections these must be inserted manually.
1032
1033 @lilypond[quote,verbatim]
1034 \score {
1035   <<
1036     \new Staff {
1037       \time 2/4
1038       \new Voice = "melody" {
1039         \relative c'' {
1040           \repeat volta 2 { b4 b ~}
1041           \alternative { { b b } { b \repeatTie c } }
1042           c4 c
1043         }
1044       }
1045     }
1046     \new Lyrics {
1047       \lyricsto "melody" {
1048         Here's a __ verse.
1049         \repeat unfold 2 { \skip 1 }
1050       }
1051     }
1052     \new Lyrics {
1053       \lyricsto "melody" {
1054         Here's "a_"
1055         \skip 1
1056         "_" sec -- ond one.
1057       }
1058     }
1059   >>
1060 }
1061 @end lilypond
1062
1063
1064
1065 @node Divisi lyrics
1066 @unnumberedsubsubsec Divisi lyrics
1067
1068 You can display alternate (or divisi) lyrics by naming voice
1069 contexts and attaching lyrics to those specific contexts.
1070
1071 @lilypond[verbatim,ragged-right,quote]
1072 \score{ <<
1073   \new Voice = "melody" {
1074     \relative c' {
1075       c4
1076       <<
1077         { \voiceOne c8 e }
1078         \new Voice = "splitpart" { \voiceTwo c4 }
1079       >>
1080       \oneVoice c4 c | c
1081     }
1082   }
1083   \new Lyrics \lyricsto "melody" { we shall not o- ver- come }
1084   \new Lyrics \lyricsto "splitpart" { will }
1085 >> }
1086 @end lilypond
1087
1088
1089 You can use this trick to display different lyrics for a repeated
1090 section.
1091
1092 @lilypond[verbatim,ragged-right,quote]
1093 \score{ <<
1094   \new Voice = "melody" \relative c' {
1095     c2 e | g e | c1 |
1096     \new Voice = "verse" \repeat volta 2 {c4 d e f | g1 | }
1097     a2 b | c1}
1098   \new Lyrics = "mainlyrics" \lyricsto melody \lyricmode {
1099     do mi sol mi do
1100     la si do }
1101   \context Lyrics = "mainlyrics" \lyricsto verse \lyricmode {
1102    do re mi fa sol }
1103   \new Lyrics = "repeatlyrics" \lyricsto verse \lyricmode {
1104    dodo rere mimi fafa solsol }
1105 >>
1106 }
1107 @end lilypond
1108
1109
1110
1111 @node Lyrics independent of notes
1112 @unnumberedsubsubsec Lyrics independent of notes
1113
1114 @cindex Devnull context
1115
1116 In some complex vocal music, it may be desirable to place
1117 lyrics completely independently of notes.  Music defined
1118 inside @code{lyricrhythm} disappears into the
1119 @code{Devnull} context, but the rhythms can still be used
1120 to place the lyrics.
1121
1122 @lilypond[quote,verbatim,ragged-right]
1123 voice = {
1124   c''2
1125   \tag #'music { c''2 }
1126   \tag #'lyricrhythm { c''4. c''8 }
1127   d''1
1128 }
1129
1130 lyr = \lyricmode { I like my cat! }
1131
1132 <<
1133   \new Staff \keepWithTag #'music \voice
1134   \new Devnull="nowhere" \keepWithTag #'lyricrhythm \voice
1135   \new Lyrics \lyricsto "nowhere" \lyr
1136   \new Staff { c'8 c' c' c' c' c' c' c'
1137   c' c' c' c' c' c' c' c' }
1138 >>
1139 @end lilypond
1140
1141 This method is recommended only if the music in the @code{Devnull}
1142 context does not contain melismata.  Melismata are defined by the
1143 @code{Voice} context.  Connecting lyrics to a @code{Devnull} context
1144 makes the voice/lyrics links to get lost, and so does the info on
1145 melismata.  Therefore, if you link lyrics to a @code{Devnull} context,
1146 the implicit melismata get ignored.
1147
1148 @c Conclusion: do not use devnull for lyrics -FV
1149
1150 @c this clarifies http://code.google.com/p/lilypond/issues/detail?id=248
1151
1152 @node Spacing out syllables
1153 @unnumberedsubsubsec Spacing out syllables
1154
1155 @cindex Spacing lyrics
1156 @cindex Lyrics, increasing space between
1157
1158 To increase the spacing between lyrics, set the @code{minimum-distance}
1159 property of @code{LyricSpace}.
1160
1161 @lilypond[relative,verbatim,fragment,quote,ragged-right]
1162 {
1163   c c c c
1164   \override Lyrics.LyricSpace #'minimum-distance = #1.0
1165   c c c c
1166 }
1167 \addlyrics {
1168   longtext longtext longtext longtext
1169   longtext longtext longtext longtext
1170 }
1171 @end lilypond
1172
1173 @noindent
1174 To make this change for all lyrics in the score, set the property in the
1175 layout.
1176
1177 @lilypond[verbatim,quote,ragged-right]
1178 \score {
1179   \relative c' {
1180   c c c c
1181   c c c c
1182   }
1183   \addlyrics {
1184   longtext longtext longtext longtext
1185   longtext longtext longtext longtext
1186   }
1187   \layout {
1188     \context {
1189       \Lyrics
1190       \override LyricSpace #'minimum-distance = #1.0
1191     }
1192   }
1193 }
1194 @end lilypond
1195
1196 @c @snippets
1197 @c This snippet has been renamed to "lyrics-alignment.ly"
1198 @c update as soon as lsr/is updated -vv
1199 @c @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1200 @c {lyrics-alignment.ly}
1201
1202 @c TODO: move to LSR -vv
1203 @snippets
1204
1205 Checking to make sure that text scripts and lyrics are within the margins is
1206 a relatively large computational task.  To speed up processing, LilyPond does
1207 not perform such calculations by default; to enable it, use
1208
1209 @example
1210 \override Score.PaperColumn #'keep-inside-line = ##t
1211 @end example
1212
1213 To make lyrics avoid bar lines as well, use
1214
1215 @example
1216 \layout @{
1217   \context @{
1218     \Lyrics
1219       \consists "Bar_engraver"
1220       \consists "Separating_line_group_engraver"
1221       \override BarLine #'transparent = ##t
1222   @}
1223 @}
1224 @end example
1225
1226 @c TODO Create and add lsr example of lyricMelismaAlignment
1227 @c It's used like this to center-align all lyric syllables,
1228 @c even when notes are tied. -td
1229
1230 @ignore
1231 \layout
1232 {
1233      \context { \Score lyricMelismaAlignment = #0 }
1234 }
1235 @end ignore
1236
1237
1238 @node Placement of lyrics between staves
1239 @unnumberedsubsubsec Placement of lyrics between staves
1240
1241 @c TODO Add text from -user
1242 @c TODO Add new spacing properties, centering lyrics, etc
1243 TBC
1244
1245 @node Stanzas
1246 @subsection Stanzas
1247
1248 @menu
1249 * Adding stanza numbers::
1250 * Adding dynamics marks to stanzas::
1251 * Adding singers' names to stanzas::
1252 * Stanzas with different rhythms::
1253 * Printing stanzas at the end::
1254 * Printing stanzas at the end in multiple columns::
1255 @end menu
1256
1257
1258 @node Adding stanza numbers
1259 @unnumberedsubsubsec Adding stanza numbers
1260
1261 @cindex stanza number
1262
1263 Stanza numbers can be added by setting @code{stanza}, e.g.,
1264
1265 @lilypond[quote,ragged-right,verbatim,relative=2,fragment]
1266 \new Voice {
1267   \time 3/4 g2 e4 a2 f4 g2.
1268 } \addlyrics {
1269   \set stanza = #"1. "
1270   Hi, my name is Bert.
1271 } \addlyrics {
1272   \set stanza = #"2. "
1273   Oh, ché -- ri, je t'aime
1274 }
1275 @end lilypond
1276
1277
1278 @noindent
1279 These numbers are put just before the start of the first syllable.
1280
1281 @c TODO Create and add snippet to show how two lines of a
1282 @c stanza can be grouped together, along these lines:
1283 @c (might need improving a bit) -td
1284
1285 @ignore
1286 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup
1287 #"brace105" }
1288
1289 stanzaOneOne = {
1290   \set stanza = \markup { "1. " \leftbrace }
1291   \lyricmode { Child, you're mine and I love you.
1292     Lend thine ear to what I say.
1293
1294   }
1295 }
1296
1297 stanzaOneThree =  {
1298 %  \set stanza = \markup { "   "}
1299   \lyricmode { Child, I have no great -- er joy
1300     Than to have you walk in truth.
1301
1302   }
1303 }
1304
1305 \new Voice {
1306   \repeat volta 2 { c'8 c' c' c' c' c' c'4
1307                     c'8 c' c' c' c' c' c'4   }
1308 }  \addlyrics { \stanzaOneOne }
1309    \addlyrics { \stanzaOneThree }
1310
1311 @end ignore
1312
1313 @node Adding dynamics marks to stanzas
1314 @unnumberedsubsubsec Adding dynamics marks to stanzas
1315
1316 Stanzas differing in loudness may be indicated by putting a
1317 dynamics mark before each stanza.  In LilyPond, everything coming in
1318 front of a stanza goes into the @code{StanzaNumber} object; dynamics marks
1319 are no different.  For technical reasons, you have to set the stanza
1320 outside @code{\lyricmode}:
1321
1322 @lilypond[quote,ragged-right,verbatim]
1323 text = {
1324   \set stanza = \markup { \dynamic "ff" "1. " }
1325   \lyricmode {
1326     Big bang
1327   }
1328 }
1329
1330 <<
1331   \new Voice = "tune" {
1332     \time 3/4
1333     g'4 c'2
1334   }
1335 \new Lyrics \lyricsto "tune" \text
1336 >>
1337 @end lilypond
1338
1339 @node Adding singers' names to stanzas
1340 @unnumberedsubsubsec Adding singers' names to stanzas
1341
1342 @cindex singer name
1343 @cindex name of singer
1344
1345 Names of singers can also be added.  They are printed at the start of
1346 the line, just like instrument names.  They are created by setting
1347 @code{vocalName}.  A short version may be entered as @code{shortVocalName}.
1348
1349 @lilypond[fragment,ragged-right,quote,verbatim,relative=2]
1350 \new Voice {
1351   \time 3/4 g2 e4 a2 f4 g2.
1352 } \addlyrics {
1353   \set vocalName = #"Bert "
1354   Hi, my name is Bert.
1355 } \addlyrics {
1356   \set vocalName = #"Ernie "
1357   Oh, ché -- ri, je t'aime
1358 }
1359 @end lilypond
1360
1361 @node Stanzas with different rhythms
1362 @unnumberedsubsubsec Stanzas with different rhythms
1363
1364 Often, different stanzas of one song are put to one melody in slightly
1365 differing ways.  Such variations can still be captured with
1366 @code{\lyricsto}.
1367
1368 @subsubheading Ignoring melismata
1369
1370 One possibility is that the text has a melisma in one stanza, but
1371 multiple syllables in another one.  One solution is to make the faster
1372 voice ignore the melisma.  This is done by setting
1373 @code{ignoreMelismata} in the Lyrics context.
1374
1375 @lilypond[verbatim,ragged-right,quote]
1376 <<
1377   \relative c' \new Voice = "lahlah" {
1378     \set Staff.autoBeaming = ##f
1379     c4
1380     \slurDotted
1381     f8.[( g16])
1382     a4
1383   }
1384   \new Lyrics \lyricsto "lahlah" {
1385     more slow -- ly
1386   }
1387   \new Lyrics \lyricsto "lahlah" {
1388     go
1389     \set ignoreMelismata = ##t
1390     fas -- ter
1391     \unset ignoreMelismata
1392     still
1393   }
1394 >>
1395 @end lilypond
1396
1397 @knownissues
1398 Unlike most @code{\set} commands, @code{\set ignoreMelismata} does
1399 not work if prefixed with @code{\once}.  It is necessary to use
1400 @code{\set} and @code{\unset} to bracket the lyrics where melismata
1401 are to be ignored.
1402
1403 @subsubheading Adding syllables to grace notes
1404
1405 By default, grace notes (e.g. via @code{\grace}) do not get assigned
1406 syllables when using @code{\lyricsto}, but this behavior can be
1407 changed:
1408
1409 @lilypond[verbatim,ragged-right,quote]
1410 \relative c' {
1411   f4 \appoggiatura a32 b4
1412   \grace { f16[ a16] } b2
1413   \afterGrace b2 { f16[ a16] }
1414   \appoggiatura a32 b4
1415   \acciaccatura a8 b4
1416 }
1417 \addlyrics {
1418   normal
1419   \set includeGraceNotes = ##t
1420   case,
1421   gra -- ce case,
1422   after -- grace case,
1423   \set ignoreMelismata = ##t
1424   app. case,
1425   acc. case.
1426 }
1427 @end lilypond
1428
1429 @knownissues
1430 Like for @code{associatedVoice}, @code{includeGraceNotes} needs to be
1431 set at latest one syllable before the one which is to be put under a
1432 grace note.  For the case of a grace note at the very beginning of a
1433 piece of music, consider using a @code{\with} or @code{\context}
1434 block:
1435
1436 @lilypond[verbatim,ragged-right,quote]
1437 <<
1438   \new Voice = melody \relative c' {
1439     \grace { c16[( d e f] }
1440     g1) f
1441   }
1442   \new Lyrics \with { includeGraceNotes = ##t }
1443   \lyricsto melody {
1444     Ah __ fa
1445   }
1446 >>
1447 @end lilypond
1448
1449 @subsubheading Switching to an alternative melody
1450
1451 More complex variations in text underlay are possible.  It is possible
1452 to switch the melody for a line of lyrics during the text.  This is
1453 done by setting the @code{associatedVoice} property.  In the example
1454
1455 @lilypond[ragged-right,quote]
1456 <<
1457   \relative c' \new Voice = "lahlah" {
1458     \set Staff.autoBeaming = ##f
1459     c4
1460     <<
1461       \new Voice = "alternative" {
1462         \voiceOne
1463         \times 2/3 {
1464           % show associations clearly.
1465           \override NoteColumn #'force-hshift = #-3
1466           f8 f g
1467         }
1468       }
1469       {
1470         \voiceTwo
1471         f8.[ g16]
1472         \oneVoice
1473       } >>
1474     a8( b) c
1475   }
1476   \new Lyrics \lyricsto "lahlah" {
1477     Ju -- ras -- sic Park
1478   }
1479   \new Lyrics \lyricsto "lahlah" {
1480     % Tricky: need to set associatedVoice
1481     % one syllable too soon!
1482     \set associatedVoice = alternative % applies to "ran"
1483     Ty --
1484     ran --
1485     no --
1486     \set associatedVoice = lahlah % applies to "rus"
1487     sau -- rus Rex
1488   } >>
1489 @end lilypond
1490
1491 @noindent
1492 the text for the first stanza is set to a melody called @q{lahlah},
1493
1494 @example
1495 \new Lyrics \lyricsto "lahlah" @{
1496   Ju -- ras -- sic Park
1497 @}
1498 @end example
1499
1500
1501 The second stanza initially is set to the @code{lahlah} context, but
1502 for the syllable @q{ran}, it switches to a different melody.
1503 This is achieved with
1504 @example
1505 \set associatedVoice = alternative
1506 @end example
1507
1508 @noindent
1509 Here, @code{alternative} is the name of the @code{Voice} context
1510 containing the triplet.
1511
1512 @c TODO: make this easier to understand -vv
1513 This command must be one syllable too early, before @q{Ty} in this
1514 case.  In other words, changing the associatedVoice happens one step
1515 later than expected.  This is for technical reasons, and it is not a
1516 bug.
1517
1518 @example
1519 \new Lyrics \lyricsto "lahlah" @{
1520   \set associatedVoice = alternative % applies to "ran"
1521   Ty --
1522   ran --
1523   no --
1524   \set associatedVoice = lahlah % applies to "rus"
1525   sau -- rus Rex
1526 @}
1527 @end example
1528
1529 @noindent
1530 The underlay is switched back to the starting situation by assigning
1531 @code{lahlah} to @code{associatedVoice}.
1532
1533
1534 @node Printing stanzas at the end
1535 @unnumberedsubsubsec Printing stanzas at the end
1536
1537 Sometimes it is appropriate to have one stanza set
1538 to the music, and the rest added in verse form at
1539 the end of the piece.  This can be accomplished by adding
1540 the extra verses into a @code{\markup} section outside
1541 of the main score block.  Notice that there are two
1542 different ways to force linebreaks when using
1543 @code{\markup}.
1544
1545 @lilypond[ragged-right,verbatim,quote]
1546 melody = \relative c' {
1547 e d c d | e e e e |
1548 d d e d | c1 |
1549 }
1550
1551 text = \lyricmode {
1552 \set stanza = #"1." Ma- ry had a lit- tle lamb,
1553 its fleece was white as snow.
1554 }
1555
1556 \score{ <<
1557   \new Voice = "one" { \melody }
1558   \new Lyrics \lyricsto "one" \text
1559 >>
1560   \layout { }
1561 }
1562 \markup { \column{
1563   \line{ Verse 2. }
1564   \line{ All the children laughed and played }
1565   \line{ To see a lamb at school. }
1566   }
1567 }
1568 \markup{
1569   \wordwrap-string #"
1570   Verse 3.
1571
1572   Mary took it home again,
1573
1574   It was against the rule."
1575 }
1576 @end lilypond
1577
1578
1579 @node Printing stanzas at the end in multiple columns
1580 @unnumberedsubsubsec Printing stanzas at the end in multiple columns
1581
1582 When a piece of music has many verses, they are often printed in
1583 multiple columns across the page.  An outdented verse number often
1584 introduces each verse.  The following example shows how to produce such
1585 output in LilyPond.
1586
1587 @lilypond[ragged-right,quote,verbatim]
1588 melody = \relative c' {
1589   c c c c | d d d d
1590 }
1591
1592 text = \lyricmode {
1593   \set stanza = #"1." This is verse one.
1594   It has two lines.
1595 }
1596
1597 \score{ <<
1598     \new Voice = "one" { \melody }
1599     \new Lyrics \lyricsto "one" \text
1600    >>
1601   \layout { }
1602 }
1603
1604 \markup {
1605   \fill-line {
1606     \hspace #0.1 % moves the column off the left margin;
1607         % can be removed if space on the page is tight
1608      \column {
1609       \line { \bold "2."
1610         \column {
1611           "This is verse two."
1612           "It has two lines."
1613         }
1614       }
1615       \hspace #0.1 % adds vertical spacing between verses
1616       \line { \bold "3."
1617         \column {
1618           "This is verse three."
1619           "It has two lines."
1620         }
1621       }
1622     }
1623     \hspace #0.1  % adds horizontal spacing between columns;
1624         % if they are still too close, add more " " pairs
1625         % until the result looks good
1626      \column {
1627       \line { \bold "4."
1628         \column {
1629           "This is verse four."
1630           "It has two lines."
1631         }
1632       }
1633       \hspace #0.1 % adds vertical spacing between verses
1634       \line { \bold "5."
1635         \column {
1636           "This is verse five."
1637           "It has two lines."
1638         }
1639       }
1640     }
1641   \hspace #0.1 % gives some extra space on the right margin;
1642       % can be removed if page space is tight
1643   }
1644 }
1645 @end lilypond
1646
1647
1648 @seealso
1649 Internals Reference:
1650 @rinternals{LyricText},
1651 @rinternals{StanzaNumber}.
1652
1653
1654 @node Songs
1655 @subsection Songs
1656
1657 @menu
1658 * References for songs::
1659 * Lead sheets::
1660 @end menu
1661
1662 @node References for songs
1663 @unnumberedsubsubsec References for songs
1664
1665 @c TODO chords, setting simple songs (LM), stanzas
1666 TBC
1667
1668 @node Lead sheets
1669 @unnumberedsubsubsec Lead sheets
1670
1671 Lead sheets may be printed by combining vocal parts and @q{chord mode};
1672 this syntax is explained in @ref{Chord notation}.
1673
1674 @snippets
1675 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1676 {simple-lead-sheet.ly}
1677
1678 @seealso
1679 Notation Reference:
1680 @ref{Chord notation}.
1681
1682
1683 @node Choral
1684 @subsection Choral
1685
1686 @cindex anthems
1687 @cindex part songs
1688 @cindex oratorio
1689 @cindex SATB
1690
1691 This section discusses notation issues that relate most directly
1692 to choral music.  This includes anthems, part songs, oratorio,
1693 etc.
1694
1695 @menu
1696 * References for choral::
1697 * Score layouts for choral::
1698 * Divided voices::
1699 @end menu
1700
1701 @node References for choral
1702 @unnumberedsubsubsec References for choral
1703
1704 Choral music is usually notated on two, three or four staves within
1705 a @code{ChoirStaff} group.  Accompaniment, if required, is placed
1706 beneath in a @code{PianoStaff} group, which is usually reduced in
1707 size for @emph{a capella} choral works.  The notes for each vocal
1708 part are placed in a @code{Voice} context, with each staff
1709 being given either a single vocal part (i.e., one @code{Voice}) or
1710 a pair of vocal parts (i.e., two @code{Voice}s).
1711
1712 Words are placed in @code{Lyrics} contexts, either underneath each
1713 corresponding music staff, or one above and one below the music
1714 staff if this contains the music for two parts.
1715
1716 Several common topics in choral music are described fully elsewhere:
1717
1718 @itemize
1719
1720 @item
1721 An introduction to creating an SATB vocal score can be found in
1722 the Learning Manual, see @rlearning{Four-part SATB vocal score}.
1723
1724 @item
1725 Several templates suitable for various styles of choral music can
1726 also be found in the Learning Manual, see
1727 @rlearning{Vocal ensembles}.
1728
1729 @item
1730 For information about @code{ChoirStaff} and @code{PianoStaff} see
1731 @ref{Grouping staves}.
1732
1733 @item
1734 Shape noteheads, as used in Sacred Harp and similar notation, are
1735 described in @ref{Shape note heads}.
1736
1737 @item
1738 When two vocal parts share a staff the stems, ties, slurs, etc., of
1739 the higher part will be directed up and those of the lower part
1740 down.  To do this, use @code{\voiceOne} and @code{\voiceTwo}.  See
1741 @ref{Single-staff polyphony}.
1742
1743 @end itemize
1744
1745 @predefined
1746 @code{\oneVoice},
1747 @code{\voiceOne},
1748 @code{\voiceTwo}.
1749
1750 @seealso
1751 Learning Manual:
1752 @rlearning{Four-part SATB vocal score},
1753 @rlearning{Vocal ensembles}.
1754
1755 Notation Reference:
1756 @ref{Context layout order},
1757 @ref{Grouping staves},
1758 @ref{Shape note heads},
1759 @ref{Single-staff polyphony}.
1760
1761 Internals Reference:
1762 @rinternals{ChoirStaff},
1763 @rinternals{Lyrics},
1764 @rinternals{PianoStaff}.
1765
1766 @node Score layouts for choral
1767 @unnumberedsubsubsec Score layouts for choral
1768
1769 Choral music containing four staves, with or without piano
1770 accompaniment, is usually laid out with two systems per page.
1771 Depending on the page size, achieving this may require changes
1772 to several default settings.  The following settings should be
1773 considered:
1774
1775 @itemize
1776
1777 @item
1778 The global staff size can be modified to change the overall size
1779 of the elements of the score.  See @ref{Setting the staff size}.
1780
1781 @item
1782 The distances between the systems, the staves and the lyrics can
1783 all be adjusted independently.  See @ref{Vertical spacing}.
1784
1785 @item
1786 The dimensions of the vertical layout variables can be displayed as
1787 an aid to adjusting the vertical spacing.  This and other
1788 possibilities for fitting the music onto fewer pages are described
1789 in @ref{Fitting music onto fewer pages}.
1790
1791 @item
1792 If the number of systems per page changes from one to two it is
1793 customary to indicate this with a system separator mark between
1794 the two systems.  See @ref{Separating systems}.
1795
1796 @item
1797 For details of other page formatting properties, see
1798 @ref{Page formatting}.
1799
1800 @end itemize
1801
1802
1803 Dynamic markings by default are placed below the staff, but in
1804 choral music they are usually placed above the staff in order to
1805 avoid the lyrics.  The predefined command @code{\dynamicUp} does
1806 this for the dynamic markings in a single @code{Voice} context.
1807 If there are many @code{Voice} contexts this predefined command
1808 would have to be placed in every one.  Alternatively its expanded
1809 form can be used to place all dynamic markings in the entire score
1810 above their respective staves, as shown here:
1811
1812 @lilypond[verbatim,quote]
1813 \score {
1814   \new ChoirStaff <<
1815     \new Staff {
1816       \new Voice {
1817         \relative c'' { g4\f g g g }
1818       }
1819     }
1820     \new Staff {
1821       \new Voice {
1822         \relative c' { d4 d d\p d }
1823       }
1824     }
1825   >>
1826   \layout {
1827     \context {
1828       \Score
1829       \override DynamicText #'direction = #UP
1830       \override DynamicLineSpanner #'direction = #UP
1831     }
1832   }
1833 }
1834 @end lilypond
1835
1836 @predefined
1837 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
1838
1839 @seealso
1840 Notation Reference:
1841 @ref{Changing spacing},
1842 @ref{Displaying spacing},
1843 @ref{Fitting music onto fewer pages},
1844 @ref{Page formatting},
1845 @ref{Score layout},
1846 See @ref{Separating systems},
1847 @ref{Setting the staff size},
1848 @ref{Using an extra voice for breaks},
1849 @ref{Vertical spacing}.
1850
1851 Internals Reference:
1852 @rinternals{VerticalAxisGroup},
1853 @rinternals{StaffGrouper}.
1854
1855
1856 @node Divided voices
1857 @unnumberedsubsubsec Divided voices
1858
1859 @cindex voices, divided
1860
1861 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1862 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
1863
1864 @seealso
1865 Notation Reference:
1866 @ref{Expressive marks as lines}.
1867
1868
1869 @node Opera and stage musicals
1870 @subsection Opera and stage musicals
1871
1872 The music, lyrics and dialogue to opera and stage musicals are
1873 usually set out in one or more of the following forms:
1874
1875 @itemize
1876
1877 @item
1878 A @emph{Conductors' Score} containing the full orchestral and vocal
1879 parts, together with libretto cues if there are spoken passages.
1880
1881 @item
1882 @emph{Orchestral Parts} containing the music for the individual
1883 instruments of the orchestra or band.
1884
1885 @item
1886 A @emph{Vocal Score} containing all vocal parts with piano
1887 accompaniment.  The accompaniment is usually an orchestral
1888 reduction, and if so the name of the original orchestral instrument
1889 is often indicated.  Vocal scores sometimes includes stage
1890 directions and libretto cues.
1891
1892 @item
1893 A @emph{Vocal Book} containing just the vocal parts
1894 (no accompaniment), sometimes combined with the libretto.
1895
1896 @item
1897 A @emph{Libretto} containing the extended passages of spoken
1898 dialogue usually found in musicals, together with the words to the
1899 sung parts.  Stage directions are usually included.  LilyPond can
1900 be used to typeset libretti but as they contain no music
1901 alternative methods may be preferable.
1902
1903 @end itemize
1904
1905 The sections in the LilyPond documentation which cover the topics
1906 needed to create scores in the styles commonly found in opera and
1907 musicals are indicated in the References below.  This is followed
1908 by sections covering those techniques which are peculiar to
1909 typesetting opera and musical scores.
1910
1911 @menu
1912 * References for opera and stage musicals::
1913 * Character names::
1914 * Musical cues::
1915 * Spoken music::
1916 * Dialogue over music::
1917 @end menu
1918
1919 @node References for opera and stage musicals
1920 @unnumberedsubsubsec References for opera and stage musicals
1921
1922 @itemize
1923
1924 @item
1925 A conductors' score contains many grouped staves and lyrics.  Ways
1926 of grouping staves is shown in @ref{Grouping staves}.  To nest
1927 groups of staves see @ref{Nested staff groups}.
1928
1929 @item
1930 The printing of empty staves in conductors' scores and vocal scores
1931 is often suppressed.  To create such a @qq{Frenched score} see
1932 @ref{Hiding staves}.
1933
1934 @item
1935 Writing orchestral parts is covered in @ref{Writing parts}.
1936 Other sections in the Specialist notation chapter may be relevant,
1937 depending on the orchestration used.  Many instruments are
1938 transposing instruments, see @ref{Instrument transpositions}.
1939
1940 @item
1941 If the number of systems per page changes from page to page it is
1942 customary to separate the systems with a system separator mark.
1943 See @ref{Separating systems}.
1944
1945 @item
1946 For details of other page formatting properties, see
1947 @ref{Page formatting}.
1948
1949 @item
1950 Dialogue cues and stage directions can be inserted with markup.
1951 See @ref{Text}.  Extensive stage directions can be inserted with
1952 a section of stand-alone markup between two @code{\score} blocks.
1953 See @ref{Separate text}.
1954
1955 @end itemize
1956
1957 @seealso
1958 Musical Glossary:
1959 @rglos{Frenched score},
1960 @rglos{Frenched staves},
1961 @rglos{transposing instrument}.
1962
1963 Notation Manual:
1964 @ref{Grouping staves},
1965 @ref{Hiding staves},
1966 @ref{Instrument transpositions},
1967 @ref{Nested staff groups},
1968 @ref{Page formatting},
1969 @ref{Separating systems},
1970 @ref{Transpose},
1971 @ref{Writing parts},
1972 @ref{Writing text}.
1973
1974
1975 @node Character names
1976 @unnumberedsubsubsec Character names
1977
1978 @cindex character names
1979 @cindex names, character
1980
1981 Character names are usually shown to the left of the staff when the
1982 staff is dedicated to that character alone.  The instrument name can
1983 be used for this purpose.
1984
1985 @lilypond[quote,verbatim,ragged-right]
1986 \score {
1987   <<
1988     \new Staff {
1989       \set Staff.instrumentName = #"Kaspar"
1990       \set Staff.shortInstrumentName = #"Kas"
1991       \relative c' {
1992         \clef "G_8"
1993         c4 c c c
1994         \break
1995         c4 c c c
1996       }
1997     }
1998     \new Staff {
1999       \set Staff.instrumentName = #"Melchior"
2000       \set Staff.shortInstrumentName = #"Mel"
2001       \clef "bass"
2002       \relative c' {
2003         a4 a a a
2004         a4 a a a
2005       }
2006     }
2007   >>
2008 }
2009 @end lilypond
2010
2011 When two or more characters share a staff the character's name is
2012 usually printed above the staff at the start of every section
2013 applying to that character.  This can be done with markup.  Often a
2014 specific font is used for this purpose.
2015
2016 @lilypond[quote,verbatim,relative=1]
2017 \clef "G_8"
2018 c4^\markup \fontsize #1 \smallCaps Kaspar
2019 c c c
2020 \clef "bass"
2021 a4^\markup \fontsize #1 \smallCaps Melchior
2022 a a a
2023 \clef "G_8"
2024 c4^\markup \fontsize #1 \smallCaps Kaspar
2025 c c c
2026 @end lilypond
2027
2028 Alternatively, if there are many character changes, it may be
2029 easier to set up @qq{instrument} definitions for each character at
2030 the top level so that @code{\instrumentSwitch} can be used to
2031 indicate each change.
2032
2033 @lilypond[quote,verbatim]
2034 \addInstrumentDefinition #"kaspar"
2035   #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
2036      (shortInstrumentName . "Kas.")
2037      (clefGlyph . "clefs.G")
2038      (clefOctavation . -7)
2039      (middleCPosition . 1)
2040      (clefPosition . -2)
2041      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Kaspar"))
2042      (midiInstrument . "voice oohs"))
2043
2044 \addInstrumentDefinition #"melchior"
2045   #`((instrumentTransposition . ,(ly:make-pitch 0 0 0))
2046      (shortInstrumentName . "Mel.")
2047      (clefGlyph . "clefs.F")
2048      (clefOctavation . 0)
2049      (middleCPosition . 6)
2050      (clefPosition . 2)
2051      (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Melchior"))
2052      (midiInstrument . "voice aahs"))
2053
2054 \relative c' {
2055   \instrumentSwitch "kaspar"
2056   c4 c c c
2057   \instrumentSwitch "melchior"
2058   a4 a a a
2059   \instrumentSwitch "kaspar"
2060   c4 c c c
2061 }
2062 @end lilypond
2063
2064 @seealso
2065 Notation Reference:
2066 @ref{Instrument names},
2067 @ref{Scheme functions},
2068 @ref{Text},
2069 @ref{Text markup commands}.
2070
2071 Extending LilyPond:
2072 @rextend{Markup construction in Scheme}.
2073
2074 @node Musical cues
2075 @unnumberedsubsubsec Musical cues
2076
2077 @cindex musical cues
2078 @cindex cues, musical
2079
2080 Musical cues can be inserted in Vocal Scores, Vocal Books and
2081 Orchestral Parts to indicate what music in another part
2082 immediately precedes an entry.  Also, cues are often inserted in the
2083 piano reduction in Vocal Scores to indicate what each orchestral
2084 instrument is playing.  This aids the conductor when a full
2085 Conductors' Score is not available.
2086
2087 The basic mechanism for inserting cues is fully explained in the
2088 main text, see @ref{Quoting other voices} and
2089 @ref{Formatting cue notes}.  But when many cues have to be
2090 inserted, for example, as an aid to a conductor in a vocal score,
2091 the instrument name must be positioned carefully just before and
2092 close to the start of the cued notes.  The following example shows
2093 how this is done.  Note that the name of the grob for overriding
2094 the cued instrument name is @code{InstrumentSwitch}.
2095
2096 @lilypond[quote,verbatim]
2097 flute = \relative c'' {
2098   s4 s4 e g
2099 }
2100 \addQuote "flute" { \flute }
2101
2102 pianoRH = \relative c'' {
2103   c4. g8
2104   % position name of cued instrument just before the cued notes
2105   \once \override CueVoice.InstrumentSwitch
2106     #'self-alignment-X = #RIGHT
2107   % position name of cued instrument above the staff
2108   \once \override CueVoice.InstrumentSwitch #'direction = #UP
2109   \set CueVoice.instrumentCueName = "Flute"
2110   \cueDuring "flute" #UP { g4 bes4 }
2111 }
2112 pianoLH = \relative c { c4 <c' e> e, <g c> }
2113
2114 \score {
2115   \new PianoStaff <<
2116     \new Staff {
2117       \pianoRH
2118     }
2119     \new Staff {
2120       \clef "bass"
2121       \pianoLH
2122     }
2123   >>
2124 }
2125 @end lilypond
2126
2127 If a transposing instrument is being cued the instrument part should
2128 specify its key so the conversion of its cued notes will be done
2129 automatically.  The example below shows this transposition for a
2130 B-flat clarinet.  The notes in this example are low on the staff so
2131 @code{#DOWN} is specified in @code{\cueDuring} (so the stems are
2132 down) and the instrument name is positioned below the staff.  Note
2133 also that the piano right-hand voice is explicitly declared.  This
2134 is because the cued notes in this example begin at the start of the
2135 first bar and this would otherwise cause the entire piano right-hand
2136 notes to be placed in a @code{CueVoice} context.
2137
2138 @lilypond[quote,verbatim]
2139 clarinet = \relative c' {
2140   \transposition bes
2141   fis4 d d c
2142 }
2143 \addQuote "clarinet" { \clarinet }
2144
2145 pianoRH = \relative c'' {
2146   \transposition c'
2147   % position name of cued instrument just before the cued notes
2148   \once \override CueVoice.InstrumentSwitch
2149     #'self-alignment-X = #RIGHT
2150   % position name of cued instrument below the staff
2151   \once \override CueVoice.InstrumentSwitch #'direction = #DOWN
2152   \set CueVoice.instrumentCueName = "Clar."
2153   \cueDuring "clarinet" #DOWN { c4. g8 }
2154   g4 bes4
2155 }
2156 pianoLH = \relative c { c4 <c' e> e, <g c> }
2157
2158 \score {
2159   <<
2160     \new PianoStaff <<
2161       \new Staff {
2162         \new Voice {
2163           \pianoRH
2164         }
2165       }
2166       \new Staff {
2167         \clef "bass"
2168         \pianoLH
2169       }
2170     >>
2171   >>
2172 }
2173 @end lilypond
2174
2175 From these two examples it is clear that inserting many cues in a
2176 Vocal Score would be extremely tedious, and the notes of the piano
2177 part would be obscured by the many overrides.  However, as the
2178 following snippet shows, it is possible to define a music function
2179 to reduce the amount of typing and to make the piano notes clearer.
2180
2181 @snippets
2182 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2183 {adding-orchestral-cues-to-a-vocal-score.ly}
2184
2185 @seealso
2186 Musical Glossary:
2187 @rglos{cue-notes}.
2188
2189 Notation Reference:
2190 @ref{Aligning objects},
2191 @ref{Direction and placement},
2192 @ref{Formatting cue notes},
2193 @ref{Quoting other voices},
2194 @ref{Using music functions}.
2195
2196 Snippets:
2197 @rlsr{vocal-music}.
2198
2199 Internals Reference:
2200 @rinternals{InstrumentSwitch},
2201 @rinternals{CueVoice}.
2202
2203 @knownissues
2204 @code{\cueDuring} automatically inserts a @code{CueVoice} context
2205 and all cue notes are placed in that context.  This means it is not
2206 possible to have two overlapping sequences of cued notes by this
2207 technique.  Overlapping sequences could be entered by explicitly
2208 declaring separate @code{CueVoice} contexts and using
2209 @code{\quoteDuring} to extract and insert the cued notes.
2210
2211
2212 @node Spoken music
2213 @unnumberedsubsubsec Spoken music
2214
2215 @cindex parlato
2216 @cindex Sprechgesang
2217 Such effects as @q{parlato} or @q{Sprechgesang} require performers to speak
2218 without pitch but still with rhythm; these are notated by cross
2219 note heads, as demonstrated in @ref{Special note heads}.
2220
2221 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
2222 @c add "showing the rhythm of a melody" snip
2223 @c add "one staff-line notation"
2224 @c add "improvisation" ref
2225 @c add "lyrics independents of notes" ref
2226
2227 @node Dialogue over music
2228 @unnumberedsubsubsec Dialogue over music
2229
2230 TBC
2231
2232
2233 @node Chants psalms and hymns
2234 @subsection Chants psalms and hymns
2235
2236 @cindex chants
2237 @cindex psalms
2238 @cindex hymns
2239 @cindex religious music
2240
2241 The music and words for chants, psalms and hymns usually follow a
2242 well-established format in any particular church.  Although the
2243 formats may differ from church to church the type-setting problems
2244 which arise are broadly similar, and are covered in this section.
2245
2246 @menu
2247 * References for chants and psalms::
2248 * Setting a chant::
2249 * Pointing a psalm::
2250 * Partial measures in hymn tunes::
2251 @end menu
2252
2253 @node References for chants and psalms
2254 @unnumberedsubsubsec References for chants and psalms
2255
2256 Typesetting Gregorian chant in various styles of ancient notation
2257 is described in @ref{Ancient notation}.
2258
2259 @seealso
2260 Notation reference:
2261 @ref{Ancient notation}.
2262
2263
2264 @node Setting a chant
2265 @unnumberedsubsubsec Setting a chant
2266
2267 Modern chant settings use modern notation with varying numbers of
2268 elements taken from ancient notation.  Some of the elements and
2269 methods to consider are shown here.
2270
2271 Chants often use quarter notes without stems to indicate the pitch,
2272 with the rhythm being taken from the spoken rhythm of the words.
2273
2274 @lilypond[verbatim,quote]
2275 stemOff = { \override Staff.Stem #'transparent = ##t }
2276
2277 \relative c' {
2278   \stemOff
2279   a'4 b c2 |
2280 }
2281
2282 @end lilypond
2283
2284 Chants often omit the bar lines or use shortened or dotted bar
2285 lines to indicate pauses in the music.  To omit all bar lines from
2286 all staves remove the bar line engraver completely:
2287
2288 @lilypond[verbatim,quote]
2289 \score {
2290   \new StaffGroup <<
2291     \new Staff {
2292       \relative c'' {
2293         a4 b c2 |
2294         a4 b c2 |
2295         a4 b c2 |
2296       }
2297     }
2298     \new Staff {
2299       \relative c'' {
2300         a4 b c2 |
2301         a4 b c2 |
2302         a4 b c2 |
2303       }
2304     }
2305   >>
2306   \layout {
2307     \context {
2308       \Staff
2309       \remove Bar_engraver
2310     }
2311   }
2312 }
2313 @end lilypond
2314
2315 Bar lines can also be removed on a staff-by-staff basis:
2316
2317 @lilypond[verbatim, quote]
2318 \score {
2319   \new ChoirStaff <<
2320     \new Staff
2321     \with { \remove Bar_engraver } {
2322       \relative c'' {
2323         a4 b c2 |
2324         a4 b c2 |
2325         a4 b c2 |
2326       }
2327     }
2328     \new Staff {
2329       \relative c'' {
2330         a4 b c2 |
2331         a4 b c2 |
2332         a4 b c2 |
2333       }
2334     }
2335   >>
2336 }
2337 @end lilypond
2338
2339 To remove bar lines from just a section of music treat it as a
2340 cadenza.  If the section is long you may need to insert dummy
2341 barlines with @code{\bar ""} to show where the line should break.
2342
2343 @lilypond[verbatim,quote,relative=2]
2344 a4 b c2 |
2345 \cadenzaOn
2346 a4 b c2
2347 a4 b c2
2348 \bar ""
2349 a4 b c2
2350 a4 b c2
2351 \cadenzaOff
2352 a4 b c2 |
2353 a4 b c2 |
2354 @end lilypond
2355
2356 Rests or pauses in chants can be indicated by modified bar lines.
2357
2358 @lilypond[verbatim, quote,relative=2]
2359 a4
2360 \cadenzaOn
2361 b c2
2362 a4 b c2
2363 \bar "'"
2364 a4 b c2
2365 a4 b c2
2366 \bar ":"
2367 a4 b c2
2368 \bar "dashed"
2369 a4 b c2
2370 \bar "||"
2371 @end lilypond
2372
2373 Alternatively, the notation used in Gregorian chant for pauses or
2374 rests is sometimes used even though the rest of the notation is
2375 modern.  This uses a modified @code{\breathe} mark:
2376
2377 @lilypond[verbatim,quote]
2378 divisioMinima = {
2379   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-minima
2380   \once \override BreathingSign  #'Y-offset = #0
2381   \breathe
2382 }
2383 divisioMaior = {
2384   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maior
2385   \once \override BreathingSign  #'Y-offset = #0
2386   \breathe
2387 }
2388 divisioMaxima = {
2389   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maxima
2390   \once \override BreathingSign  #'Y-offset = #0
2391   \breathe
2392 }
2393 finalis = {
2394   \once \override BreathingSign  #'stencil = #ly:breathing-sign::finalis
2395   \once \override BreathingSign  #'Y-offset = #0
2396   \breathe
2397 }
2398
2399 \score {
2400   \relative c'' {
2401     g2 a4 g
2402     \divisioMinima
2403     g2 a4 g
2404     \divisioMaior
2405     g2 a4 g
2406     \divisioMaxima
2407     g2 a4 g
2408     \finalis
2409   }
2410   \layout {
2411     \context {
2412       \Staff
2413       \remove Bar_engraver
2414     }
2415   }
2416 }
2417 @end lilypond
2418
2419 Chants usually omit the time signature and often omit the clef too.
2420
2421 @lilypond[verbatim,quote]
2422 \score {
2423   \new Staff {
2424     \relative c'' {
2425       a4 b c2 |
2426       a4 b c2 |
2427       a4 b c2 |
2428     }
2429   }
2430   \layout {
2431     \context {
2432       \Staff
2433       \remove Bar_engraver
2434       \remove Time_signature_engraver
2435       \remove Clef_engraver
2436     }
2437   }
2438 }
2439 @end lilypond
2440
2441 Chants for psalms in the Anglican tradition are usually either
2442 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
2443 of 7 bars.  Each group of 7 bars is divided into two halves,
2444 corresponding to the two halves of each verse, usually separated by
2445 a double bar line.  Only whole and half notes are used.  The 1st bar
2446 in each half always contains a single chord of whole notes.  This is
2447 the @qq{reciting note}.  Chants are usually centered on the page.
2448
2449 @lilypond[verbatim,quote]
2450 SopranoMusic = \relative g' {
2451   g1 | c2 b | a1 | \bar "||"
2452   a1 | d2 c | c b | c1 | \bar "||"
2453 }
2454
2455 AltoMusic = \relative c' {
2456   e1 | g2 g | f1 |
2457   f1 | f2 e | d d | e1 |
2458 }
2459
2460 TenorMusic = \relative a {
2461   c1 | c2 c | c1 |
2462   d1 | g,2 g | g g | g1 |
2463 }
2464
2465 BassMusic =  \relative c {
2466   c1 | e2 e | f1 |
2467   d1 | b2 c | g' g | c,1 |
2468 }
2469
2470 global = {
2471   \time 2/2
2472 }
2473
2474 % Use markup to center the chant on the page
2475 \markup {
2476   \fill-line {
2477     \score {  % centered
2478       <<
2479         \new ChoirStaff <<
2480           \new Staff <<
2481             \global
2482             \clef "treble"
2483             \new Voice = "Soprano" <<
2484               \voiceOne
2485               \SopranoMusic
2486             >>
2487             \new Voice = "Alto" <<
2488               \voiceTwo
2489               \AltoMusic
2490             >>
2491           >>
2492           \new Staff <<
2493             \clef "bass"
2494             \global
2495             \new Voice = "Tenor" <<
2496               \voiceOne
2497               \TenorMusic
2498             >>
2499             \new Voice = "Bass" <<
2500               \voiceTwo
2501               \BassMusic
2502             >>
2503           >>
2504         >>
2505       >>
2506       \layout {
2507         \context {
2508           \Score
2509           \override SpacingSpanner
2510           #'base-shortest-duration = #(ly:make-moment 1 2)
2511         }
2512         \context {
2513           \Staff
2514           \remove "Time_signature_engraver"
2515         }
2516       }
2517     }  % End score
2518   }
2519 }  % End markup
2520 @end lilypond
2521
2522 Some other approaches to setting such a chant are shown in the first
2523 of the following snippets.
2524
2525 @snippets
2526
2527 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2528 {chant-or-psalms-notation.ly}
2529
2530 Canticles and other liturgical texts may be set more freely, and
2531 may use notational elements from ancient music.  Often the words
2532 are shown underneath and aligned with the notes.  If so, the notes
2533 are spaced in accordance with the syllables rather than the notes'
2534 durations.
2535
2536 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2537 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
2538
2539 @seealso
2540 Learning Manual:
2541 @rlearning{Visibility and color of objects},
2542 @rlearning{Vocal ensembles}.
2543
2544 Notation Reference:
2545 @ref{Ancient notation},
2546 @ref{Bar lines},
2547 @ref{Modifying context plug-ins},
2548 @ref{Typesetting Gregorian chant},
2549 @ref{Unmetered music},
2550 @ref{Visibility of objects}.
2551
2552
2553 @node Pointing a psalm
2554 @unnumberedsubsubsec Pointing a psalm
2555
2556 The words to an Anglican psalm are usually printed in separate
2557 verses centered underneath the chant.
2558
2559 Single chants (with 7 bars) are repeated for every verse.  Double
2560 chants (with 14 bars) are repeated for every pair of verses.  Marks
2561 are inserted in the words to show how they should be fitted to the
2562 chant.  Each verse is divided into two halves.  A colon is usually
2563 used to indicate this division.  This corresponds to the double bar
2564 line in the music.  The words before the colon are sung to the first
2565 three bars of music; the words after the colon are sung to the last
2566 four bars.
2567
2568 Single bar lines (or in some psalters an inverted comma or similar
2569 symbol) are inserted between words to indicate where the bar lines
2570 in the music fall.  In markup mode a single bar line can be entered
2571 with the bar check symbol, @code{|}.
2572
2573 @lilypond[verbatim,quote]
2574 \markup {
2575   \fill-line {
2576     \column {
2577       \left-align {
2578         \line { O come let us sing | unto the | Lord : let }
2579         \line { us heartily rejoice in the | strength of | our }
2580         \line { sal- | -vation. }
2581       }
2582     }
2583   }
2584 }
2585 @end lilypond
2586
2587 Other symbols may require glyphs from the @code{fetaMusic} fonts.
2588 For details, see @ref{Fonts}.
2589
2590 @lilypond[verbatim,quote]
2591 tick = \markup {
2592   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2593 }
2594 \markup {
2595   \fill-line {
2596     \column {
2597       \left-align {
2598         \line { O come let us sing \tick unto the \tick Lord : let }
2599         \line {
2600           us heartily rejoice in the \tick strength of \tick our
2601         }
2602         \line { sal \tick vation. }
2603       }
2604     }
2605   }
2606 }
2607 @end lilypond
2608
2609 Where there is one whole note in a bar all the words corresponding
2610 to that bar are recited on that one note in speech rhythm.  Where
2611 there are two notes in a bar there will usually be only one or two
2612 corresponding syllables.  If there are more that two syllables a
2613 dot is usually inserted to indicate where the change in note occurs.
2614
2615 @lilypond[verbatim,quote]
2616 dot = \markup {
2617   \raise #0.7 \musicglyph #"dots.dot"
2618 }
2619 tick = \markup {
2620   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2621 }
2622 \markup {
2623   \fill-line {
2624     \column {
2625       \left-align {
2626         \line {
2627           O come let us sing \tick unto \dot the \tick Lord : let
2628         }
2629         \line {
2630           us heartily rejoice in the \tick strength of \tick our
2631         }
2632         \line { sal \tick vation. }
2633       }
2634     }
2635   }
2636 }
2637 @end lilypond
2638
2639 In some psalters an asterisk is used to indicate a break in a
2640 recited section instead of a comma, and stressed or slightly
2641 lengthened syllables are indicated in bold text.
2642
2643 @lilypond[verbatim,quote]
2644 dot = \markup {
2645   \raise #0.7 \musicglyph #"dots.dot"
2646 }
2647 tick = \markup {
2648   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2649 }
2650 \markup {
2651   \fill-line {
2652     \column {
2653       \left-align {
2654         \line { Today if ye will hear his voice * }
2655         \line {
2656           \concat { \bold hard en }
2657           | not your | hearts : as in the pro-
2658         }
2659         \line { vocation * and as in the \bold day of tempt- | }
2660         \line { -ation | in the | wilderness. }
2661       }
2662     }
2663   }
2664 }
2665 @end lilypond
2666
2667 In other psalters an accent is placed over the syllable to indicate
2668 stress.
2669
2670 @lilypond[verbatim,quote]
2671 tick = \markup {
2672   \raise #2 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2673 }
2674 \markup {
2675   \fill-line {
2676     \column {
2677       \left-align {
2678         \line {
2679           O come let us \concat {
2680             si \combine \tick ng
2681           }
2682           | unto the | Lord : let
2683         }
2684         \line {
2685           us heartily \concat {
2686             rejo \combine \tick ice
2687           }
2688           in the | strength of | our
2689         }
2690         \line { sal- | -vation. }
2691       }
2692     }
2693   }
2694 }
2695 @end lilypond
2696
2697 The use of markup to center text, and arrange lines in columns is
2698 described in @ref{Formatting text}.
2699
2700 Most of these elements are shown in one or other of the two verses
2701 in the template, see @qq{Psalms} in @rlearning{Vocal ensembles}.
2702
2703 @seealso
2704 Learning Manual:
2705 @rlearning{Vocal ensembles}.
2706
2707 Notation Reference:
2708 @ref{Fonts},
2709 @ref{Formatting text}.
2710
2711
2712 @node Partial measures in hymn tunes
2713 @unnumberedsubsubsec Partial measures in hymn tunes
2714
2715 Hymn tunes frequently start and end every line of music with
2716 partial measures so that each line of music corresponds exactly
2717 with a line of text.  This requires a @code{\partial} command at
2718 the start of the music and @code{\bar "|"} or @code{\bar "||"}
2719 commands at the end of each line.
2720
2721 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2722 {hymn-template.ly}
2723
2724
2725 @node Ancient vocal music
2726 @subsection Ancient vocal music
2727
2728 Ancient vocal music is supported, as explained in @ref{Ancient notation}.
2729
2730 @c TODO
2731
2732 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
2733 @c and "Transcription of Ancient music with incipit" snippet. -vv
2734
2735 @seealso
2736 Notation Reference:
2737 @ref{Ancient notation}.
2738
2739
2740
2741