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