]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/vocal.itely
Doc: NR 2.1 Vocal: Review Chants psalms and hymns
[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 @funindex _
155 @cindex spaces, in lyrics
156 @cindex quotes, in lyrics
157 @cindex ties, in lyrics
158
159 In order to assign more than one syllable to a single note, you can
160 surround them with quotes or use a @code{_} character, to get spaces
161 between syllables, or use tilde  symbol (@code{~}) to get a lyric tie.
162
163 @lilypond[quote,ragged-right,fragment,verbatim]
164 \time 3/4
165 \relative c' { c2 e4 g2 e4 }
166 \addlyrics { gran- de_a- mi- go }
167 \addlyrics { pu- "ro y ho-" nes- to }
168 \addlyrics { pu- ro~y~ho- nes- to }
169 @end lilypond
170
171 @noindent
172 The lyric tie is implemented with the Unicode character
173 @code{U+203F}; therefore a font that includes this glyph
174 (such as DejaVuLGC) has to be used.  More explanations about
175 text and non-text fonts can be found in @ref{Fonts}.
176
177
178 To enter lyrics with characters from non-English languages, or with
179 accented and special characters (such as the heart symbol or slanted quotes),
180 simply insert the characters directly into the input file and save
181 it with UTF-8 encoding.  See @ref{Text encoding}, for more info.
182
183 @lilypond[quote,ragged-right,fragment,verbatim]
184 \relative c' { e4 f e d e f e2 }
185 \addlyrics { He said: “Let my peo ple go”. }
186 @end lilypond
187
188 To use normal quotes in lyrics, add a backslash before the
189 quotes.  For example,
190
191 @lilypond[quote,ragged-right,fragment,verbatim]
192 \relative c' { \time 3/4 e4 e4. e8 d4 e d c2. }
193 \addlyrics { "\"I" am so lone- "ly\"" said she }
194 @end lilypond
195
196 The full definition of a word start in Lyrics mode is somewhat more
197 complex.
198
199 A word in Lyrics mode begins with: an alphabetic character, @code{_},
200 @code{?}, @code{!}, @code{:}, @code{'}, the control characters @code{^A}
201 through @code{^F}, @code{^Q} through @code{^W}, @code{^Y}, @code{^^},
202 any 8-bit character with ASCII code over 127, or a two-character
203 combination of a backslash followed by one of @code{`}, @code{'},
204 @code{"}, or @code{^}.
205
206 @c " to balance double quotes for not-so-bright context-sensitive editors
207
208 To define variables containing lyrics, the function @code{lyricmode}
209 must be used.
210
211 @example
212 verseOne = \lyricmode @{ Joy to the world the Lord is come @}
213 \score @{
214   <<
215     \new Voice = "one" \relative c'' @{
216       \autoBeamOff
217       \time 2/4
218       c4 b8. a16 g4. f8 e4 d c2
219     @}
220     \addlyrics @{ \verseOne @}
221   >>
222 @}
223 @end example
224
225
226 @seealso
227 Notation Reference:
228 @ref{Fonts}.
229
230 Internals Reference:
231 @rinternals{LyricText},
232 @rinternals{LyricSpace}.
233
234
235 @node Aligning lyrics to a melody
236 @unnumberedsubsubsec Aligning lyrics to a melody
237
238 @funindex \lyricmode
239 @funindex \addlyrics
240 @funindex \lyricsto
241
242 @c TODO: this stuff is to be rewritten. -vv
243
244 Aligning of text with melodies can be made automatically, but if you
245 specify the durations of the syllables it can also be made manually.
246 Lyrics aligning and typesetting are prepared with the help of skips,
247 hyphens and extender lines.
248
249 Lyrics are printed by interpreting them in the context called
250 @code{Lyrics}; see @rinternals{Lyrics}, for more.
251
252 @example
253 \new Lyrics \lyricmode @dots{}
254 @end example
255
256 There are two main methods to specify the horizontal placement
257 of the syllables:
258
259 @itemize
260 @item
261 by automatically aligning
262 the lyrics to a melody or other voice of music, using @code{\addlyrics}
263 or @code{\lyricsto}
264
265 @item
266 or by specifying the duration of each syllable
267 explicitly, using @code{\lyricmode}
268 @end itemize
269
270 The @code{Voice} context containing the melody to which the lyrics
271 are being aligned must not have @qq{died}, or the lyrics after that
272 point will be lost.  This can happen if there are periods when that
273 voice has nothing to do.  For methods of keeping contexts alive, see
274 @ref{Keeping contexts alive}.
275
276
277 @node Automatic syllable durations
278 @unnumberedsubsubsec Automatic syllable durations
279
280 @cindex syllable durations, automatic
281 @cindex lyrics and melodies
282
283 The lyrics can be aligned under a given melody
284 automatically.  This is achieved by combining the
285 melody and the lyrics with the @code{\lyricsto} expression
286
287 @example
288 \new Lyrics \lyricsto @var{name} @dots{}
289 @end example
290
291 @noindent
292 This aligns the lyrics to the
293 notes of the @code{Voice} context called @var{name}, which must
294 already exist.  Therefore normally the @code{Voice} is specified first, and
295 then the lyrics are specified with @code{\lyricsto}.  The command
296 @code{\lyricsto} switches to @code{\lyricmode} mode automatically, so the
297 @code{\lyricmode} keyword may be omitted.
298
299 The following example uses different commands for entering lyrics.
300
301 @lilypond[quote,fragment,ragged-right,verbatim]
302 <<
303   \new Voice = "one" \relative c'' {
304     \autoBeamOff
305     \time 2/4
306     c4 b8. a16 g4. f8 e4 d c2
307   }
308
309 % not recommended: left-aligned syllables
310   \new Lyrics \lyricmode { Joy4 to8. the16 world!4. the8 Lord4 is come.2 }
311
312 % wrong: durations needed
313   \new Lyrics \lyricmode { Joy to the earth! the Sa -- viour reigns. }
314
315 %correct
316   \new Lyrics \lyricsto "one" { No more let sins and sor -- rows grow. }
317 >>
318 @end lilypond
319
320 The second stanza is not properly aligned because the durations
321 were not specified.  A solution for that would be to use @code{\lyricsto}.
322
323 @cindex \addlyrics
324
325 The @code{\addlyrics} command is actually just a convenient way
326 to write a more complicated LilyPond structure that sets up the
327 lyrics.
328
329 @example
330 @{ MUSIC @}
331 \addlyrics @{ LYRICS @}
332 @end example
333
334 @noindent
335 is the same as
336
337 @example
338 \new Voice = "blah" @{ music @}
339 \new Lyrics \lyricsto "blah" @{ LYRICS @}
340 @end example
341
342 Here is an example,
343
344 @lilypond[ragged-right,verbatim,fragment,quote]
345 \time 3/4
346 \relative c' { c2 e4 g2. }
347 \addlyrics { play the game }
348 @end lilypond
349
350 More stanzas can be added by adding more
351 @code{\addlyrics} sections
352
353 @lilypond[ragged-right,verbatim,fragment,quote]
354 \time 3/4
355 \relative c' { c2 e4 g2. }
356 \addlyrics { play the game }
357 \addlyrics { speel het spel }
358 \addlyrics { joue le jeu }
359 @end lilypond
360
361 The command @code{\addlyrics} cannot handle polyphony settings.
362 For these cases you should use @code{\lyricsto} and
363 @code{\lyricmode}, for details see @ref{Entering lyrics}.
364
365 @node Manual syllable durations
366 @unnumberedsubsubsec Manual syllable durations
367
368 Lyrics can also be entered without @code{\addlyrics} or
369 @code{\lyricsto}.  In this case,
370 syllables are entered like notes -- but with pitches replaced by text -- and the
371 duration of each syllable must be entered explicitly.  For example:
372
373 @example
374 play2 the4 game2.
375 sink2 or4 swim2.
376 @end example
377
378 The alignment to a melody can be specified with the
379 @code{associatedVoice} property,
380
381 @example
382 \set associatedVoice = #"lala"
383 @end example
384
385 @noindent
386 The value of the property (here: @code{"lala"}) should be the name of
387 a @code{Voice} context.  Without this setting, extender lines
388 will not be formatted properly.
389
390 Here is an example demonstrating manual lyric durations,
391
392 @lilypond[relative=1,ragged-right,verbatim,fragment,quote]
393 << \new Voice = "melody" {
394     \time 3/4
395     c2 e4 g2.
396  }
397  \new Lyrics \lyricmode {
398    \set associatedVoice = #"melody"
399    play2 the4 game2.
400  } >>
401 @end lilypond
402
403
404 @seealso
405 Notation Reference:
406 @ref{Keeping contexts alive}.
407
408 Internals Reference:
409 @rinternals{Lyrics},
410 @rinternals{Voice}.
411
412
413 @node Multiple syllables to one note
414 @unnumberedsubsubsec Multiple syllables to one note
415
416
417 @funindex _
418 @cindex ties, in lyrics
419
420 In order to assign more than one syllable to a single note, you can
421 surround them with quotes or use a @code{_} character, to get spaces
422 between syllables, or use tilde  symbol (@code{~}) to get a lyric
423 tie.@footnote{The lyric ties is implemented with the Unicode character
424 U+203F, so be
425 sure to have a font (like DejaVuLGC) installed that includes this
426 glyph.}
427
428 @lilypond[quote,ragged-right,fragment,verbatim]
429 \time 3/4
430 \relative c' { c2 e4 g2 e4 }
431 \addlyrics { gran- de_a- mi- go }
432 \addlyrics { pu- "ro y ho-" nes- to }
433 \addlyrics { pu- ro~y~ho- nes- to }
434 @end lilypond
435
436
437 @seealso
438 Internals Reference:
439 @rinternals{LyricCombineMusic}.
440
441
442 @c Here come the section which used to be "Melismata"
443 @c the new title might be more self-explanatory
444
445
446 @node Multiple notes to one syllable
447 @unnumberedsubsubsec Multiple notes to one syllable
448
449 @cindex melisma
450 @cindex melismata
451 @cindex phrasing, in lyrics
452
453 Sometimes, particularly in Medieval music, several notes are to be sung on one
454 single syllable; such vocalises are called melismas, or melismata.
455
456 @c this method seems to be the simplest; therefore
457 @c it might be better to present it first - vv
458
459 You can define melismata entirely in the lyrics, by entering @code{_}
460 for every extra note that has to be added to the melisma.
461
462 @c TODO: clarify: __ is used to crate a lyric extender,
463 @c _ is used to add a note to a melisma, so both __ and _ are needed.
464
465 @c verbose! --FV
466 @c duplicated: TODO fix
467 Additionally, you can make an extender line to be typeset to indicate
468 the melisma in the score, writing a double underscore next to the
469 first syllable of the melisma.  This example shows the three elements
470 that are used for this purpose (all of them surrounded by spaces):
471 double hyphens to separate syllables in a word, underscores to add
472 notes to a melisma, and a double underscore to put an extender line.
473
474 @c wrong: extender line only on last syllable of a word.  Change example
475 @lilypond[relative=1,verbatim,fragment,quote]
476 { \set melismaBusyProperties = #'()
477  c d( e) f f( e) e e  }
478 \addlyrics
479  { Ky -- _ _ ri __ _ _ _  e }
480 @end lilypond
481
482 In this case, you can also have ties and slurs in the melody if you
483 set @code{melismaBusyProperties}, as is done in the example above.
484
485 However, the @code{\lyricsto} command can also
486 detect melismata automatically: it only puts one
487 syllable under a tied or slurred group of notes.  If you want to force
488 an unslurred group of notes to be a melisma, insert @code{\melisma}
489 after the first note of the group, and @code{\melismaEnd} after the
490 last one, e.g.,
491
492 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
493 <<
494   \new Voice = "lala" {
495     \time 3/4
496     f4 g8
497     \melisma
498     f e f
499     \melismaEnd
500     e2
501   }
502   \new Lyrics \lyricsto "lala" {
503     la di __ daah
504   }
505 >>
506 @end lilypond
507
508 In addition, notes are considered a melisma if they are manually
509 beamed, and automatic beaming (see @ref{Setting automatic beam
510 behavior}) is switched off.
511
512 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
513 <<
514   \new Voice = "lala" {
515     \time 3/4
516     \autoBeamOff
517     f4 g8[ f e f]
518     e2
519   }
520   \new Lyrics \lyricsto "lala" {
521     la di __ daah
522   }
523 >>
524 @end lilypond
525
526 @c TODO: this now links to LM -vv
527 @c   umm, yeah... so what?  -gp
528
529 @cindex SATB
530 @cindex choral score
531
532 A complete example of a SATB score setup is in
533 @rlearning{Vocal ensembles}.
534
535
536 @predefined
537 @funindex \melisma
538 @code{\melisma},
539 @funindex \melismaEnd
540 @code{\melismaEnd}.
541 @endpredefined
542
543
544 @c @seealso
545 @c @lsr{vocal,lyric@/-combine.ly}.
546
547
548 @knownissues
549
550 Melismata are not detected automatically, and extender lines must be
551 inserted by hand.
552
553 @node Skipping notes
554 @unnumberedsubsubsec Skipping notes
555
556 Making a lyric line run slower than the melody can be achieved by
557 inserting @code{\skip}s into the lyrics.  For every @code{\skip},
558 the text will be delayed another note.  The @code{\skip} command
559 must be followed by a valid duration, but this is ignored when
560 @code{\skip} is used in lyrics.
561
562 @lilypond[verbatim,ragged-right,quote]
563 \relative c' { c c g' }
564 \addlyrics {
565   twin -- \skip 4
566   kle
567 }
568 @end lilypond
569
570
571 @node Extenders and hyphens
572 @unnumberedsubsubsec Extenders and hyphens
573
574 @cindex melisma
575 @cindex extender
576
577 @c leave this as samp. -gp
578 In the last syllable of a word, melismata are sometimes indicated with
579 a long horizontal line starting in the melisma syllable, and ending in
580 the next one.  Such a line is called an extender line, and it is
581 entered as @samp{ __ } (note the spaces before and after the two
582 underscore characters).
583
584 @warning{Melismata are indicated in the score with extender lines,
585 which are entered as one double underscore; but short melismata can
586 also be entered by skipping individual notes, which are entered as
587 single underscore characters; these do not make an extender line to be
588 typeset by default.}
589
590 @cindex hyphens
591
592 @c leave this as samp. -gp
593 Centered hyphens are entered as @samp{ -- } between syllables of a same word
594 (note the spaces before and after the two hyphen characters).  The hyphen
595 will be centered between the syllables, and its length will be adjusted
596 depending on the space between the syllables.
597
598 In tightly engraved music, hyphens can be removed.  Whether this
599 happens can be controlled with the @code{minimum-distance} (minimum
600 distance between two syllables) and the @code{minimum-length}
601 (threshold below which hyphens are removed).
602
603
604 @seealso
605 Internals Reference:
606 @rinternals{LyricExtender},
607 @rinternals{LyricHyphen}.
608
609
610 @node Techniques specific to lyrics
611 @subsection Techniques specific to lyrics
612
613 @c TODO This whole section is to be reorganized. -vv
614
615 @menu
616 * Working with lyrics and variables::
617 * Lyrics and repeats::
618 * Divisi lyrics::
619 * Lyrics independent of notes::
620 * Spacing out syllables::
621 * Placement of lyrics between staves::
622 @end menu
623
624
625
626 @node Working with lyrics and variables
627 @unnumberedsubsubsec Working with lyrics and variables
628
629 @cindex lyrics, variables
630
631 To define variables containing lyrics, the function @code{\lyricmode}
632 must be used.  You do not have to enter durations though, if you add
633 @code{\addlyrics} or @code{\lyricsto}
634 when invoking your variable.
635
636 @example
637 verseOne = \lyricmode @{ Joy to the world the Lord is come @}
638 \score @{
639  <<
640    \new Voice = "one" \relative c'' @{
641      \autoBeamOff
642      \time 2/4
643      c4 b8. a16 g4. f8 e4 d c2
644    @}
645    \addlyrics @{ \verseOne @}
646  >>
647 @}
648 @end example
649
650 For different or more complex orderings, the best way is to set up the
651 hierarchy of staves and lyrics first, e.g.,
652 @example
653 \new ChoirStaff <<
654   \new Voice = "soprano" @{ @emph{music} @}
655   \new Lyrics = "sopranoLyrics" @{ s1 @}
656   \new Lyrics = "tenorLyrics" @{ s1 @}
657   \new Voice = "tenor" @{ @emph{music} @}
658 >>
659 @end example
660
661 @noindent
662 and then combine the appropriate melodies and lyric lines
663
664 @example
665 \context Lyrics = sopranoLyrics \lyricsto "soprano"
666 @emph{the lyrics}
667 @end example
668
669 @noindent
670 The final input would resemble
671
672 @example
673 <<\new ChoirStaff << @emph{setup the music} >>
674  \lyricsto "soprano" @emph{etc}
675  \lyricsto "alto" @emph{etc}
676 @emph{etc}
677 >>
678 @end example
679
680 @ignore
681 @c TODO
682 http://code.google.com/p/lilypond/issues/detail?id=329
683 The problem cannot be reproduced.
684 The following has no sense, because the issue seems to be fixed.
685 A comment is in tracker waiting for response ---FV
686
687
688 Be careful when defining a variable with lyrics that creates a new
689 context, for example, using the deprecated @code{\lyrics} command.  See
690 the next erroneous example:
691
692 @example
693 words = \lyrics{ %warning: this creates a new context
694  one two
695 }
696 <<
697   \new Voice = "sop" { c1 }
698   \new Lyrics \lyricsto "sop" { \words }
699   \new Voice = "alt" { c2 c }
700   \new Lyrics \lyricsto "alt" { \words }
701 >>
702 @end example
703
704 the problem is that \lyricsto will try to connect the "sop" melody with the context
705 created by "\new Lyrics".
706
707 Then \lyrics in \words creates another context, and the original "\new Lyrics" one
708 remains empty.
709
710 @end ignore
711
712
713 @seealso
714 @c TODO: document \new Staff << Voice \lyricsto >> bug
715 Internals Reference:
716 @rinternals{LyricCombineMusic},
717 @rinternals{Lyrics}.
718
719
720 @node Lyrics and repeats
721 @unnumberedsubsubsec Lyrics and repeats
722
723 @c TODO New section.  Add text
724 TBC
725
726
727 @node Divisi lyrics
728 @unnumberedsubsubsec Divisi lyrics
729
730 You can display alternate (or divisi) lyrics by naming voice
731 contexts and attaching lyrics to those specific contexts.
732
733 @lilypond[verbatim,ragged-right,quote]
734 \score{ <<
735   \new Voice = "melody" {
736     \relative c' {
737       c4
738       <<
739         { \voiceOne c8 e }
740         \new Voice = "splitpart" { \voiceTwo c4 }
741       >>
742       \oneVoice c4 c | c
743     }
744   }
745   \new Lyrics \lyricsto "melody" { we shall not o- ver- come }
746   \new Lyrics \lyricsto "splitpart" { will }
747 >> }
748 @end lilypond
749
750
751 You can use this trick to display different lyrics for a repeated
752 section.
753
754 @lilypond[verbatim,ragged-right,quote]
755 \score{ <<
756   \new Voice = "melody" \relative c' {
757     c2 e | g e | c1 |
758     \new Voice = "verse" \repeat volta 2 {c4 d e f | g1 | }
759     a2 b | c1}
760   \new Lyrics = "mainlyrics" \lyricsto melody \lyricmode {
761     do mi sol mi do
762     la si do }
763   \context Lyrics = "mainlyrics" \lyricsto verse \lyricmode {
764    do re mi fa sol }
765   \new Lyrics = "repeatlyrics" \lyricsto verse \lyricmode {
766    dodo rere mimi fafa solsol }
767 >>
768 }
769 @end lilypond
770
771
772
773 @node Lyrics independent of notes
774 @unnumberedsubsubsec Lyrics independent of notes
775
776 @cindex Devnull context
777
778 In some complex vocal music, it may be desirable to place
779 lyrics completely independently of notes.  Music defined
780 inside @code{lyricrhythm} disappears into the
781 @code{Devnull} context, but the rhythms can still be used
782 to place the lyrics.
783
784 @lilypond[quote,verbatim,ragged-right]
785 voice = {
786   c''2
787   \tag #'music { c''2 }
788   \tag #'lyricrhythm { c''4. c''8 }
789   d''1
790 }
791
792 lyr = \lyricmode { I like my cat! }
793
794 <<
795   \new Staff \keepWithTag #'music \voice
796   \new Devnull="nowhere" \keepWithTag #'lyricrhythm \voice
797   \new Lyrics \lyricsto "nowhere" \lyr
798   \new Staff { c'8 c' c' c' c' c' c' c'
799   c' c' c' c' c' c' c' c' }
800 >>
801 @end lilypond
802
803 This method is recommended only if the music in the @code{Devnull}
804 context does not contain melismata.  Melismata are defined by the
805 @code{Voice} context.  Connecting lyrics to a @code{Devnull} context
806 makes the voice/lyrics links to get lost, and so does the info on
807 melismata.  Therefore, if you link lyrics to a @code{Devnull} context,
808 the implicit melismata get ignored.
809
810 @c Conclusion: do not use devnull for lyrics -FV
811
812 @c this clarifies http://code.google.com/p/lilypond/issues/detail?id=248
813
814 @node Spacing out syllables
815 @unnumberedsubsubsec Spacing out syllables
816
817 @cindex Spacing lyrics
818 @cindex Lyrics, increasing space between
819
820 To increase the spacing between lyrics, set the @code{minimum-distance}
821 property of @code{LyricSpace}.
822
823 @lilypond[relative,verbatim,fragment,quote,ragged-right]
824 {
825   c c c c
826   \override Lyrics.LyricSpace #'minimum-distance = #1.0
827   c c c c
828 }
829 \addlyrics {
830   longtext longtext longtext longtext
831   longtext longtext longtext longtext
832 }
833 @end lilypond
834
835 @noindent
836 To make this change for all lyrics in the score, set the property in the
837 layout.
838
839 @lilypond[verbatim,quote,ragged-right]
840 \score {
841   \relative c' {
842   c c c c
843   c c c c
844   }
845   \addlyrics {
846   longtext longtext longtext longtext
847   longtext longtext longtext longtext
848   }
849   \layout {
850     \context {
851       \Lyrics
852       \override LyricSpace #'minimum-distance = #1.0
853     }
854   }
855 }
856 @end lilypond
857
858 @c @snippets
859 @c This snippet has been renamed to "lyrics-alignment.ly"
860 @c update as soon as lsr/is updated -vv
861 @c @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
862 @c {lyrics-alignment.ly}
863
864 @c TODO: move to LSR -vv
865 @snippets
866
867 Checking to make sure that text scripts and lyrics are within the margins is
868 a relatively large computational task.  To speed up processing, LilyPond does
869 not perform such calculations by default; to enable it, use
870
871 @example
872 \override Score.PaperColumn #'keep-inside-line = ##t
873 @end example
874
875 To make lyrics avoid bar lines as well, use
876
877 @example
878 \layout @{
879   \context @{
880     \Lyrics
881       \consists "Bar_engraver"
882       \consists "Separating_line_group_engraver"
883       \override BarLine #'transparent = ##t
884   @}
885 @}
886 @end example
887
888 @c TODO Create and add lsr example of lyricMelismaAlignment
889 @c It's used like this to center-align all lyric syllables,
890 @c even when notes are tied. -td
891
892 @ignore
893 \layout
894 {
895      \context { \Score lyricMelismaAlignment = #0 }
896 }
897 @end ignore
898
899
900 @node Placement of lyrics between staves
901 @unnumberedsubsubsec Placement of lyrics between staves
902
903 @c TODO Add text from -user
904 @c TODO Add new spacing properties, centering lyrics, etc
905 TBC
906
907 @node Stanzas
908 @subsection Stanzas
909
910 @menu
911 * Adding stanza numbers::
912 * Adding dynamics marks to stanzas::
913 * Adding singers' names to stanzas::
914 * Stanzas with different rhythms::
915 * Printing stanzas at the end::
916 * Printing stanzas at the end in multiple columns::
917 @end menu
918
919
920 @node Adding stanza numbers
921 @unnumberedsubsubsec Adding stanza numbers
922
923 @cindex stanza number
924
925 Stanza numbers can be added by setting @code{stanza}, e.g.,
926
927 @lilypond[quote,ragged-right,verbatim,relative=2,fragment]
928 \new Voice {
929   \time 3/4 g2 e4 a2 f4 g2.
930 } \addlyrics {
931   \set stanza = #"1. "
932   Hi, my name is Bert.
933 } \addlyrics {
934   \set stanza = #"2. "
935   Oh, ché -- ri, je t'aime
936 }
937 @end lilypond
938
939
940 @noindent
941 These numbers are put just before the start of the first syllable.
942
943 @c TODO Create and add snippet to show how two lines of a
944 @c stanza can be grouped together, along these lines:
945 @c (might need improving a bit) -td
946
947 @ignore
948 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup
949 #"brace105" }
950
951 stanzaOneOne = {
952   \set stanza = \markup { "1. " \leftbrace }
953   \lyricmode { Child, you're mine and I love you.
954     Lend thine ear to what I say.
955
956   }
957 }
958
959 stanzaOneThree =  {
960 %  \set stanza = \markup { "   "}
961   \lyricmode { Child, I have no great -- er joy
962     Than to have you walk in truth.
963
964   }
965 }
966
967 \new Voice {
968   \repeat volta 2 { c'8 c' c' c' c' c' c'4
969                     c'8 c' c' c' c' c' c'4   }
970 }  \addlyrics { \stanzaOneOne }
971    \addlyrics { \stanzaOneThree }
972
973 @end ignore
974
975 @node Adding dynamics marks to stanzas
976 @unnumberedsubsubsec Adding dynamics marks to stanzas
977
978 Stanzas differing in loudness may be indicated by putting a
979 dynamics mark before each stanza.  In LilyPond, everything coming in
980 front of a stanza goes into the @code{StanzaNumber} object; dynamics marks
981 are no different.  For technical reasons, you have to set the stanza
982 outside @code{\lyricmode}:
983
984 @lilypond[quote,ragged-right,verbatim]
985 text = {
986   \set stanza = \markup { \dynamic "ff" "1. " }
987   \lyricmode {
988     Big bang
989   }
990 }
991
992 <<
993   \new Voice = "tune" {
994     \time 3/4
995     g'4 c'2
996   }
997 \new Lyrics \lyricsto "tune" \text
998 >>
999 @end lilypond
1000
1001 @node Adding singers' names to stanzas
1002 @unnumberedsubsubsec Adding singers' names to stanzas
1003
1004 @cindex singer name
1005 @cindex name of singer
1006
1007 Names of singers can also be added.  They are printed at the start of
1008 the line, just like instrument names.  They are created by setting
1009 @code{vocalName}.  A short version may be entered as @code{shortVocalName}.
1010
1011 @lilypond[fragment,ragged-right,quote,verbatim,relative=2]
1012 \new Voice {
1013   \time 3/4 g2 e4 a2 f4 g2.
1014 } \addlyrics {
1015   \set vocalName = #"Bert "
1016   Hi, my name is Bert.
1017 } \addlyrics {
1018   \set vocalName = #"Ernie "
1019   Oh, ché -- ri, je t'aime
1020 }
1021 @end lilypond
1022
1023 @node Stanzas with different rhythms
1024 @unnumberedsubsubsec Stanzas with different rhythms
1025
1026 Often, different stanzas of one song are put to one melody in slightly
1027 differing ways.  Such variations can still be captured with
1028 @code{\lyricsto}.
1029
1030 @subsubheading Ignoring melismata
1031
1032 One possibility is that the text has a melisma in one stanza, but
1033 multiple syllables in another one.  One solution is to make the faster
1034 voice ignore the melisma.  This is done by setting
1035 @code{ignoreMelismata} in the Lyrics context.
1036
1037 @lilypond[verbatim,ragged-right,quote]
1038 <<
1039   \relative c' \new Voice = "lahlah" {
1040     \set Staff.autoBeaming = ##f
1041     c4
1042     \slurDotted
1043     f8.[( g16])
1044     a4
1045   }
1046   \new Lyrics \lyricsto "lahlah" {
1047     more slow -- ly
1048   }
1049   \new Lyrics \lyricsto "lahlah" {
1050     go
1051     \set ignoreMelismata = ##t
1052     fas -- ter
1053     \unset ignoreMelismata
1054     still
1055   }
1056 >>
1057 @end lilypond
1058
1059 @knownissues
1060 Unlike most @code{\set} commands, @code{\set ignoreMelismata} does
1061 not work if prefixed with @code{\once}.  It is necessary to use
1062 @code{\set} and @code{\unset} to bracket the lyrics where melismata
1063 are to be ignored.
1064
1065 @subsubheading Adding syllables to grace notes
1066
1067 By default, grace notes (e.g. via @code{\grace}) do not get assigned
1068 syllables when using @code{\lyricsto}, but this behavior can be
1069 changed:
1070
1071 @lilypond[verbatim,ragged-right,quote]
1072 \relative c' {
1073   f4 \appoggiatura a32 b4
1074   \grace { f16[ a16] } b2
1075   \afterGrace b2 { f16[ a16] }
1076   \appoggiatura a32 b4
1077   \acciaccatura a8 b4
1078 }
1079 \addlyrics {
1080   normal
1081   \set includeGraceNotes = ##t
1082   case,
1083   gra -- ce case,
1084   after -- grace case,
1085   \set ignoreMelismata = ##t
1086   app. case,
1087   acc. case.
1088 }
1089 @end lilypond
1090
1091 @knownissues
1092 Like for @code{associatedVoice}, @code{includeGraceNotes} needs to be
1093 set at latest one syllable before the one which is to be put under a
1094 grace note.  For the case of a grace note at the very beginning of a
1095 piece of music, consider using a @code{\with} or @code{\context}
1096 block:
1097
1098 @lilypond[verbatim,ragged-right,quote]
1099 <<
1100   \new Voice = melody \relative c' {
1101     \grace { c16[( d e f] }
1102     g1) f
1103   }
1104   \new Lyrics \with { includeGraceNotes = ##t }
1105   \lyricsto melody {
1106     Ah __ fa
1107   }
1108 >>
1109 @end lilypond
1110
1111 @subsubheading Switching to an alternative melody
1112
1113 More complex variations in text underlay are possible.  It is possible
1114 to switch the melody for a line of lyrics during the text.  This is
1115 done by setting the @code{associatedVoice} property.  In the example
1116
1117 @lilypond[ragged-right,quote]
1118 <<
1119   \relative c' \new Voice = "lahlah" {
1120     \set Staff.autoBeaming = ##f
1121     c4
1122     <<
1123       \new Voice = "alternative" {
1124         \voiceOne
1125         \times 2/3 {
1126           % show associations clearly.
1127           \override NoteColumn #'force-hshift = #-3
1128           f8 f g
1129         }
1130       }
1131       {
1132         \voiceTwo
1133         f8.[ g16]
1134         \oneVoice
1135       } >>
1136     a8( b) c
1137   }
1138   \new Lyrics \lyricsto "lahlah" {
1139     Ju -- ras -- sic Park
1140   }
1141   \new Lyrics \lyricsto "lahlah" {
1142     % Tricky: need to set associatedVoice
1143     % one syllable too soon!
1144     \set associatedVoice = alternative % applies to "ran"
1145     Ty --
1146     ran --
1147     no --
1148     \set associatedVoice = lahlah % applies to "rus"
1149     sau -- rus Rex
1150   } >>
1151 @end lilypond
1152
1153 @noindent
1154 the text for the first stanza is set to a melody called @q{lahlah},
1155
1156 @example
1157 \new Lyrics \lyricsto "lahlah" @{
1158   Ju -- ras -- sic Park
1159 @}
1160 @end example
1161
1162
1163 The second stanza initially is set to the @code{lahlah} context, but
1164 for the syllable @q{ran}, it switches to a different melody.
1165 This is achieved with
1166 @example
1167 \set associatedVoice = alternative
1168 @end example
1169
1170 @noindent
1171 Here, @code{alternative} is the name of the @code{Voice} context
1172 containing the triplet.
1173
1174 @c TODO: make this easier to understand -vv
1175 This command must be one syllable too early, before @q{Ty} in this
1176 case.  In other words, changing the associatedVoice happens one step
1177 later than expected.  This is for technical reasons, and it is not a
1178 bug.
1179
1180 @example
1181 \new Lyrics \lyricsto "lahlah" @{
1182   \set associatedVoice = alternative % applies to "ran"
1183   Ty --
1184   ran --
1185   no --
1186   \set associatedVoice = lahlah % applies to "rus"
1187   sau -- rus Rex
1188 @}
1189 @end example
1190
1191 @noindent
1192 The underlay is switched back to the starting situation by assigning
1193 @code{lahlah} to @code{associatedVoice}.
1194
1195
1196 @node Printing stanzas at the end
1197 @unnumberedsubsubsec Printing stanzas at the end
1198
1199 Sometimes it is appropriate to have one stanza set
1200 to the music, and the rest added in verse form at
1201 the end of the piece.  This can be accomplished by adding
1202 the extra verses into a @code{\markup} section outside
1203 of the main score block.  Notice that there are two
1204 different ways to force linebreaks when using
1205 @code{\markup}.
1206
1207 @lilypond[ragged-right,verbatim,quote]
1208 melody = \relative c' {
1209 e d c d | e e e e |
1210 d d e d | c1 |
1211 }
1212
1213 text = \lyricmode {
1214 \set stanza = #"1." Ma- ry had a lit- tle lamb,
1215 its fleece was white as snow.
1216 }
1217
1218 \score{ <<
1219   \new Voice = "one" { \melody }
1220   \new Lyrics \lyricsto "one" \text
1221 >>
1222   \layout { }
1223 }
1224 \markup { \column{
1225   \line{ Verse 2. }
1226   \line{ All the children laughed and played }
1227   \line{ To see a lamb at school. }
1228   }
1229 }
1230 \markup{
1231   \wordwrap-string #"
1232   Verse 3.
1233
1234   Mary took it home again,
1235
1236   It was against the rule."
1237 }
1238 @end lilypond
1239
1240
1241 @node Printing stanzas at the end in multiple columns
1242 @unnumberedsubsubsec Printing stanzas at the end in multiple columns
1243
1244 When a piece of music has many verses, they are often printed in
1245 multiple columns across the page.  An outdented verse number often
1246 introduces each verse.  The following example shows how to produce such
1247 output in LilyPond.
1248
1249 @lilypond[ragged-right,quote,verbatim]
1250 melody = \relative c' {
1251   c c c c | d d d d
1252 }
1253
1254 text = \lyricmode {
1255   \set stanza = #"1." This is verse one.
1256   It has two lines.
1257 }
1258
1259 \score{ <<
1260     \new Voice = "one" { \melody }
1261     \new Lyrics \lyricsto "one" \text
1262    >>
1263   \layout { }
1264 }
1265
1266 \markup {
1267   \fill-line {
1268     \hspace #0.1 % moves the column off the left margin;
1269         % can be removed if space on the page is tight
1270      \column {
1271       \line { \bold "2."
1272         \column {
1273           "This is verse two."
1274           "It has two lines."
1275         }
1276       }
1277       \hspace #0.1 % adds vertical spacing between verses
1278       \line { \bold "3."
1279         \column {
1280           "This is verse three."
1281           "It has two lines."
1282         }
1283       }
1284     }
1285     \hspace #0.1  % adds horizontal spacing between columns;
1286         % if they are still too close, add more " " pairs
1287         % until the result looks good
1288      \column {
1289       \line { \bold "4."
1290         \column {
1291           "This is verse four."
1292           "It has two lines."
1293         }
1294       }
1295       \hspace #0.1 % adds vertical spacing between verses
1296       \line { \bold "5."
1297         \column {
1298           "This is verse five."
1299           "It has two lines."
1300         }
1301       }
1302     }
1303   \hspace #0.1 % gives some extra space on the right margin;
1304       % can be removed if page space is tight
1305   }
1306 }
1307 @end lilypond
1308
1309
1310 @seealso
1311 Internals Reference:
1312 @rinternals{LyricText},
1313 @rinternals{StanzaNumber}.
1314
1315
1316 @node Songs
1317 @subsection Songs
1318
1319 @menu
1320 * References for songs::
1321 * Lead sheets::
1322 @end menu
1323
1324 @node References for songs
1325 @unnumberedsubsubsec References for songs
1326
1327 @c TODO chords, setting simple songs (LM), stanzas
1328 TBC
1329
1330 @node Lead sheets
1331 @unnumberedsubsubsec Lead sheets
1332
1333 Lead sheets may be printed by combining vocal parts and @q{chord mode};
1334 this syntax is explained in @ref{Chord notation}.
1335
1336 @snippets
1337 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1338 {simple-lead-sheet.ly}
1339
1340 @seealso
1341 Notation Reference:
1342 @ref{Chord notation}.
1343
1344
1345 @node Choral
1346 @subsection Choral
1347
1348 @cindex anthems
1349 @cindex part songs
1350 @cindex oratorio
1351 @cindex SATB
1352
1353 This section discusses notation issues that relate most directly
1354 to choral music.  This includes anthems, part songs, oratorio,
1355 etc.
1356
1357 @menu
1358 * References for choral::
1359 * Score layouts for choral::
1360 * Divided voices::
1361 @end menu
1362
1363 @node References for choral
1364 @unnumberedsubsubsec References for choral
1365
1366 Choral music is usually notated on two, three or four staves within
1367 a @code{ChoirStaff} group.  Accompaniment, if required, is placed
1368 beneath in a @code{PianoStaff} group, which is usually reduced in
1369 size for @emph{a capella} choral works.  The notes for each vocal
1370 part are placed in a @code{Voice} context, with each staff
1371 being given either a single vocal part (i.e., one @code{Voice}) or
1372 a pair of vocal parts (i.e., two @code{Voice}s).
1373
1374 Words are placed in @code{Lyrics} contexts, either underneath each
1375 corresponding music staff, or one above and one below the music
1376 staff if this contains the music for two parts.
1377
1378 Several common topics in choral music are described fully elsewhere:
1379
1380 @itemize
1381
1382 @item
1383 An introduction to creating an SATB vocal score can be found in
1384 the Learning Manual, see @rlearning{Four-part SATB vocal score}.
1385
1386 @item
1387 Several templates suitable for various styles of choral music can
1388 also be found in the Learning Manual, see
1389 @rlearning{Vocal ensembles}.
1390
1391 @item
1392 For information about @code{ChoirStaff} and @code{PianoStaff} see
1393 @ref{Grouping staves}.
1394
1395 @item
1396 Shape noteheads, as used in Sacred Harp and similar notation, are
1397 described in @ref{Shape note heads}.
1398
1399 @item
1400 When two vocal parts share a staff the stems, ties, slurs, etc., of
1401 the higher part will be directed up and those of the lower part
1402 down.  To do this, use @code{\voiceOne} and @code{\voiceTwo}.  See
1403 @ref{Single-staff polyphony}.
1404
1405 @end itemize
1406
1407 @predefined
1408 @code{\voiceOne},
1409 @code{\voiceTwo}.
1410
1411 @seealso
1412 Learning Manual:
1413 @rlearning{Four-part SATB vocal score},
1414 @rlearning{Vocal ensembles}.
1415
1416 Notation Reference:
1417 @ref{Context layout order},
1418 @ref{Grouping staves},
1419 @ref{Shape note heads},
1420 @ref{Single-staff polyphony}.
1421
1422 Internals Reference:
1423 @rinternals{ChoirStaff},
1424 @rinternals{Lyrics},
1425 @rinternals{PianoStaff}.
1426
1427 @node Score layouts for choral
1428 @unnumberedsubsubsec Score layouts for choral
1429
1430 Choral music containing four staves, with or without piano
1431 accompaniment, is usually laid out with two systems per page.
1432 Depending on the page size, achieving this may require changes
1433 to several default settings.  The following settings should be
1434 considered:
1435
1436 @itemize
1437
1438 @item
1439 The global staff size can be modified to change the overall size
1440 of the elements of the score.  See @ref{Setting the staff size}.
1441
1442 @item
1443 The distances between the systems, the staves and the lyrics can
1444 all be adjusted independently.  See @ref{Vertical spacing}.
1445
1446 @item
1447 The dimensions of the vertical layout variables can be displayed as
1448 an aid to adjusting the vertical spacing.  This and other
1449 possibilities for fitting the music onto fewer pages are described
1450 in @ref{Fitting music onto fewer pages}.
1451
1452 @end itemize
1453
1454 @c TODO change the following to a ref when system-separator-markup
1455 @c is well-documented elsewhere
1456
1457 If the number of systems per page changes from one to two it is
1458 customary to indicate this with a system separator mark between
1459 the two systems.  By default the system separator is blank.  In
1460 this example the @code{system-separator-markup} in the @code{\paper}
1461 block is changed:
1462
1463 @lilypond[verbatim,quote]
1464 #(set-default-paper-size "a6" 'landscape)
1465 \book {
1466   \score {
1467     \new ChoirStaff <<
1468       \new Staff {
1469         \relative c'' {
1470           \repeat unfold 8 { c4 }
1471           \break
1472           \repeat unfold 8 { c4 }
1473         }
1474       }
1475       \new Staff {
1476         \relative c'' {
1477           \repeat unfold 8 { g4 }
1478           \break
1479           \repeat unfold 8 { g4 }
1480         }
1481       }
1482     >>
1483   }
1484   \paper {
1485     indent = 0\mm
1486     system-separator-markup = \slashSeparator
1487   }
1488 }
1489 @end lilypond
1490
1491 @noindent
1492 For details of other page formatting properties, see
1493 @ref{Page formatting}.
1494
1495 Dynamic markings by default are placed below the staff, but in
1496 choral music they are usually placed above the staff in order to
1497 avoid the lyrics.  The predefined command @code{\dynamicUp} does
1498 this for the dynamic markings in a single @code{Voice} context.
1499 If there are many @code{Voice} contexts this predefined command
1500 would have to be placed in every one.  Alternatively its expanded
1501 form can be used to place all dynamic markings in the entire score
1502 above their respective staves, as shown here:
1503
1504 @lilypond[verbatim,quote]
1505 \score {
1506   \new ChoirStaff <<
1507     \new Staff {
1508       \new Voice {
1509         \relative c'' { g4\f g g g }
1510       }
1511     }
1512     \new Staff {
1513       \new Voice {
1514         \relative c' { d4 d d\p d }
1515       }
1516     }
1517   >>
1518   \layout {
1519     \context {
1520       \Score
1521       \override DynamicText #'direction = #UP
1522       \override DynamicLineSpanner #'direction = #UP
1523     }
1524   }
1525 }
1526 @end lilypond
1527
1528 @predefined
1529 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
1530
1531 @seealso
1532 Notation Reference:
1533 @ref{Changing spacing},
1534 @ref{Displaying spacing},
1535 @ref{Fitting music onto fewer pages},
1536 @ref{Page formatting},
1537 @ref{Score layout},
1538 @ref{Setting the staff size},
1539 @ref{Using an extra voice for breaks},
1540 @ref{Vertical spacing}.
1541
1542 Internals Reference:
1543 @rinternals{VerticalAxisGroup},
1544 @rinternals{StaffGrouper}.
1545
1546
1547 @node Divided voices
1548 @unnumberedsubsubsec Divided voices
1549
1550 @cindex voices, divided
1551
1552 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1553 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
1554
1555 @seealso
1556 Notation Reference:
1557 @ref{Expressive marks as lines}.
1558
1559
1560 @node Opera and stage musicals
1561 @subsection Opera and stage musicals
1562
1563 The music, lyrics and dialogue to opera and stage musicals are
1564 usually set out in one or more of the following forms:
1565
1566 @itemize
1567
1568 @item
1569 A @emph{Conductors' Score} containing the full orchestral and vocal
1570 parts, together with libretto cues if there are spoken passages.
1571
1572 @item
1573 @emph{Orchestral Parts} containing the music for the individual
1574 instruments of the orchestra or band.
1575
1576 @item
1577 A @emph{Vocal Score} containing all vocal parts with piano
1578 accompaniment.  The accompaniment is usually an orchestral
1579 reduction, and if so the name of the original orchestral instrument
1580 is often indicated.  Vocal scores sometimes includes stage
1581 directions and libretto cues.
1582
1583 @item
1584 A @emph{Vocal Book} containing just the vocal parts
1585 (no accompaniment), sometimes combined with the libretto.
1586
1587 @item
1588 A @emph{Libretto} containing the extended passages of spoken
1589 dialogue usually found in musicals, together with the words to the
1590 sung parts.  Stage directions are usually included.  LilyPond can
1591 be used to typeset libretti but as they contain no music
1592 alternative methods may be preferable.
1593
1594 @end itemize
1595
1596 The sections in the LilyPond documentation which cover the topics
1597 needed to create scores in the styles commonly found in opera and
1598 musicals are indicated in the References below.  This is followed
1599 by sections covering those techniques which are peculiar to
1600 typesetting opera and musical scores.
1601
1602 @menu
1603 * References for opera and stage musicals::
1604 * Spoken music::
1605 * Dialogue over music::
1606 @end menu
1607
1608 @node References for opera and stage musicals
1609 @unnumberedsubsubsec References for opera and stage musicals
1610
1611 @itemize
1612
1613 @item
1614 A conductors' score contains many grouped staves and lyrics.  Ways
1615 of grouping staves is shown in @ref{Grouping staves}.  To nest
1616 groups of staves see @ref{Nested staff groups}.
1617
1618 @item
1619 The printing of empty staves in conductors' scores and vocal scores
1620 is often suppressed.  To create such a @qq{Frenched score} see
1621 @ref{Hiding staves}.
1622
1623 @item
1624 Writing orchestral parts is covered in @ref{Writing parts}.
1625 Other sections in the Specialist notation chapter may be relevant,
1626 depending on the orchestration used.  Many instruments are
1627 transposing instruments, see @ref{Instrument transpositions}.
1628
1629 @item
1630 Character names are usually shown to the left of the staff when the
1631 staff is dedicated to that character alone.  The instrument name can
1632 be used for this purpose.  See @ref{Instrument names}.
1633
1634 @item
1635 When two or more characters share a staff the character's name is
1636 usually printed above the staff at the start of every section
1637 applying to that character.  This can be done with markup.  The use
1638 of markup is covered fully in @ref{Text}.  Often a specific font is
1639 used for this purpose, see @ref{Selecting font and font size}.
1640
1641 @item
1642 Musical cues can be inserted with the @code{\cueDuring} predefined
1643 command.  For details of its use see @ref{Formatting cue notes}.
1644
1645 @item
1646 Dialogue cues and stage directions can be inserted with markup.
1647 See @ref{Text}.  Extensive stage directions can be inserted with
1648 a section of stand-alone markup between two @code{\score} blocks.
1649 See @ref{Separate text}.
1650
1651 @end itemize
1652
1653 @predefined
1654 @code{\cueDuring},
1655 @code{\quoteDuring}.
1656
1657 @seealso
1658 Musical Glossary:
1659 @rglos{cue-notes},
1660 @rglos{Frenched score},
1661 @rglos{Frenched staves},
1662 @rglos{transposing instrument}.
1663
1664 Notation Manual:
1665 @ref{Grouping staves},
1666 @ref{Hiding staves},
1667 @ref{Instrument names},
1668 @ref{Instrument transpositions},
1669 @ref{Nested staff groups},
1670 @ref{Selecting font and font size},
1671 @ref{Text},
1672 @ref{Transpose},
1673 @ref{Writing parts},
1674 @ref{Writing text}.
1675
1676
1677 @node Spoken music
1678 @unnumberedsubsubsec Spoken music
1679
1680 @cindex parlato
1681 @cindex Sprechgesang
1682 Such effects as @q{parlato} or @q{Sprechgesang} require performers to speak
1683 without pitch but still with rhythm; these are notated by cross
1684 note heads, as demonstrated in @ref{Special note heads}.
1685
1686 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
1687 @c add "showing the rhythm of a melody" snip
1688 @c add "one staff-line notation"
1689 @c add "improvisation" ref
1690 @c add "lyrics independents of notes" ref
1691
1692 @node Dialogue over music
1693 @unnumberedsubsubsec Dialogue over music
1694
1695 TBC
1696
1697
1698 @node Chants psalms and hymns
1699 @subsection Chants psalms and hymns
1700
1701 @cindex chants
1702 @cindex psalms
1703 @cindex hymns
1704 @cindex religious music
1705
1706 The music and words for chants, psalms and hymns usually follow a
1707 well-established format in any particular church.  Although the
1708 formats may differ from church to church the type-setting problems
1709 which arise are broadly similar, and are covered in this section.
1710
1711 @menu
1712 * References for chants and psalms::
1713 * Setting a chant::
1714 * Pointing a psalm::
1715 * Partial measures in hymn tunes::
1716 @end menu
1717
1718 @node References for chants and psalms
1719 @unnumberedsubsubsec References for chants and psalms
1720
1721 Typesetting Gregorian chant in various styles of ancient notation
1722 is described in @ref{Ancient notation}.
1723
1724 @seealso
1725 Notation reference:
1726 @ref{Ancient notation}.
1727
1728
1729 @node Setting a chant
1730 @unnumberedsubsubsec Setting a chant
1731
1732 Modern chant settings use modern notation with varying numbers of
1733 elements taken from ancient notation.  Some of the elements and
1734 methods to consider are shown here.
1735
1736 Chants often use quarter notes without stems to indicate the pitch,
1737 with the rhythm being taken from the spoken rhythm of the words.
1738
1739 @lilypond[verbatim,quote]
1740 stemOff = { \override Staff.Stem #'transparent = ##t }
1741
1742 \relative c' {
1743   \stemOff
1744   a'4 b c2 |
1745 }
1746
1747 @end lilypond
1748
1749 Chants often omit the bar lines or use shortened or dotted bar
1750 lines to indicate pauses in the music.  To omit all bar lines from
1751 all staves remove the bar line engraver completely:
1752
1753 @lilypond[verbatim,quote]
1754 \score {
1755   \new StaffGroup <<
1756     \new Staff {
1757       \relative c'' {
1758         a4 b c2 |
1759         a4 b c2 |
1760         a4 b c2 |
1761       }
1762     }
1763     \new Staff {
1764       \relative c'' {
1765         a4 b c2 |
1766         a4 b c2 |
1767         a4 b c2 |
1768       }
1769     }
1770   >>
1771   \layout {
1772     \context {
1773       \Staff
1774       \remove Bar_engraver
1775     }
1776   }
1777 }
1778 @end lilypond
1779
1780 Bar lines can also be removed on a staff-by-staff basis:
1781
1782 @lilypond[verbatim, quote]
1783 \score {
1784   \new ChoirStaff <<
1785     \new Staff
1786     \with { \remove Bar_engraver } {
1787       \relative c'' {
1788         a4 b c2 |
1789         a4 b c2 |
1790         a4 b c2 |
1791       }
1792     }
1793     \new Staff {
1794       \relative c'' {
1795         a4 b c2 |
1796         a4 b c2 |
1797         a4 b c2 |
1798       }
1799     }
1800   >>
1801 }
1802 @end lilypond
1803
1804 To remove bar lines from just a section of music treat it as a
1805 cadenza.  If the section is long you may need to insert dummy
1806 barlines with @code{\bar ""} to show where the line should break.
1807
1808 @lilypond[verbatim,quote,relative=2]
1809 a4 b c2 |
1810 \cadenzaOn
1811 a4 b c2
1812 a4 b c2
1813 \bar ""
1814 a4 b c2
1815 a4 b c2
1816 \cadenzaOff
1817 a4 b c2 |
1818 a4 b c2 |
1819 @end lilypond
1820
1821 Rests or pauses in chants can be indicated by modified bar lines.
1822
1823 @lilypond[verbatim, quote,relative=2]
1824 a4
1825 \cadenzaOn
1826 b c2
1827 a4 b c2
1828 \bar "'"
1829 a4 b c2
1830 a4 b c2
1831 \bar ":"
1832 a4 b c2
1833 \bar "dashed"
1834 a4 b c2
1835 \bar "||"
1836 @end lilypond
1837
1838 Alternatively, the notation used in Gregorian chant for pauses or
1839 rests is sometimes used even though the rest of the notation is
1840 modern.  This uses a modified @code{\breathe} mark:
1841
1842 @lilypond[verbatim,quote]
1843 divisioMinima = {
1844   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-minima
1845   \once \override BreathingSign  #'Y-offset = #0
1846   \breathe
1847 }
1848 divisioMaior = {
1849   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maior
1850   \once \override BreathingSign  #'Y-offset = #0
1851   \breathe
1852 }
1853 divisioMaxima = {
1854   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maxima
1855   \once \override BreathingSign  #'Y-offset = #0
1856   \breathe
1857 }
1858 finalis = {
1859   \once \override BreathingSign  #'stencil = #ly:breathing-sign::finalis
1860   \once \override BreathingSign  #'Y-offset = #0
1861   \breathe
1862 }
1863
1864 \score {
1865   \relative c'' {
1866     g2 a4 g
1867     \divisioMinima
1868     g2 a4 g
1869     \divisioMaior
1870     g2 a4 g
1871     \divisioMaxima
1872     g2 a4 g
1873     \finalis
1874   }
1875   \layout {
1876     \context {
1877       \Staff
1878       \remove Bar_engraver
1879     }
1880   }
1881 }
1882 @end lilypond
1883
1884 Chants usually omit the time signature and often omit the clef too.
1885
1886 @lilypond[verbatim,quote]
1887 \score {
1888   \new Staff {
1889     \relative c'' {
1890       a4 b c2 |
1891       a4 b c2 |
1892       a4 b c2 |
1893     }
1894   }
1895   \layout {
1896     \context {
1897       \Staff
1898       \remove Bar_engraver
1899       \remove Time_signature_engraver
1900       \remove Clef_engraver
1901     }
1902   }
1903 }
1904 @end lilypond
1905
1906 Chants for psalms in the Anglican tradition are usually either
1907 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
1908 of 7 bars.  Each group of 7 bars is divided into two halves,
1909 corresponding to the two halves of each verse, usually separated by
1910 a double bar line.  Only whole and half notes are used.  The 1st bar
1911 in each half always contains a single chord of whole notes.  This is
1912 the @qq{reciting note}.
1913
1914 Some approaches to setting such a chant are shown in the first of
1915 the following snippets, and another example can be seen in the
1916 templates, see @qq{Psalms} in @rlearning{Vocal ensembles}.
1917
1918 @snippets
1919
1920 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1921 {chant-or-psalms-notation.ly}
1922
1923 Canticles and other liturgical texts may be set more freely, and
1924 may use notational elements from ancient music.  Often the words
1925 are shown underneath and aligned with the notes.  If so, the notes
1926 are spaced in accordance with the syllables rather than the notes'
1927 durations.
1928
1929 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1930 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
1931
1932 @seealso
1933 Learning Manual:
1934 @rlearning{Visibility and color of objects}.
1935
1936 Notation Reference:
1937 @ref{Ancient notation},
1938 @ref{Bar lines},
1939 @ref{Modifying context plug-ins},
1940 @ref{Typesetting Gregorian chant},
1941 @ref{Unmetered music},
1942 @ref{Visibility of objects}.
1943
1944
1945 @node Pointing a psalm
1946 @unnumberedsubsubsec Pointing a psalm
1947
1948 The words to a Anglican psalm are usually printed in separate
1949 verses underneath the chant.  See the Anglican psalm template in
1950 the Learning Manual to see how to use mark-up to center the chant
1951 and place the verses centered underneath.  Marks are inserted
1952 in the words to show how they should be fitted to the chant.
1953 Single chants (with 7 bars) are repeated for every verse.  Double
1954 chants (with 14 bars) are repeated for every pair of verses.
1955
1956 Each verse is divided into two halves.  An asterisk or a colon
1957 is frequently used to indicate this division.  This corresponds
1958 to the double bar line in the music.  The words before the colon
1959 are sung to the first 3 bars of music; the words after the colon
1960 are sung to the last four bars.
1961
1962 Single bar lines (or in some psalters an inverted comma or similar
1963 symbol) are inserted between words to indicate where the bar lines
1964 in the music fall.  In markup mode a single bar line can be entered
1965 with the bar check symbol, @code{|}.  Other symbols may require
1966 glyphs from the @code{fetaMusic} fonts.  For details, see
1967 @ref{Fonts}.
1968
1969 Where there is one whole note in a bar all the words corresponding
1970 to that bar are recited on that one note in speech rhythm.  Where
1971 there are two notes in a bar there will usually be only one or two
1972 corresponding syllables.  If there are more that two syllables a
1973 dot is usually inserted to indicate where the change in note occurs.
1974
1975 In some psalters an asterisk is used to indicate a break in a
1976 recited section instead of a comma, and stressed or slightly
1977 lengthened syllables are indicated in bold text.  Others use an
1978 accent over the syllable to indicate stress.
1979
1980 The use of markup to center text, and arrange lines in columns is
1981 described in @ref{Formatting text}.
1982
1983 Most of these elements are shown in one or other of the two verses
1984 in the template, see @qq{Psalms} in @rlearning{Vocal ensembles}.
1985
1986 @seealso
1987 Learning Manual:
1988 @rlearning{Vocal ensembles}.
1989
1990 Notation Reference:
1991 @ref{Fonts},
1992 @ref{Formatting text}.
1993
1994
1995 @node Partial measures in hymn tunes
1996 @unnumberedsubsubsec Partial measures in hymn tunes
1997
1998 Hymn tunes frequently start and end every line of music with
1999 partial measures so that each line of music corresponds exactly
2000 with a line of text.  This requires a @code{\partial} command at
2001 the start of the music and @code{\bar "|"} or @code{\bar "||"}
2002 commands at the end of each line.
2003
2004 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2005 {hymn-template.ly}
2006
2007
2008 @node Ancient vocal music
2009 @subsection Ancient vocal music
2010
2011 Ancient vocal music is supported, as explained in @ref{Ancient notation}.
2012
2013 @c TODO
2014
2015 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
2016 @c and "Transcription of Ancient music with incipit" snippet. -vv
2017
2018 @seealso
2019 Notation Reference:
2020 @ref{Ancient notation}.
2021
2022
2023
2024