]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/vocal.itely
Doc: NR 2.1 Vocal: add \oneVoice to predefs
[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{\oneVoice},
1409 @code{\voiceOne},
1410 @code{\voiceTwo}.
1411
1412 @seealso
1413 Learning Manual:
1414 @rlearning{Four-part SATB vocal score},
1415 @rlearning{Vocal ensembles}.
1416
1417 Notation Reference:
1418 @ref{Context layout order},
1419 @ref{Grouping staves},
1420 @ref{Shape note heads},
1421 @ref{Single-staff polyphony}.
1422
1423 Internals Reference:
1424 @rinternals{ChoirStaff},
1425 @rinternals{Lyrics},
1426 @rinternals{PianoStaff}.
1427
1428 @node Score layouts for choral
1429 @unnumberedsubsubsec Score layouts for choral
1430
1431 Choral music containing four staves, with or without piano
1432 accompaniment, is usually laid out with two systems per page.
1433 Depending on the page size, achieving this may require changes
1434 to several default settings.  The following settings should be
1435 considered:
1436
1437 @itemize
1438
1439 @item
1440 The global staff size can be modified to change the overall size
1441 of the elements of the score.  See @ref{Setting the staff size}.
1442
1443 @item
1444 The distances between the systems, the staves and the lyrics can
1445 all be adjusted independently.  See @ref{Vertical spacing}.
1446
1447 @item
1448 The dimensions of the vertical layout variables can be displayed as
1449 an aid to adjusting the vertical spacing.  This and other
1450 possibilities for fitting the music onto fewer pages are described
1451 in @ref{Fitting music onto fewer pages}.
1452
1453 @item
1454 If the number of systems per page changes from one to two it is
1455 customary to indicate this with a system separator mark between
1456 the two systems.  See @ref{Separating systems}.
1457
1458 @item
1459 For details of other page formatting properties, see
1460 @ref{Page formatting}.
1461
1462 @end itemize
1463
1464
1465 Dynamic markings by default are placed below the staff, but in
1466 choral music they are usually placed above the staff in order to
1467 avoid the lyrics.  The predefined command @code{\dynamicUp} does
1468 this for the dynamic markings in a single @code{Voice} context.
1469 If there are many @code{Voice} contexts this predefined command
1470 would have to be placed in every one.  Alternatively its expanded
1471 form can be used to place all dynamic markings in the entire score
1472 above their respective staves, as shown here:
1473
1474 @lilypond[verbatim,quote]
1475 \score {
1476   \new ChoirStaff <<
1477     \new Staff {
1478       \new Voice {
1479         \relative c'' { g4\f g g g }
1480       }
1481     }
1482     \new Staff {
1483       \new Voice {
1484         \relative c' { d4 d d\p d }
1485       }
1486     }
1487   >>
1488   \layout {
1489     \context {
1490       \Score
1491       \override DynamicText #'direction = #UP
1492       \override DynamicLineSpanner #'direction = #UP
1493     }
1494   }
1495 }
1496 @end lilypond
1497
1498 @predefined
1499 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
1500
1501 @seealso
1502 Notation Reference:
1503 @ref{Changing spacing},
1504 @ref{Displaying spacing},
1505 @ref{Fitting music onto fewer pages},
1506 @ref{Page formatting},
1507 @ref{Score layout},
1508 See @ref{Separating systems},
1509 @ref{Setting the staff size},
1510 @ref{Using an extra voice for breaks},
1511 @ref{Vertical spacing}.
1512
1513 Internals Reference:
1514 @rinternals{VerticalAxisGroup},
1515 @rinternals{StaffGrouper}.
1516
1517
1518 @node Divided voices
1519 @unnumberedsubsubsec Divided voices
1520
1521 @cindex voices, divided
1522
1523 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1524 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
1525
1526 @seealso
1527 Notation Reference:
1528 @ref{Expressive marks as lines}.
1529
1530
1531 @node Opera and stage musicals
1532 @subsection Opera and stage musicals
1533
1534 The music, lyrics and dialogue to opera and stage musicals are
1535 usually set out in one or more of the following forms:
1536
1537 @itemize
1538
1539 @item
1540 A @emph{Conductors' Score} containing the full orchestral and vocal
1541 parts, together with libretto cues if there are spoken passages.
1542
1543 @item
1544 @emph{Orchestral Parts} containing the music for the individual
1545 instruments of the orchestra or band.
1546
1547 @item
1548 A @emph{Vocal Score} containing all vocal parts with piano
1549 accompaniment.  The accompaniment is usually an orchestral
1550 reduction, and if so the name of the original orchestral instrument
1551 is often indicated.  Vocal scores sometimes includes stage
1552 directions and libretto cues.
1553
1554 @item
1555 A @emph{Vocal Book} containing just the vocal parts
1556 (no accompaniment), sometimes combined with the libretto.
1557
1558 @item
1559 A @emph{Libretto} containing the extended passages of spoken
1560 dialogue usually found in musicals, together with the words to the
1561 sung parts.  Stage directions are usually included.  LilyPond can
1562 be used to typeset libretti but as they contain no music
1563 alternative methods may be preferable.
1564
1565 @end itemize
1566
1567 The sections in the LilyPond documentation which cover the topics
1568 needed to create scores in the styles commonly found in opera and
1569 musicals are indicated in the References below.  This is followed
1570 by sections covering those techniques which are peculiar to
1571 typesetting opera and musical scores.
1572
1573 @menu
1574 * References for opera and stage musicals::
1575 * Spoken music::
1576 * Dialogue over music::
1577 @end menu
1578
1579 @node References for opera and stage musicals
1580 @unnumberedsubsubsec References for opera and stage musicals
1581
1582 @itemize
1583
1584 @item
1585 A conductors' score contains many grouped staves and lyrics.  Ways
1586 of grouping staves is shown in @ref{Grouping staves}.  To nest
1587 groups of staves see @ref{Nested staff groups}.
1588
1589 @item
1590 The printing of empty staves in conductors' scores and vocal scores
1591 is often suppressed.  To create such a @qq{Frenched score} see
1592 @ref{Hiding staves}.
1593
1594 @item
1595 Writing orchestral parts is covered in @ref{Writing parts}.
1596 Other sections in the Specialist notation chapter may be relevant,
1597 depending on the orchestration used.  Many instruments are
1598 transposing instruments, see @ref{Instrument transpositions}.
1599
1600 @item
1601 If the number of systems per page changes from page to page it is
1602 customary to separate the systems with a system separator mark.
1603 See @ref{Separating systems}.
1604
1605 @item
1606 For details of other page formatting properties, see
1607 @ref{Page formatting}.
1608
1609 @item
1610 Character names are usually shown to the left of the staff when the
1611 staff is dedicated to that character alone.  The instrument name can
1612 be used for this purpose.  See @ref{Instrument names}.
1613
1614 @item
1615 When two or more characters share a staff the character's name is
1616 usually printed above the staff at the start of every section
1617 applying to that character.  This can be done with markup.  The use
1618 of markup is covered fully in @ref{Text}.  Often a specific font is
1619 used for this purpose, see @ref{Selecting font and font size}.
1620
1621 @item
1622 Musical cues can be inserted with the @code{\cueDuring} predefined
1623 command.  For details of its use see @ref{Formatting cue notes}.
1624
1625 @item
1626 Dialogue cues and stage directions can be inserted with markup.
1627 See @ref{Text}.  Extensive stage directions can be inserted with
1628 a section of stand-alone markup between two @code{\score} blocks.
1629 See @ref{Separate text}.
1630
1631 @end itemize
1632
1633 @predefined
1634 @code{\cueDuring},
1635 @code{\quoteDuring}.
1636
1637 @seealso
1638 Musical Glossary:
1639 @rglos{cue-notes},
1640 @rglos{Frenched score},
1641 @rglos{Frenched staves},
1642 @rglos{transposing instrument}.
1643
1644 Notation Manual:
1645 @ref{Grouping staves},
1646 @ref{Hiding staves},
1647 @ref{Instrument names},
1648 @ref{Instrument transpositions},
1649 @ref{Nested staff groups},
1650 @ref{Page formatting},
1651 @ref{Selecting font and font size},
1652 @ref{Separating systems},
1653 @ref{Text},
1654 @ref{Transpose},
1655 @ref{Writing parts},
1656 @ref{Writing text}.
1657
1658
1659 @node Spoken music
1660 @unnumberedsubsubsec Spoken music
1661
1662 @cindex parlato
1663 @cindex Sprechgesang
1664 Such effects as @q{parlato} or @q{Sprechgesang} require performers to speak
1665 without pitch but still with rhythm; these are notated by cross
1666 note heads, as demonstrated in @ref{Special note heads}.
1667
1668 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
1669 @c add "showing the rhythm of a melody" snip
1670 @c add "one staff-line notation"
1671 @c add "improvisation" ref
1672 @c add "lyrics independents of notes" ref
1673
1674 @node Dialogue over music
1675 @unnumberedsubsubsec Dialogue over music
1676
1677 TBC
1678
1679
1680 @node Chants psalms and hymns
1681 @subsection Chants psalms and hymns
1682
1683 @cindex chants
1684 @cindex psalms
1685 @cindex hymns
1686 @cindex religious music
1687
1688 The music and words for chants, psalms and hymns usually follow a
1689 well-established format in any particular church.  Although the
1690 formats may differ from church to church the type-setting problems
1691 which arise are broadly similar, and are covered in this section.
1692
1693 @menu
1694 * References for chants and psalms::
1695 * Setting a chant::
1696 * Pointing a psalm::
1697 * Partial measures in hymn tunes::
1698 @end menu
1699
1700 @node References for chants and psalms
1701 @unnumberedsubsubsec References for chants and psalms
1702
1703 Typesetting Gregorian chant in various styles of ancient notation
1704 is described in @ref{Ancient notation}.
1705
1706 @seealso
1707 Notation reference:
1708 @ref{Ancient notation}.
1709
1710
1711 @node Setting a chant
1712 @unnumberedsubsubsec Setting a chant
1713
1714 Modern chant settings use modern notation with varying numbers of
1715 elements taken from ancient notation.  Some of the elements and
1716 methods to consider are shown here.
1717
1718 Chants often use quarter notes without stems to indicate the pitch,
1719 with the rhythm being taken from the spoken rhythm of the words.
1720
1721 @lilypond[verbatim,quote]
1722 stemOff = { \override Staff.Stem #'transparent = ##t }
1723
1724 \relative c' {
1725   \stemOff
1726   a'4 b c2 |
1727 }
1728
1729 @end lilypond
1730
1731 Chants often omit the bar lines or use shortened or dotted bar
1732 lines to indicate pauses in the music.  To omit all bar lines from
1733 all staves remove the bar line engraver completely:
1734
1735 @lilypond[verbatim,quote]
1736 \score {
1737   \new StaffGroup <<
1738     \new Staff {
1739       \relative c'' {
1740         a4 b c2 |
1741         a4 b c2 |
1742         a4 b c2 |
1743       }
1744     }
1745     \new Staff {
1746       \relative c'' {
1747         a4 b c2 |
1748         a4 b c2 |
1749         a4 b c2 |
1750       }
1751     }
1752   >>
1753   \layout {
1754     \context {
1755       \Staff
1756       \remove Bar_engraver
1757     }
1758   }
1759 }
1760 @end lilypond
1761
1762 Bar lines can also be removed on a staff-by-staff basis:
1763
1764 @lilypond[verbatim, quote]
1765 \score {
1766   \new ChoirStaff <<
1767     \new Staff
1768     \with { \remove Bar_engraver } {
1769       \relative c'' {
1770         a4 b c2 |
1771         a4 b c2 |
1772         a4 b c2 |
1773       }
1774     }
1775     \new Staff {
1776       \relative c'' {
1777         a4 b c2 |
1778         a4 b c2 |
1779         a4 b c2 |
1780       }
1781     }
1782   >>
1783 }
1784 @end lilypond
1785
1786 To remove bar lines from just a section of music treat it as a
1787 cadenza.  If the section is long you may need to insert dummy
1788 barlines with @code{\bar ""} to show where the line should break.
1789
1790 @lilypond[verbatim,quote,relative=2]
1791 a4 b c2 |
1792 \cadenzaOn
1793 a4 b c2
1794 a4 b c2
1795 \bar ""
1796 a4 b c2
1797 a4 b c2
1798 \cadenzaOff
1799 a4 b c2 |
1800 a4 b c2 |
1801 @end lilypond
1802
1803 Rests or pauses in chants can be indicated by modified bar lines.
1804
1805 @lilypond[verbatim, quote,relative=2]
1806 a4
1807 \cadenzaOn
1808 b c2
1809 a4 b c2
1810 \bar "'"
1811 a4 b c2
1812 a4 b c2
1813 \bar ":"
1814 a4 b c2
1815 \bar "dashed"
1816 a4 b c2
1817 \bar "||"
1818 @end lilypond
1819
1820 Alternatively, the notation used in Gregorian chant for pauses or
1821 rests is sometimes used even though the rest of the notation is
1822 modern.  This uses a modified @code{\breathe} mark:
1823
1824 @lilypond[verbatim,quote]
1825 divisioMinima = {
1826   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-minima
1827   \once \override BreathingSign  #'Y-offset = #0
1828   \breathe
1829 }
1830 divisioMaior = {
1831   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maior
1832   \once \override BreathingSign  #'Y-offset = #0
1833   \breathe
1834 }
1835 divisioMaxima = {
1836   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maxima
1837   \once \override BreathingSign  #'Y-offset = #0
1838   \breathe
1839 }
1840 finalis = {
1841   \once \override BreathingSign  #'stencil = #ly:breathing-sign::finalis
1842   \once \override BreathingSign  #'Y-offset = #0
1843   \breathe
1844 }
1845
1846 \score {
1847   \relative c'' {
1848     g2 a4 g
1849     \divisioMinima
1850     g2 a4 g
1851     \divisioMaior
1852     g2 a4 g
1853     \divisioMaxima
1854     g2 a4 g
1855     \finalis
1856   }
1857   \layout {
1858     \context {
1859       \Staff
1860       \remove Bar_engraver
1861     }
1862   }
1863 }
1864 @end lilypond
1865
1866 Chants usually omit the time signature and often omit the clef too.
1867
1868 @lilypond[verbatim,quote]
1869 \score {
1870   \new Staff {
1871     \relative c'' {
1872       a4 b c2 |
1873       a4 b c2 |
1874       a4 b c2 |
1875     }
1876   }
1877   \layout {
1878     \context {
1879       \Staff
1880       \remove Bar_engraver
1881       \remove Time_signature_engraver
1882       \remove Clef_engraver
1883     }
1884   }
1885 }
1886 @end lilypond
1887
1888 Chants for psalms in the Anglican tradition are usually either
1889 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
1890 of 7 bars.  Each group of 7 bars is divided into two halves,
1891 corresponding to the two halves of each verse, usually separated by
1892 a double bar line.  Only whole and half notes are used.  The 1st bar
1893 in each half always contains a single chord of whole notes.  This is
1894 the @qq{reciting note}.
1895
1896 Some approaches to setting such a chant are shown in the first of
1897 the following snippets, and another example can be seen in the
1898 templates, see @qq{Psalms} in @rlearning{Vocal ensembles}.
1899
1900 @snippets
1901
1902 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1903 {chant-or-psalms-notation.ly}
1904
1905 Canticles and other liturgical texts may be set more freely, and
1906 may use notational elements from ancient music.  Often the words
1907 are shown underneath and aligned with the notes.  If so, the notes
1908 are spaced in accordance with the syllables rather than the notes'
1909 durations.
1910
1911 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1912 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
1913
1914 @seealso
1915 Learning Manual:
1916 @rlearning{Visibility and color of objects}.
1917
1918 Notation Reference:
1919 @ref{Ancient notation},
1920 @ref{Bar lines},
1921 @ref{Modifying context plug-ins},
1922 @ref{Typesetting Gregorian chant},
1923 @ref{Unmetered music},
1924 @ref{Visibility of objects}.
1925
1926
1927 @node Pointing a psalm
1928 @unnumberedsubsubsec Pointing a psalm
1929
1930 The words to a Anglican psalm are usually printed in separate
1931 verses underneath the chant.  See the Anglican psalm template in
1932 the Learning Manual to see how to use mark-up to center the chant
1933 and place the verses centered underneath.  Marks are inserted
1934 in the words to show how they should be fitted to the chant.
1935 Single chants (with 7 bars) are repeated for every verse.  Double
1936 chants (with 14 bars) are repeated for every pair of verses.
1937
1938 Each verse is divided into two halves.  An asterisk or a colon
1939 is frequently used to indicate this division.  This corresponds
1940 to the double bar line in the music.  The words before the colon
1941 are sung to the first 3 bars of music; the words after the colon
1942 are sung to the last four bars.
1943
1944 Single bar lines (or in some psalters an inverted comma or similar
1945 symbol) are inserted between words to indicate where the bar lines
1946 in the music fall.  In markup mode a single bar line can be entered
1947 with the bar check symbol, @code{|}.  Other symbols may require
1948 glyphs from the @code{fetaMusic} fonts.  For details, see
1949 @ref{Fonts}.
1950
1951 Where there is one whole note in a bar all the words corresponding
1952 to that bar are recited on that one note in speech rhythm.  Where
1953 there are two notes in a bar there will usually be only one or two
1954 corresponding syllables.  If there are more that two syllables a
1955 dot is usually inserted to indicate where the change in note occurs.
1956
1957 In some psalters an asterisk is used to indicate a break in a
1958 recited section instead of a comma, and stressed or slightly
1959 lengthened syllables are indicated in bold text.  Others use an
1960 accent over the syllable to indicate stress.
1961
1962 The use of markup to center text, and arrange lines in columns is
1963 described in @ref{Formatting text}.
1964
1965 Most of these elements are shown in one or other of the two verses
1966 in the template, see @qq{Psalms} in @rlearning{Vocal ensembles}.
1967
1968 @seealso
1969 Learning Manual:
1970 @rlearning{Vocal ensembles}.
1971
1972 Notation Reference:
1973 @ref{Fonts},
1974 @ref{Formatting text}.
1975
1976
1977 @node Partial measures in hymn tunes
1978 @unnumberedsubsubsec Partial measures in hymn tunes
1979
1980 Hymn tunes frequently start and end every line of music with
1981 partial measures so that each line of music corresponds exactly
1982 with a line of text.  This requires a @code{\partial} command at
1983 the start of the music and @code{\bar "|"} or @code{\bar "||"}
1984 commands at the end of each line.
1985
1986 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1987 {hymn-template.ly}
1988
1989
1990 @node Ancient vocal music
1991 @subsection Ancient vocal music
1992
1993 Ancient vocal music is supported, as explained in @ref{Ancient notation}.
1994
1995 @c TODO
1996
1997 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
1998 @c and "Transcription of Ancient music with incipit" snippet. -vv
1999
2000 @seealso
2001 Notation Reference:
2002 @ref{Ancient notation}.
2003
2004
2005
2006