Start pictograms branch.
[lilypond/mpolesky.git] / Documentation / notation / vocal.itely
blob671db19355b7ffa3b1fbb0893548aae16ffb808b
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
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
10 @c \version "2.12.0"
12 @node Vocal music
13 @section Vocal music
15 @c TODO: inspirational headword
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.
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::
30 @end menu
33 @node Common notation for vocal music
34 @subsection Common notation for vocal music
36 This section discusses issues common to most types of vocal music.
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
51 @node References for vocal music
52 @unnumberedsubsubsec References for vocal music
54 This section indicates where to find details of notation issues
55 that may arise in any type of vocal music.
57 @itemize
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}.
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}.
68 @item
69 @notation{Ambitus} may be added at the beginning of vocal staves, as explained
70 in @ref{Ambitus}.
72 @end itemize
74 @seealso
75 Music Glossary:
76 @rglos{ambitus}.
78 @node Entering lyrics
79 @unnumberedsubsubsec Entering lyrics
81 Lyrics are entered in lyric mode.  This section explains how this
82 done.
84 @cindex lyrics
85 @funindex \lyricmode
86 @cindex punctuation
87 @cindex spaces, in lyrics
88 @cindex quotes, in lyrics
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.
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,
106 @example
107 \lyricmode @{ Twin-4 kle4 twin- kle litt- le star2 @}
108 @end example
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}.
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.
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:
127 @example
128 \lyricmode @{ lah- lah@}
129 @end example
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.
136 @funindex \property in \lyricmode
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
143 @example
144 \override Score.LyricText #'font-shape = #'italic
145 @end example
147 @noindent
148 but instead use
150 @example
151 \override Score . LyricText #'font-shape = #'italic
152 @end example
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.
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
164 To use normal quotes in lyrics, add a backslash before the
165 quotes.  For example,
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
172 The full definition of a word start in Lyrics mode is somewhat more
173 complex.
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{^}.
182 @c " to balance double quotes for not-so-bright context-sensitive editors
184 To define variables containing lyrics, the function @code{lyricmode}
185 must be used.
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   >>
199 @end example
202 @seealso
203 Notation Reference:
204 @ref{Fonts}.
206 Internals Reference:
207 @rinternals{LyricText},
208 @rinternals{LyricSpace}.
211 @node Aligning lyrics to a melody
212 @unnumberedsubsubsec Aligning lyrics to a melody
214 @funindex \lyricmode
215 @funindex \addlyrics
216 @funindex \lyricsto
218 @c TODO: this stuff is to be rewritten. -vv
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.
225 Lyrics are printed by interpreting them in the context called
226 @code{Lyrics}; see @rinternals{Lyrics}, for more.
228 @example
229 \new Lyrics \lyricmode @dots{}
230 @end example
232 There are two main methods to specify the horizontal placement
233 of the syllables:
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}
241 @item
242 or by specifying the duration of each syllable
243 explicitly, using @code{\lyricmode}
244 @end itemize
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}.
253 @node Automatic syllable durations
254 @unnumberedsubsubsec Automatic syllable durations
256 @cindex syllable durations, automatic
257 @cindex lyrics and melodies
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
263 @example
264 \new Lyrics \lyricsto @var{name} @dots{}
265 @end example
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.
275 The following example uses different commands for entering lyrics.
277 @lilypond[quote,fragment,ragged-right,verbatim]
279   \new Voice = "one" \relative c'' {
280     \autoBeamOff
281     \time 2/4
282     c4 b8. a16 g4. f8 e4 d c2
283   }
285 % not recommended: left-aligned syllables
286   \new Lyrics \lyricmode { Joy4 to8. the16 world!4. the8 Lord4 is come.2 }
288 % wrong: durations needed
289   \new Lyrics \lyricmode { Joy to the earth! the Sa -- viour reigns. }
291 %correct
292   \new Lyrics \lyricsto "one" { No more let sins and sor -- rows grow. }
294 @end lilypond
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}.
299 @cindex \addlyrics
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.
305 @example
306 @{ MUSIC @}
307 \addlyrics @{ LYRICS @}
308 @end example
310 @noindent
311 is the same as
313 @example
314 \new Voice = "blah" @{ music @}
315 \new Lyrics \lyricsto "blah" @{ LYRICS @}
316 @end example
318 Here is an example,
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
326 More stanzas can be added by adding more
327 @code{\addlyrics} sections
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
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}.
341 @node Manual syllable durations
342 @unnumberedsubsubsec Manual syllable durations
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:
349 @example
350 play2 the4 game2.
351 sink2 or4 swim2.
352 @end example
354 The alignment to a melody can be specified with the
355 @code{associatedVoice} property,
357 @example
358 \set associatedVoice = #"lala"
359 @end example
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.
366 Here is an example demonstrating manual lyric durations,
368 @lilypond[relative=1,ragged-right,verbatim,fragment,quote]
369 << \new Voice = "melody" {
370     \time 3/4
371     c2 e4 g2.
373  \new Lyrics \lyricmode {
374    \set associatedVoice = #"melody"
375    play2 the4 game2.
376  } >>
377 @end lilypond
380 @seealso
381 Notation Reference:
382 @ref{Keeping contexts alive}.
384 Internals Reference:
385 @rinternals{Lyrics},
386 @rinternals{Voice}.
389 @node Multiple syllables to one note
390 @unnumberedsubsubsec Multiple syllables to one note
392 @funindex _
393 @cindex spaces, in lyrics
394 @cindex quotes, in lyrics
395 @cindex ties, in lyrics
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.
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
414 @seealso
415 Internals Reference:
416 @rinternals{LyricCombineMusic}.
419 @c Here come the section which used to be "Melismata"
420 @c the new title might be more self-explanatory
423 @node Multiple notes to one syllable
424 @unnumberedsubsubsec Multiple notes to one syllable
426 @cindex melisma
427 @cindex melismata
428 @cindex phrasing, in lyrics
430 Sometimes, particularly in Medieval music, several notes are to be sung on one
431 single syllable; such vocalises are called melismas, or melismata.
433 @c this method seems to be the simplest; therefore
434 @c it might be better to present it first - vv
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.
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.
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.
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
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.
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.,
469 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
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   }
483 @end lilypond
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.
489 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
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   }
501 @end lilypond
503 @c TODO: this now links to LM -vv
504 @c   umm, yeah... so what?  -gp
506 @cindex SATB
507 @cindex choral score
509 A complete example of a SATB score setup is in
510 @rlearning{Vocal ensembles}.
513 @predefined
514 @funindex \melisma
515 @code{\melisma},
516 @funindex \melismaEnd
517 @code{\melismaEnd}.
518 @endpredefined
521 @c @seealso
522 @c @lsr{vocal,lyric@/-combine.ly}.
525 @knownissues
527 Melismata are not detected automatically, and extender lines must be
528 inserted by hand.
530 @node Skipping notes
531 @unnumberedsubsubsec Skipping notes
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.
539 @lilypond[verbatim,ragged-right,quote]
540 \relative c' { c c g' }
541 \addlyrics {
542   twin -- \skip 4
543   kle
545 @end lilypond
548 @node Extenders and hyphens
549 @unnumberedsubsubsec Extenders and hyphens
551 @cindex melisma
552 @cindex extender
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).
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.}
567 @cindex hyphens
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.
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).
581 @seealso
582 Internals Reference:
583 @rinternals{LyricExtender},
584 @rinternals{LyricHyphen}.
587 @node Techniques specific to lyrics
588 @subsection Techniques specific to lyrics
590 @c TODO This whole section is to be reorganized. -vv
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
603 @node Working with lyrics and variables
604 @unnumberedsubsubsec Working with lyrics and variables
606 @cindex lyrics, variables
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.
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  >>
625 @end example
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} @}
636 @end example
638 @noindent
639 and then combine the appropriate melodies and lyric lines
641 @example
642 \context Lyrics = sopranoLyrics \lyricsto "soprano"
643 @emph{the lyrics}
644 @end example
646 @noindent
647 The final input would resemble
649 @example
650 <<\new ChoirStaff << @emph{setup the music} >>
651  \lyricsto "soprano" @emph{etc}
652  \lyricsto "alto" @emph{etc}
653 @emph{etc}
655 @end example
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
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:
669 @example
670 words = \lyrics{ %warning: this creates a new context
671  one two
674   \new Voice = "sop" { c1 }
675   \new Lyrics \lyricsto "sop" { \words }
676   \new Voice = "alt" { c2 c }
677   \new Lyrics \lyricsto "alt" { \words }
679 @end example
681 the problem is that \lyricsto will try to connect the "sop" melody with the context
682 created by "\new Lyrics".
684 Then \lyrics in \words creates another context, and the original "\new Lyrics" one
685 remains empty.
687 @end ignore
690 @seealso
691 @c TODO: document \new Staff << Voice \lyricsto >> bug
692 Internals Reference:
693 @rinternals{LyricCombineMusic},
694 @rinternals{Lyrics}.
697 @node Lyrics and repeats
698 @unnumberedsubsubsec Lyrics and repeats
700 @cindex repeats and lyrics
702 @c see http://lists.gnu.org/archive/html/lilypond-user/2010-07/msg00022.html
703 @c see http://lists.gnu.org/archive/html/lilypond-user/2010-06/msg00472.html
705 @subheading Simple repeats
707 Repeats in @emph{music} are fully described elsewhere; see
708 @ref{Repeats}.  This section explains how to add lyrics to repeated
709 sections of music.
711 Lyrics to a volta repeat can be written exactly as if the music was
712 not repeated, if the words are unchanged.
714 @lilypond[verbatim,quote]
715 \score {
716   <<
717     \new Staff {
718       \new Voice = "melody" {
719         \relative c'' {
720           a4 a a a
721           \repeat volta 2 { b4 b b b }
722         }
723       }
724     }
725     \new Lyrics {
726       \lyricsto "melody" {
727         Not re -- peat -- ed.
728         Re -- peat -- ed twice.
729       }
730     }
731   >>
733 @end lilypond
735 But if an unfold repeat is used, both the lyrics and the music must
736 be repeated (assuming the repeated words are the same), otherwise
737 the repeated section will have no lyrics.
739 @lilypond[verbatim,quote]
740 \score {
741   <<
742     \new Staff {
743       \new Voice = "melody" {
744         \relative c'' {
745           a4 a a a
746           \repeat unfold 2 { b4 b b b }
747         }
748       }
749     }
750     \new Lyrics {
751       \lyricsto "melody" {
752         Not re -- peat -- ed.
753         \repeat unfold 2 { Re -- peat -- ed twice. }
754       }
755     }
756   >>
758 @end lilypond
760 If the repeated section has different words and is unfolded simply
761 enter all the words:
763 @lilypond[verbatim,quote,ragged-right]
764 \score {
765   <<
766     \new Staff {
767       \new Voice = "melody" {
768         \relative c'' {
769           a4 a a a
770           \repeat unfold 2 { b4 b b b }
771         }
772       }
773     }
774     \new Lyrics {
775       \lyricsto "melody" {
776         Not re -- peat -- ed.
777         The first time words.
778         Sec -- ond time words.
779       }
780     }
781   >>
783 @end lilypond
785 When the words to a repeated volta section are different the words
786 to each repeat must entered in separate @code{Lyrics} contexts.
787 Earlier unrepeated sections must be skipped in the second and
788 subsequent repeats.  The easiest way to skip several notes is to
789 use @code{\repeat unfold} around the @code{\skip}.
791 @warning{The @code{\skip} command must be followed by a number,
792 but this number is ignored in lyric mode.  Each @code{\skip} skips
793 a single note of any value, irrespective of the value of the
794 following number.}
796 @lilypond[verbatim,quote]
797 \score {
798   <<
799     \new Staff {
800       \new Voice = "melody" {
801         \relative c'' {
802           a4 a a a
803           \repeat volta 2 { b4 b b b }
804         }
805       }
806     }
807     \new Lyrics {
808       \lyricsto "melody" {
809         Not re -- peat -- ed.
810         The first time words.
811       }
812     }
813     \new Lyrics {
814       \lyricsto "melody" {
815         % skip 4 notes of any duration
816         \repeat unfold 4 { \skip 1 }
817         Sec -- ond time words.
818       }
819     }
820   >>
822 @end lilypond
824 An alternative way, which avoids having to count notes, is to use a
825 temporary voice for the repeated section.  This may be useful if
826 the earlier sections are still subject to change.  A temporary voice
827 can be inserted anywhere in the main music stream in parallel with
828 it, as shown below, but it may be necessary to keep the main voice
829 alive in complex scores when using this technique; see
830 @ref{Keeping contexts alive}.
832 @lilypond[verbatim,quote,ragged-right]
833 \score {
834   <<
835     \new Staff {
836       \new Voice = "singleVoice" {
837         \relative c'' { a4 a a a }
838         \new Voice = "repeatVoice" {
839           \relative c'' \repeat volta 3 { b4 b b b }
840         }
841         \relative c'' { c4 c c c }
842       }
843     }
844     \new Lyrics <<
845       \lyricsto "singleVoice" {
846         Not re -- peat -- ed.
847         The end sec -- tion.
848       }
849       \lyricsto "repeatVoice" {
850         The first time words.
851       }
852     >>
853     \new Lyrics {
854       \lyricsto "repeatVoice" {
855         Sec -- ond time words.
856       }
857     }
858     \new Lyrics {
859       \lyricsto "repeatVoice" {
860         The third time words.
861       }
862     }
863   >>
865 @end lilypond
867 @c TODO lowering a common line of lyrics
869 @subheading Repeats with alternative endings
874 @node Divisi lyrics
875 @unnumberedsubsubsec Divisi lyrics
877 You can display alternate (or divisi) lyrics by naming voice
878 contexts and attaching lyrics to those specific contexts.
880 @lilypond[verbatim,ragged-right,quote]
881 \score{ <<
882   \new Voice = "melody" {
883     \relative c' {
884       c4
885       <<
886         { \voiceOne c8 e }
887         \new Voice = "splitpart" { \voiceTwo c4 }
888       >>
889       \oneVoice c4 c | c
890     }
891   }
892   \new Lyrics \lyricsto "melody" { we shall not o- ver- come }
893   \new Lyrics \lyricsto "splitpart" { will }
894 >> }
895 @end lilypond
898 You can use this trick to display different lyrics for a repeated
899 section.
901 @lilypond[verbatim,ragged-right,quote]
902 \score{ <<
903   \new Voice = "melody" \relative c' {
904     c2 e | g e | c1 |
905     \new Voice = "verse" \repeat volta 2 {c4 d e f | g1 | }
906     a2 b | c1}
907   \new Lyrics = "mainlyrics" \lyricsto melody \lyricmode {
908     do mi sol mi do
909     la si do }
910   \context Lyrics = "mainlyrics" \lyricsto verse \lyricmode {
911    do re mi fa sol }
912   \new Lyrics = "repeatlyrics" \lyricsto verse \lyricmode {
913    dodo rere mimi fafa solsol }
916 @end lilypond
920 @node Lyrics independent of notes
921 @unnumberedsubsubsec Lyrics independent of notes
923 @cindex Devnull context
925 In some complex vocal music, it may be desirable to place
926 lyrics completely independently of notes.  Music defined
927 inside @code{lyricrhythm} disappears into the
928 @code{Devnull} context, but the rhythms can still be used
929 to place the lyrics.
931 @lilypond[quote,verbatim,ragged-right]
932 voice = {
933   c''2
934   \tag #'music { c''2 }
935   \tag #'lyricrhythm { c''4. c''8 }
936   d''1
939 lyr = \lyricmode { I like my cat! }
942   \new Staff \keepWithTag #'music \voice
943   \new Devnull="nowhere" \keepWithTag #'lyricrhythm \voice
944   \new Lyrics \lyricsto "nowhere" \lyr
945   \new Staff { c'8 c' c' c' c' c' c' c'
946   c' c' c' c' c' c' c' c' }
948 @end lilypond
950 This method is recommended only if the music in the @code{Devnull}
951 context does not contain melismata.  Melismata are defined by the
952 @code{Voice} context.  Connecting lyrics to a @code{Devnull} context
953 makes the voice/lyrics links to get lost, and so does the info on
954 melismata.  Therefore, if you link lyrics to a @code{Devnull} context,
955 the implicit melismata get ignored.
957 @c Conclusion: do not use devnull for lyrics -FV
959 @c this clarifies http://code.google.com/p/lilypond/issues/detail?id=248
961 @node Spacing out syllables
962 @unnumberedsubsubsec Spacing out syllables
964 @cindex Spacing lyrics
965 @cindex Lyrics, increasing space between
967 To increase the spacing between lyrics, set the @code{minimum-distance}
968 property of @code{LyricSpace}.
970 @lilypond[relative,verbatim,fragment,quote,ragged-right]
972   c c c c
973   \override Lyrics.LyricSpace #'minimum-distance = #1.0
974   c c c c
976 \addlyrics {
977   longtext longtext longtext longtext
978   longtext longtext longtext longtext
980 @end lilypond
982 @noindent
983 To make this change for all lyrics in the score, set the property in the
984 layout.
986 @lilypond[verbatim,quote,ragged-right]
987 \score {
988   \relative c' {
989   c c c c
990   c c c c
991   }
992   \addlyrics {
993   longtext longtext longtext longtext
994   longtext longtext longtext longtext
995   }
996   \layout {
997     \context {
998       \Lyrics
999       \override LyricSpace #'minimum-distance = #1.0
1000     }
1001   }
1003 @end lilypond
1005 @c @snippets
1006 @c This snippet has been renamed to "lyrics-alignment.ly"
1007 @c update as soon as lsr/is updated -vv
1008 @c @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1009 @c {lyrics-alignment.ly}
1011 @c TODO: move to LSR -vv
1012 @snippets
1014 Checking to make sure that text scripts and lyrics are within the margins is
1015 a relatively large computational task.  To speed up processing, LilyPond does
1016 not perform such calculations by default; to enable it, use
1018 @example
1019 \override Score.PaperColumn #'keep-inside-line = ##t
1020 @end example
1022 To make lyrics avoid bar lines as well, use
1024 @example
1025 \layout @{
1026   \context @{
1027     \Lyrics
1028       \consists "Bar_engraver"
1029       \consists "Separating_line_group_engraver"
1030       \override BarLine #'transparent = ##t
1031   @}
1033 @end example
1035 @c TODO Create and add lsr example of lyricMelismaAlignment
1036 @c It's used like this to center-align all lyric syllables,
1037 @c even when notes are tied. -td
1039 @ignore
1040 \layout
1042      \context { \Score lyricMelismaAlignment = #0 }
1044 @end ignore
1047 @node Placement of lyrics between staves
1048 @unnumberedsubsubsec Placement of lyrics between staves
1050 @c TODO Add text from -user
1051 @c TODO Add new spacing properties, centering lyrics, etc
1054 @node Stanzas
1055 @subsection Stanzas
1057 @menu
1058 * Adding stanza numbers::
1059 * Adding dynamics marks to stanzas::
1060 * Adding singers' names to stanzas::
1061 * Stanzas with different rhythms::
1062 * Printing stanzas at the end::
1063 * Printing stanzas at the end in multiple columns::
1064 @end menu
1067 @node Adding stanza numbers
1068 @unnumberedsubsubsec Adding stanza numbers
1070 @cindex stanza number
1072 Stanza numbers can be added by setting @code{stanza}, e.g.,
1074 @lilypond[quote,ragged-right,verbatim,relative=2,fragment]
1075 \new Voice {
1076   \time 3/4 g2 e4 a2 f4 g2.
1077 } \addlyrics {
1078   \set stanza = #"1. "
1079   Hi, my name is Bert.
1080 } \addlyrics {
1081   \set stanza = #"2. "
1082   Oh, ché -- ri, je t'aime
1084 @end lilypond
1087 @noindent
1088 These numbers are put just before the start of the first syllable.
1090 @c TODO Create and add snippet to show how two lines of a
1091 @c stanza can be grouped together, along these lines:
1092 @c (might need improving a bit) -td
1094 @ignore
1095 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup
1096 #"brace105" }
1098 stanzaOneOne = {
1099   \set stanza = \markup { "1. " \leftbrace }
1100   \lyricmode { Child, you're mine and I love you.
1101     Lend thine ear to what I say.
1103   }
1106 stanzaOneThree =  {
1107 %  \set stanza = \markup { "   "}
1108   \lyricmode { Child, I have no great -- er joy
1109     Than to have you walk in truth.
1111   }
1114 \new Voice {
1115   \repeat volta 2 { c'8 c' c' c' c' c' c'4
1116                     c'8 c' c' c' c' c' c'4   }
1117 }  \addlyrics { \stanzaOneOne }
1118    \addlyrics { \stanzaOneThree }
1120 @end ignore
1122 @node Adding dynamics marks to stanzas
1123 @unnumberedsubsubsec Adding dynamics marks to stanzas
1125 Stanzas differing in loudness may be indicated by putting a
1126 dynamics mark before each stanza.  In LilyPond, everything coming in
1127 front of a stanza goes into the @code{StanzaNumber} object; dynamics marks
1128 are no different.  For technical reasons, you have to set the stanza
1129 outside @code{\lyricmode}:
1131 @lilypond[quote,ragged-right,verbatim]
1132 text = {
1133   \set stanza = \markup { \dynamic "ff" "1. " }
1134   \lyricmode {
1135     Big bang
1136   }
1140   \new Voice = "tune" {
1141     \time 3/4
1142     g'4 c'2
1143   }
1144 \new Lyrics \lyricsto "tune" \text
1146 @end lilypond
1148 @node Adding singers' names to stanzas
1149 @unnumberedsubsubsec Adding singers' names to stanzas
1151 @cindex singer name
1152 @cindex name of singer
1154 Names of singers can also be added.  They are printed at the start of
1155 the line, just like instrument names.  They are created by setting
1156 @code{vocalName}.  A short version may be entered as @code{shortVocalName}.
1158 @lilypond[fragment,ragged-right,quote,verbatim,relative=2]
1159 \new Voice {
1160   \time 3/4 g2 e4 a2 f4 g2.
1161 } \addlyrics {
1162   \set vocalName = #"Bert "
1163   Hi, my name is Bert.
1164 } \addlyrics {
1165   \set vocalName = #"Ernie "
1166   Oh, ché -- ri, je t'aime
1168 @end lilypond
1170 @node Stanzas with different rhythms
1171 @unnumberedsubsubsec Stanzas with different rhythms
1173 Often, different stanzas of one song are put to one melody in slightly
1174 differing ways.  Such variations can still be captured with
1175 @code{\lyricsto}.
1177 @subsubheading Ignoring melismata
1179 One possibility is that the text has a melisma in one stanza, but
1180 multiple syllables in another one.  One solution is to make the faster
1181 voice ignore the melisma.  This is done by setting
1182 @code{ignoreMelismata} in the Lyrics context.
1184 @lilypond[verbatim,ragged-right,quote]
1186   \relative c' \new Voice = "lahlah" {
1187     \set Staff.autoBeaming = ##f
1188     c4
1189     \slurDotted
1190     f8.[( g16])
1191     a4
1192   }
1193   \new Lyrics \lyricsto "lahlah" {
1194     more slow -- ly
1195   }
1196   \new Lyrics \lyricsto "lahlah" {
1197     go
1198     \set ignoreMelismata = ##t
1199     fas -- ter
1200     \unset ignoreMelismata
1201     still
1202   }
1204 @end lilypond
1206 @knownissues
1207 Unlike most @code{\set} commands, @code{\set ignoreMelismata} does
1208 not work if prefixed with @code{\once}.  It is necessary to use
1209 @code{\set} and @code{\unset} to bracket the lyrics where melismata
1210 are to be ignored.
1212 @subsubheading Adding syllables to grace notes
1214 By default, grace notes (e.g. via @code{\grace}) do not get assigned
1215 syllables when using @code{\lyricsto}, but this behavior can be
1216 changed:
1218 @lilypond[verbatim,ragged-right,quote]
1219 \relative c' {
1220   f4 \appoggiatura a32 b4
1221   \grace { f16[ a16] } b2
1222   \afterGrace b2 { f16[ a16] }
1223   \appoggiatura a32 b4
1224   \acciaccatura a8 b4
1226 \addlyrics {
1227   normal
1228   \set includeGraceNotes = ##t
1229   case,
1230   gra -- ce case,
1231   after -- grace case,
1232   \set ignoreMelismata = ##t
1233   app. case,
1234   acc. case.
1236 @end lilypond
1238 @knownissues
1239 Like for @code{associatedVoice}, @code{includeGraceNotes} needs to be
1240 set at latest one syllable before the one which is to be put under a
1241 grace note.  For the case of a grace note at the very beginning of a
1242 piece of music, consider using a @code{\with} or @code{\context}
1243 block:
1245 @lilypond[verbatim,ragged-right,quote]
1247   \new Voice = melody \relative c' {
1248     \grace { c16[( d e f] }
1249     g1) f
1250   }
1251   \new Lyrics \with { includeGraceNotes = ##t }
1252   \lyricsto melody {
1253     Ah __ fa
1254   }
1256 @end lilypond
1258 @subsubheading Switching to an alternative melody
1260 More complex variations in text underlay are possible.  It is possible
1261 to switch the melody for a line of lyrics during the text.  This is
1262 done by setting the @code{associatedVoice} property.  In the example
1264 @lilypond[ragged-right,quote]
1266   \relative c' \new Voice = "lahlah" {
1267     \set Staff.autoBeaming = ##f
1268     c4
1269     <<
1270       \new Voice = "alternative" {
1271         \voiceOne
1272         \times 2/3 {
1273           % show associations clearly.
1274           \override NoteColumn #'force-hshift = #-3
1275           f8 f g
1276         }
1277       }
1278       {
1279         \voiceTwo
1280         f8.[ g16]
1281         \oneVoice
1282       } >>
1283     a8( b) c
1284   }
1285   \new Lyrics \lyricsto "lahlah" {
1286     Ju -- ras -- sic Park
1287   }
1288   \new Lyrics \lyricsto "lahlah" {
1289     % Tricky: need to set associatedVoice
1290     % one syllable too soon!
1291     \set associatedVoice = alternative % applies to "ran"
1292     Ty --
1293     ran --
1294     no --
1295     \set associatedVoice = lahlah % applies to "rus"
1296     sau -- rus Rex
1297   } >>
1298 @end lilypond
1300 @noindent
1301 the text for the first stanza is set to a melody called @q{lahlah},
1303 @example
1304 \new Lyrics \lyricsto "lahlah" @{
1305   Ju -- ras -- sic Park
1307 @end example
1310 The second stanza initially is set to the @code{lahlah} context, but
1311 for the syllable @q{ran}, it switches to a different melody.
1312 This is achieved with
1313 @example
1314 \set associatedVoice = alternative
1315 @end example
1317 @noindent
1318 Here, @code{alternative} is the name of the @code{Voice} context
1319 containing the triplet.
1321 @c TODO: make this easier to understand -vv
1322 This command must be one syllable too early, before @q{Ty} in this
1323 case.  In other words, changing the associatedVoice happens one step
1324 later than expected.  This is for technical reasons, and it is not a
1325 bug.
1327 @example
1328 \new Lyrics \lyricsto "lahlah" @{
1329   \set associatedVoice = alternative % applies to "ran"
1330   Ty --
1331   ran --
1332   no --
1333   \set associatedVoice = lahlah % applies to "rus"
1334   sau -- rus Rex
1336 @end example
1338 @noindent
1339 The underlay is switched back to the starting situation by assigning
1340 @code{lahlah} to @code{associatedVoice}.
1343 @node Printing stanzas at the end
1344 @unnumberedsubsubsec Printing stanzas at the end
1346 Sometimes it is appropriate to have one stanza set
1347 to the music, and the rest added in verse form at
1348 the end of the piece.  This can be accomplished by adding
1349 the extra verses into a @code{\markup} section outside
1350 of the main score block.  Notice that there are two
1351 different ways to force linebreaks when using
1352 @code{\markup}.
1354 @lilypond[ragged-right,verbatim,quote]
1355 melody = \relative c' {
1356 e d c d | e e e e |
1357 d d e d | c1 |
1360 text = \lyricmode {
1361 \set stanza = #"1." Ma- ry had a lit- tle lamb,
1362 its fleece was white as snow.
1365 \score{ <<
1366   \new Voice = "one" { \melody }
1367   \new Lyrics \lyricsto "one" \text
1369   \layout { }
1371 \markup { \column{
1372   \line{ Verse 2. }
1373   \line{ All the children laughed and played }
1374   \line{ To see a lamb at school. }
1375   }
1377 \markup{
1378   \wordwrap-string #"
1379   Verse 3.
1381   Mary took it home again,
1383   It was against the rule."
1385 @end lilypond
1388 @node Printing stanzas at the end in multiple columns
1389 @unnumberedsubsubsec Printing stanzas at the end in multiple columns
1391 When a piece of music has many verses, they are often printed in
1392 multiple columns across the page.  An outdented verse number often
1393 introduces each verse.  The following example shows how to produce such
1394 output in LilyPond.
1396 @lilypond[ragged-right,quote,verbatim]
1397 melody = \relative c' {
1398   c c c c | d d d d
1401 text = \lyricmode {
1402   \set stanza = #"1." This is verse one.
1403   It has two lines.
1406 \score{ <<
1407     \new Voice = "one" { \melody }
1408     \new Lyrics \lyricsto "one" \text
1409    >>
1410   \layout { }
1413 \markup {
1414   \fill-line {
1415     \hspace #0.1 % moves the column off the left margin;
1416         % can be removed if space on the page is tight
1417      \column {
1418       \line { \bold "2."
1419         \column {
1420           "This is verse two."
1421           "It has two lines."
1422         }
1423       }
1424       \hspace #0.1 % adds vertical spacing between verses
1425       \line { \bold "3."
1426         \column {
1427           "This is verse three."
1428           "It has two lines."
1429         }
1430       }
1431     }
1432     \hspace #0.1  % adds horizontal spacing between columns;
1433         % if they are still too close, add more " " pairs
1434         % until the result looks good
1435      \column {
1436       \line { \bold "4."
1437         \column {
1438           "This is verse four."
1439           "It has two lines."
1440         }
1441       }
1442       \hspace #0.1 % adds vertical spacing between verses
1443       \line { \bold "5."
1444         \column {
1445           "This is verse five."
1446           "It has two lines."
1447         }
1448       }
1449     }
1450   \hspace #0.1 % gives some extra space on the right margin;
1451       % can be removed if page space is tight
1452   }
1454 @end lilypond
1457 @seealso
1458 Internals Reference:
1459 @rinternals{LyricText},
1460 @rinternals{StanzaNumber}.
1463 @node Songs
1464 @subsection Songs
1466 @menu
1467 * References for songs::
1468 * Lead sheets::
1469 @end menu
1471 @node References for songs
1472 @unnumberedsubsubsec References for songs
1474 @c TODO chords, setting simple songs (LM), stanzas
1477 @node Lead sheets
1478 @unnumberedsubsubsec Lead sheets
1480 Lead sheets may be printed by combining vocal parts and @q{chord mode};
1481 this syntax is explained in @ref{Chord notation}.
1483 @snippets
1484 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1485 {simple-lead-sheet.ly}
1487 @seealso
1488 Notation Reference:
1489 @ref{Chord notation}.
1492 @node Choral
1493 @subsection Choral
1495 @cindex anthems
1496 @cindex part songs
1497 @cindex oratorio
1498 @cindex SATB
1500 This section discusses notation issues that relate most directly
1501 to choral music.  This includes anthems, part songs, oratorio,
1502 etc.
1504 @menu
1505 * References for choral::
1506 * Score layouts for choral::
1507 * Divided voices::
1508 @end menu
1510 @node References for choral
1511 @unnumberedsubsubsec References for choral
1513 Choral music is usually notated on two, three or four staves within
1514 a @code{ChoirStaff} group.  Accompaniment, if required, is placed
1515 beneath in a @code{PianoStaff} group, which is usually reduced in
1516 size for @emph{a capella} choral works.  The notes for each vocal
1517 part are placed in a @code{Voice} context, with each staff
1518 being given either a single vocal part (i.e., one @code{Voice}) or
1519 a pair of vocal parts (i.e., two @code{Voice}s).
1521 Words are placed in @code{Lyrics} contexts, either underneath each
1522 corresponding music staff, or one above and one below the music
1523 staff if this contains the music for two parts.
1525 Several common topics in choral music are described fully elsewhere:
1527 @itemize
1529 @item
1530 An introduction to creating an SATB vocal score can be found in
1531 the Learning Manual, see @rlearning{Four-part SATB vocal score}.
1533 @item
1534 Several templates suitable for various styles of choral music can
1535 also be found in the Learning Manual, see
1536 @rlearning{Vocal ensembles}.
1538 @item
1539 For information about @code{ChoirStaff} and @code{PianoStaff} see
1540 @ref{Grouping staves}.
1542 @item
1543 Shape noteheads, as used in Sacred Harp and similar notation, are
1544 described in @ref{Shape note heads}.
1546 @item
1547 When two vocal parts share a staff the stems, ties, slurs, etc., of
1548 the higher part will be directed up and those of the lower part
1549 down.  To do this, use @code{\voiceOne} and @code{\voiceTwo}.  See
1550 @ref{Single-staff polyphony}.
1552 @end itemize
1554 @predefined
1555 @code{\oneVoice},
1556 @code{\voiceOne},
1557 @code{\voiceTwo}.
1559 @seealso
1560 Learning Manual:
1561 @rlearning{Four-part SATB vocal score},
1562 @rlearning{Vocal ensembles}.
1564 Notation Reference:
1565 @ref{Context layout order},
1566 @ref{Grouping staves},
1567 @ref{Shape note heads},
1568 @ref{Single-staff polyphony}.
1570 Internals Reference:
1571 @rinternals{ChoirStaff},
1572 @rinternals{Lyrics},
1573 @rinternals{PianoStaff}.
1575 @node Score layouts for choral
1576 @unnumberedsubsubsec Score layouts for choral
1578 Choral music containing four staves, with or without piano
1579 accompaniment, is usually laid out with two systems per page.
1580 Depending on the page size, achieving this may require changes
1581 to several default settings.  The following settings should be
1582 considered:
1584 @itemize
1586 @item
1587 The global staff size can be modified to change the overall size
1588 of the elements of the score.  See @ref{Setting the staff size}.
1590 @item
1591 The distances between the systems, the staves and the lyrics can
1592 all be adjusted independently.  See @ref{Vertical spacing}.
1594 @item
1595 The dimensions of the vertical layout variables can be displayed as
1596 an aid to adjusting the vertical spacing.  This and other
1597 possibilities for fitting the music onto fewer pages are described
1598 in @ref{Fitting music onto fewer pages}.
1600 @item
1601 If the number of systems per page changes from one to two it is
1602 customary to indicate this with a system separator mark between
1603 the two systems.  See @ref{Separating systems}.
1605 @item
1606 For details of other page formatting properties, see
1607 @ref{Page formatting}.
1609 @end itemize
1612 Dynamic markings by default are placed below the staff, but in
1613 choral music they are usually placed above the staff in order to
1614 avoid the lyrics.  The predefined command @code{\dynamicUp} does
1615 this for the dynamic markings in a single @code{Voice} context.
1616 If there are many @code{Voice} contexts this predefined command
1617 would have to be placed in every one.  Alternatively its expanded
1618 form can be used to place all dynamic markings in the entire score
1619 above their respective staves, as shown here:
1621 @lilypond[verbatim,quote]
1622 \score {
1623   \new ChoirStaff <<
1624     \new Staff {
1625       \new Voice {
1626         \relative c'' { g4\f g g g }
1627       }
1628     }
1629     \new Staff {
1630       \new Voice {
1631         \relative c' { d4 d d\p d }
1632       }
1633     }
1634   >>
1635   \layout {
1636     \context {
1637       \Score
1638       \override DynamicText #'direction = #UP
1639       \override DynamicLineSpanner #'direction = #UP
1640     }
1641   }
1643 @end lilypond
1645 @predefined
1646 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
1648 @seealso
1649 Notation Reference:
1650 @ref{Changing spacing},
1651 @ref{Displaying spacing},
1652 @ref{Fitting music onto fewer pages},
1653 @ref{Page formatting},
1654 @ref{Score layout},
1655 See @ref{Separating systems},
1656 @ref{Setting the staff size},
1657 @ref{Using an extra voice for breaks},
1658 @ref{Vertical spacing}.
1660 Internals Reference:
1661 @rinternals{VerticalAxisGroup},
1662 @rinternals{StaffGrouper}.
1665 @node Divided voices
1666 @unnumberedsubsubsec Divided voices
1668 @cindex voices, divided
1670 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
1671 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
1673 @seealso
1674 Notation Reference:
1675 @ref{Expressive marks as lines}.
1678 @node Opera and stage musicals
1679 @subsection Opera and stage musicals
1681 The music, lyrics and dialogue to opera and stage musicals are
1682 usually set out in one or more of the following forms:
1684 @itemize
1686 @item
1687 A @emph{Conductors' Score} containing the full orchestral and vocal
1688 parts, together with libretto cues if there are spoken passages.
1690 @item
1691 @emph{Orchestral Parts} containing the music for the individual
1692 instruments of the orchestra or band.
1694 @item
1695 A @emph{Vocal Score} containing all vocal parts with piano
1696 accompaniment.  The accompaniment is usually an orchestral
1697 reduction, and if so the name of the original orchestral instrument
1698 is often indicated.  Vocal scores sometimes includes stage
1699 directions and libretto cues.
1701 @item
1702 A @emph{Vocal Book} containing just the vocal parts
1703 (no accompaniment), sometimes combined with the libretto.
1705 @item
1706 A @emph{Libretto} containing the extended passages of spoken
1707 dialogue usually found in musicals, together with the words to the
1708 sung parts.  Stage directions are usually included.  LilyPond can
1709 be used to typeset libretti but as they contain no music
1710 alternative methods may be preferable.
1712 @end itemize
1714 The sections in the LilyPond documentation which cover the topics
1715 needed to create scores in the styles commonly found in opera and
1716 musicals are indicated in the References below.  This is followed
1717 by sections covering those techniques which are peculiar to
1718 typesetting opera and musical scores.
1720 @menu
1721 * References for opera and stage musicals::
1722 * Character names::
1723 * Spoken music::
1724 * Dialogue over music::
1725 @end menu
1727 @node References for opera and stage musicals
1728 @unnumberedsubsubsec References for opera and stage musicals
1730 @itemize
1732 @item
1733 A conductors' score contains many grouped staves and lyrics.  Ways
1734 of grouping staves is shown in @ref{Grouping staves}.  To nest
1735 groups of staves see @ref{Nested staff groups}.
1737 @item
1738 The printing of empty staves in conductors' scores and vocal scores
1739 is often suppressed.  To create such a @qq{Frenched score} see
1740 @ref{Hiding staves}.
1742 @item
1743 Writing orchestral parts is covered in @ref{Writing parts}.
1744 Other sections in the Specialist notation chapter may be relevant,
1745 depending on the orchestration used.  Many instruments are
1746 transposing instruments, see @ref{Instrument transpositions}.
1748 @item
1749 If the number of systems per page changes from page to page it is
1750 customary to separate the systems with a system separator mark.
1751 See @ref{Separating systems}.
1753 @item
1754 For details of other page formatting properties, see
1755 @ref{Page formatting}.
1757 @item
1758 Musical cues can be inserted with the @code{\cueDuring} predefined
1759 command.  For details of its use see @ref{Formatting cue notes}.
1761 @item
1762 Dialogue cues and stage directions can be inserted with markup.
1763 See @ref{Text}.  Extensive stage directions can be inserted with
1764 a section of stand-alone markup between two @code{\score} blocks.
1765 See @ref{Separate text}.
1767 @end itemize
1769 @predefined
1770 @code{\cueDuring},
1771 @code{\quoteDuring}.
1773 @seealso
1774 Musical Glossary:
1775 @rglos{cue-notes},
1776 @rglos{Frenched score},
1777 @rglos{Frenched staves},
1778 @rglos{transposing instrument}.
1780 Notation Manual:
1781 @ref{Grouping staves},
1782 @ref{Hiding staves},
1783 @ref{Instrument names},
1784 @ref{Instrument transpositions},
1785 @ref{Nested staff groups},
1786 @ref{Page formatting},
1787 @ref{Selecting font and font size},
1788 @ref{Separating systems},
1789 @ref{Text},
1790 @ref{Transpose},
1791 @ref{Writing parts},
1792 @ref{Writing text}.
1795 @node Character names
1796 @unnumberedsubsubsec Character names
1798 @cindex character names
1799 @cindex names, character
1801 Character names are usually shown to the left of the staff when the
1802 staff is dedicated to that character alone.  The instrument name can
1803 be used for this purpose.
1805 @lilypond[quote,verbatim,ragged-right]
1806 \score {
1807   <<
1808     \new Staff {
1809       \set Staff.instrumentName = #"Kaspar"
1810       \set Staff.shortInstrumentName = #"Kas"
1811       \relative c' {
1812         \clef "G_8"
1813         c4 c c c
1814         \break
1815         c4 c c c
1816       }
1817     }
1818     \new Staff {
1819       \set Staff.instrumentName = #"Melchior"
1820       \set Staff.shortInstrumentName = #"Mel"
1821       \clef "bass"
1822       \relative c' {
1823         a4 a a a
1824         a4 a a a
1825       }
1826     }
1827   >>
1829 @end lilypond
1831 When two or more characters share a staff the character's name is
1832 usually printed above the staff at the start of every section
1833 applying to that character.  This can be done with markup.  Often a
1834 specific font is used for this purpose.
1836 @lilypond[quote,verbatim,relative=1]
1837 \override TextScript #'font-family = #'typewriter
1838 \override TextScript #'font-size = #2
1839 \clef "G_8"
1840 c4^\markup Kaspar
1841 c c c
1842 \clef "bass"
1843 a4^\markup Melchior
1844 a a a
1845 @end lilypond
1847 @seealso
1848 Notation Reference:
1849 @ref{Instrument names},
1850 @ref{Selecting font and font size},
1851 @ref{Text}.
1854 @node Spoken music
1855 @unnumberedsubsubsec Spoken music
1857 @cindex parlato
1858 @cindex Sprechgesang
1859 Such effects as @q{parlato} or @q{Sprechgesang} require performers to speak
1860 without pitch but still with rhythm; these are notated by cross
1861 note heads, as demonstrated in @ref{Special note heads}.
1863 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
1864 @c add "showing the rhythm of a melody" snip
1865 @c add "one staff-line notation"
1866 @c add "improvisation" ref
1867 @c add "lyrics independents of notes" ref
1869 @node Dialogue over music
1870 @unnumberedsubsubsec Dialogue over music
1875 @node Chants psalms and hymns
1876 @subsection Chants psalms and hymns
1878 @cindex chants
1879 @cindex psalms
1880 @cindex hymns
1881 @cindex religious music
1883 The music and words for chants, psalms and hymns usually follow a
1884 well-established format in any particular church.  Although the
1885 formats may differ from church to church the type-setting problems
1886 which arise are broadly similar, and are covered in this section.
1888 @menu
1889 * References for chants and psalms::
1890 * Setting a chant::
1891 * Pointing a psalm::
1892 * Partial measures in hymn tunes::
1893 @end menu
1895 @node References for chants and psalms
1896 @unnumberedsubsubsec References for chants and psalms
1898 Typesetting Gregorian chant in various styles of ancient notation
1899 is described in @ref{Ancient notation}.
1901 @seealso
1902 Notation reference:
1903 @ref{Ancient notation}.
1906 @node Setting a chant
1907 @unnumberedsubsubsec Setting a chant
1909 Modern chant settings use modern notation with varying numbers of
1910 elements taken from ancient notation.  Some of the elements and
1911 methods to consider are shown here.
1913 Chants often use quarter notes without stems to indicate the pitch,
1914 with the rhythm being taken from the spoken rhythm of the words.
1916 @lilypond[verbatim,quote]
1917 stemOff = { \override Staff.Stem #'transparent = ##t }
1919 \relative c' {
1920   \stemOff
1921   a'4 b c2 |
1924 @end lilypond
1926 Chants often omit the bar lines or use shortened or dotted bar
1927 lines to indicate pauses in the music.  To omit all bar lines from
1928 all staves remove the bar line engraver completely:
1930 @lilypond[verbatim,quote]
1931 \score {
1932   \new StaffGroup <<
1933     \new Staff {
1934       \relative c'' {
1935         a4 b c2 |
1936         a4 b c2 |
1937         a4 b c2 |
1938       }
1939     }
1940     \new Staff {
1941       \relative c'' {
1942         a4 b c2 |
1943         a4 b c2 |
1944         a4 b c2 |
1945       }
1946     }
1947   >>
1948   \layout {
1949     \context {
1950       \Staff
1951       \remove Bar_engraver
1952     }
1953   }
1955 @end lilypond
1957 Bar lines can also be removed on a staff-by-staff basis:
1959 @lilypond[verbatim, quote]
1960 \score {
1961   \new ChoirStaff <<
1962     \new Staff
1963     \with { \remove Bar_engraver } {
1964       \relative c'' {
1965         a4 b c2 |
1966         a4 b c2 |
1967         a4 b c2 |
1968       }
1969     }
1970     \new Staff {
1971       \relative c'' {
1972         a4 b c2 |
1973         a4 b c2 |
1974         a4 b c2 |
1975       }
1976     }
1977   >>
1979 @end lilypond
1981 To remove bar lines from just a section of music treat it as a
1982 cadenza.  If the section is long you may need to insert dummy
1983 barlines with @code{\bar ""} to show where the line should break.
1985 @lilypond[verbatim,quote,relative=2]
1986 a4 b c2 |
1987 \cadenzaOn
1988 a4 b c2
1989 a4 b c2
1990 \bar ""
1991 a4 b c2
1992 a4 b c2
1993 \cadenzaOff
1994 a4 b c2 |
1995 a4 b c2 |
1996 @end lilypond
1998 Rests or pauses in chants can be indicated by modified bar lines.
2000 @lilypond[verbatim, quote,relative=2]
2002 \cadenzaOn
2003 b c2
2004 a4 b c2
2005 \bar "'"
2006 a4 b c2
2007 a4 b c2
2008 \bar ":"
2009 a4 b c2
2010 \bar "dashed"
2011 a4 b c2
2012 \bar "||"
2013 @end lilypond
2015 Alternatively, the notation used in Gregorian chant for pauses or
2016 rests is sometimes used even though the rest of the notation is
2017 modern.  This uses a modified @code{\breathe} mark:
2019 @lilypond[verbatim,quote]
2020 divisioMinima = {
2021   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-minima
2022   \once \override BreathingSign  #'Y-offset = #0
2023   \breathe
2025 divisioMaior = {
2026   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maior
2027   \once \override BreathingSign  #'Y-offset = #0
2028   \breathe
2030 divisioMaxima = {
2031   \once \override BreathingSign  #'stencil = #ly:breathing-sign::divisio-maxima
2032   \once \override BreathingSign  #'Y-offset = #0
2033   \breathe
2035 finalis = {
2036   \once \override BreathingSign  #'stencil = #ly:breathing-sign::finalis
2037   \once \override BreathingSign  #'Y-offset = #0
2038   \breathe
2041 \score {
2042   \relative c'' {
2043     g2 a4 g
2044     \divisioMinima
2045     g2 a4 g
2046     \divisioMaior
2047     g2 a4 g
2048     \divisioMaxima
2049     g2 a4 g
2050     \finalis
2051   }
2052   \layout {
2053     \context {
2054       \Staff
2055       \remove Bar_engraver
2056     }
2057   }
2059 @end lilypond
2061 Chants usually omit the time signature and often omit the clef too.
2063 @lilypond[verbatim,quote]
2064 \score {
2065   \new Staff {
2066     \relative c'' {
2067       a4 b c2 |
2068       a4 b c2 |
2069       a4 b c2 |
2070     }
2071   }
2072   \layout {
2073     \context {
2074       \Staff
2075       \remove Bar_engraver
2076       \remove Time_signature_engraver
2077       \remove Clef_engraver
2078     }
2079   }
2081 @end lilypond
2083 Chants for psalms in the Anglican tradition are usually either
2084 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
2085 of 7 bars.  Each group of 7 bars is divided into two halves,
2086 corresponding to the two halves of each verse, usually separated by
2087 a double bar line.  Only whole and half notes are used.  The 1st bar
2088 in each half always contains a single chord of whole notes.  This is
2089 the @qq{reciting note}.  Chants are usually centered on the page.
2091 @lilypond[verbatim,quote]
2092 SopranoMusic = \relative g' {
2093   g1 | c2 b | a1 | \bar "||"
2094   a1 | d2 c | c b | c1 | \bar "||"
2097 AltoMusic = \relative c' {
2098   e1 | g2 g | f1 |
2099   f1 | f2 e | d d | e1 |
2102 TenorMusic = \relative a {
2103   c1 | c2 c | c1 |
2104   d1 | g,2 g | g g | g1 |
2107 BassMusic =  \relative c {
2108   c1 | e2 e | f1 |
2109   d1 | b2 c | g' g | c,1 |
2112 global = {
2113   \time 2/2
2116 % Use markup to center the chant on the page
2117 \markup {
2118   \fill-line {
2119     \score {  % centered
2120       <<
2121         \new ChoirStaff <<
2122           \new Staff <<
2123             \global
2124             \clef "treble"
2125             \new Voice = "Soprano" <<
2126               \voiceOne
2127               \SopranoMusic
2128             >>
2129             \new Voice = "Alto" <<
2130               \voiceTwo
2131               \AltoMusic
2132             >>
2133           >>
2134           \new Staff <<
2135             \clef "bass"
2136             \global
2137             \new Voice = "Tenor" <<
2138               \voiceOne
2139               \TenorMusic
2140             >>
2141             \new Voice = "Bass" <<
2142               \voiceTwo
2143               \BassMusic
2144             >>
2145           >>
2146         >>
2147       >>
2148       \layout {
2149         \context {
2150           \Score
2151           \override SpacingSpanner
2152           #'base-shortest-duration = #(ly:make-moment 1 2)
2153         }
2154         \context {
2155           \Staff
2156           \remove "Time_signature_engraver"
2157         }
2158       }
2159     }  % End score
2160   }
2161 }  % End markup
2162 @end lilypond
2164 Some other approaches to setting such a chant are shown in the first
2165 of the following snippets.
2167 @snippets
2169 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2170 {chant-or-psalms-notation.ly}
2172 Canticles and other liturgical texts may be set more freely, and
2173 may use notational elements from ancient music.  Often the words
2174 are shown underneath and aligned with the notes.  If so, the notes
2175 are spaced in accordance with the syllables rather than the notes'
2176 durations.
2178 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2179 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
2181 @seealso
2182 Learning Manual:
2183 @rlearning{Visibility and color of objects},
2184 @rlearning{Vocal ensembles}.
2186 Notation Reference:
2187 @ref{Ancient notation},
2188 @ref{Bar lines},
2189 @ref{Modifying context plug-ins},
2190 @ref{Typesetting Gregorian chant},
2191 @ref{Unmetered music},
2192 @ref{Visibility of objects}.
2195 @node Pointing a psalm
2196 @unnumberedsubsubsec Pointing a psalm
2198 The words to an Anglican psalm are usually printed in separate
2199 verses centered underneath the chant.
2201 Single chants (with 7 bars) are repeated for every verse.  Double
2202 chants (with 14 bars) are repeated for every pair of verses.  Marks
2203 are inserted in the words to show how they should be fitted to the
2204 chant.  Each verse is divided into two halves.  A colon is usually
2205 used to indicate this division.  This corresponds to the double bar
2206 line in the music.  The words before the colon are sung to the first
2207 three bars of music; the words after the colon are sung to the last
2208 four bars.
2210 Single bar lines (or in some psalters an inverted comma or similar
2211 symbol) are inserted between words to indicate where the bar lines
2212 in the music fall.  In markup mode a single bar line can be entered
2213 with the bar check symbol, @code{|}.
2215 @lilypond[verbatim,quote]
2216 \markup {
2217   \fill-line {
2218     \column {
2219       \left-align {
2220         \line { O come let us sing | unto the | Lord : let }
2221         \line { us heartily rejoice in the | strength of | our }
2222         \line { sal- | -vation. }
2223       }
2224     }
2225   }
2227 @end lilypond
2229 Other symbols may require glyphs from the @code{fetaMusic} fonts.
2230 For details, see @ref{Fonts}.
2232 @lilypond[verbatim,quote]
2233 tick = \markup {
2234   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2236 \markup {
2237   \fill-line {
2238     \column {
2239       \left-align {
2240         \line { O come let us sing \tick unto the \tick Lord : let }
2241         \line {
2242           us heartily rejoice in the \tick strength of \tick our
2243         }
2244         \line { sal \tick vation. }
2245       }
2246     }
2247   }
2249 @end lilypond
2251 Where there is one whole note in a bar all the words corresponding
2252 to that bar are recited on that one note in speech rhythm.  Where
2253 there are two notes in a bar there will usually be only one or two
2254 corresponding syllables.  If there are more that two syllables a
2255 dot is usually inserted to indicate where the change in note occurs.
2257 @lilypond[verbatim,quote]
2258 dot = \markup {
2259   \raise #0.7 \musicglyph #"dots.dot"
2261 tick = \markup {
2262   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2264 \markup {
2265   \fill-line {
2266     \column {
2267       \left-align {
2268         \line {
2269           O come let us sing \tick unto \dot the \tick Lord : let
2270         }
2271         \line {
2272           us heartily rejoice in the \tick strength of \tick our
2273         }
2274         \line { sal \tick vation. }
2275       }
2276     }
2277   }
2279 @end lilypond
2281 In some psalters an asterisk is used to indicate a break in a
2282 recited section instead of a comma, and stressed or slightly
2283 lengthened syllables are indicated in bold text.
2285 @lilypond[verbatim,quote]
2286 dot = \markup {
2287   \raise #0.7 \musicglyph #"dots.dot"
2289 tick = \markup {
2290   \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2292 \markup {
2293   \fill-line {
2294     \column {
2295       \left-align {
2296         \line { Today if ye will hear his voice * }
2297         \line {
2298           \concat { \bold hard en }
2299           | not your | hearts : as in the pro-
2300         }
2301         \line { vocation * and as in the \bold day of tempt- | }
2302         \line { -ation | in the | wilderness. }
2303       }
2304     }
2305   }
2307 @end lilypond
2309 In other psalters an accent is placed over the syllable to indicate
2310 stress.
2312 @lilypond[verbatim,quote]
2313 tick = \markup {
2314   \raise #2 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
2316 \markup {
2317   \fill-line {
2318     \column {
2319       \left-align {
2320         \line {
2321           O come let us \concat {
2322             si \combine \tick ng
2323           }
2324           | unto the | Lord : let
2325         }
2326         \line {
2327           us heartily \concat {
2328             rejo \combine \tick ice
2329           }
2330           in the | strength of | our
2331         }
2332         \line { sal- | -vation. }
2333       }
2334     }
2335   }
2337 @end lilypond
2339 The use of markup to center text, and arrange lines in columns is
2340 described in @ref{Formatting text}.
2342 Most of these elements are shown in one or other of the two verses
2343 in the template, see @qq{Psalms} in @rlearning{Vocal ensembles}.
2345 @seealso
2346 Learning Manual:
2347 @rlearning{Vocal ensembles}.
2349 Notation Reference:
2350 @ref{Fonts},
2351 @ref{Formatting text}.
2354 @node Partial measures in hymn tunes
2355 @unnumberedsubsubsec Partial measures in hymn tunes
2357 Hymn tunes frequently start and end every line of music with
2358 partial measures so that each line of music corresponds exactly
2359 with a line of text.  This requires a @code{\partial} command at
2360 the start of the music and @code{\bar "|"} or @code{\bar "||"}
2361 commands at the end of each line.
2363 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
2364 {hymn-template.ly}
2367 @node Ancient vocal music
2368 @subsection Ancient vocal music
2370 Ancient vocal music is supported, as explained in @ref{Ancient notation}.
2372 @c TODO
2374 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
2375 @c and "Transcription of Ancient music with incipit" snippet. -vv
2377 @seealso
2378 Notation Reference:
2379 @ref{Ancient notation}.