]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/vocal.itely
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / Documentation / user / 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.  See TRANSLATION for details.
7 @end ignore
8
9 @c \version "2.11.38"
10
11 @node Vocal music
12 @section Vocal music
13
14 Since LilyPond input files are text, there are two issues to
15 consider when working with vocal music:
16
17 @itemize
18 @item
19 Song texts must be entered as text, not notes.  For example, the
20 input@tie{}@code{d} should be interpreted as a one letter syllable, not the
21 note@tie{}D.
22
23 @item
24 Song texts must be aligned with the notes of their melody.
25 @end itemize
26
27 There are a few different ways to define lyrics; we shall begin
28 by examining the simplest method, and gradually increase complexity.
29
30 @menu
31 * Common notation for vocals::
32 * Aligning lyrics to a melody::
33 * Placement of lyrics::
34 * Stanzas::
35 @end menu
36
37 @snippets
38
39 Checking to make sure that text scripts and lyrics are within the margins is
40 a relatively large computational task.  To speed up processing, LilyPond does
41 not perform such calculations by default; to enable it, use
42
43 @example
44 \override Score.PaperColumn #'keep-inside-line = ##t
45 @end example
46
47 To make lyrics avoid bar lines as well, use
48
49 @example
50 \layout @{
51   \context @{
52     \Lyrics
53       \consists "Bar_engraver"
54       \consists "Separating_line_group_engraver"
55       \override BarLine #'transparent = ##t
56   @}
57 @}
58 @end example
59
60 @node Common notation for vocals
61 @subsection Common notation for vocals
62
63 @menu
64 * References for vocal music::
65 * Setting simple songs::
66 * Entering lyrics::
67 * Working with lyrics and variables::
68 @end menu
69
70 @node References for vocal music
71 @subsubsection References for vocal music
72
73 TBC
74 @c TODO Add @refs
75
76 @q{Parlato} is spoken without pitch but still with rhythm; it is
77 notated by cross note heads.  This is demonstrated in
78 @ref{Special note heads}.
79
80
81 @node Setting simple songs
82 @subsubsection Setting simple songs
83
84 @cindex \addlyrics
85
86 The easiest way to add lyrics to a melody is to append
87
88 @example
89 \addlyrics @{ @var{the lyrics} @}
90 @end example
91
92 @noindent
93 to a melody.  Here is an example,
94
95 @lilypond[ragged-right,verbatim,fragment,quote]
96 \time 3/4
97 \relative { c2 e4 g2. }
98 \addlyrics { play the game }
99 @end lilypond
100
101 More stanzas can be added by adding more
102 @code{\addlyrics} sections
103
104 @lilypond[ragged-right,verbatim,fragment,quote]
105 \time 3/4
106 \relative { c2 e4 g2. }
107 \addlyrics { play the game }
108 \addlyrics { speel het spel }
109 \addlyrics { joue le jeu }
110 @end lilypond
111
112 The command @code{\addlyrics} cannot handle polyphony settings.  For these
113 cases you should use @code{\lyricsto} and @code{\lyricmode}, as will be
114 introduced in @ref{Entering lyrics}.
115
116
117
118 @node Entering lyrics
119 @subsubsection Entering lyrics
120
121 @cindex lyrics
122 @funindex \lyricmode
123 @cindex punctuation
124 @cindex spaces, in lyrics
125 @cindex quotes, in lyrics
126
127 Lyrics are entered in a special input mode, which can be introduced
128 by the keyword @code{\lyricmode}, or by using @code{\addlyrics} or
129 @code{\lyricsto}.  In this mode you can enter lyrics,
130 with punctuation and accents, and the input @code{d} is not parsed as
131 a pitch, but rather as a one letter syllable.  Syllables are entered
132 like notes, but with pitches replaced by text.  For example,
133
134 @example
135 \lyricmode @{ Twin-4 kle4 twin- kle litt- le star2 @}
136 @end example
137
138 There are two main methods to specify the horizontal placement
139 of the syllables, either by specifying the duration of each syllable
140 explicitly, like in the example above, or by automatically aligning
141 the lyrics to a melody or other voice of music, using @code{\addlyrics}
142 or @code{\lyricsto}.
143 @c  TODO: broken
144 @c For more details see @ref{The Lyrics context}.
145
146 A word or syllable of lyrics begins with an alphabetic character, and ends
147 with
148 any space or digit.  The following characters can be any character
149 that is not a digit or white space.
150
151 Any character that is not a digit or white space will be regarded as
152 part of the syllable; one important consequence of this is that a word
153 can end with @code{@}}, which often leads to the following mistake:
154
155 @example
156 \lyricmode @{ lah- lah@}
157 @end example
158
159 In this example, the @code{@}} is included in the final syllable, so the
160 opening brace is not balanced and the input file will probably not
161 compile.
162
163
164 @funindex \property in \lyricmode
165
166 @noindent
167 Similarly, a period which follows an alphabetic sequence is included in
168 the resulting string.  As a consequence, spaces must be inserted around
169 property commands: do @emph{not} write
170
171 @example
172 \override Score.LyricText #'font-shape = #'italic
173 @end example
174
175 @noindent
176 but instead use
177
178 @example
179 \override Score . LyricText #'font-shape = #'italic
180 @end example
181
182 @funindex _
183 @cindex spaces, in lyrics
184 @cindex quotes, in lyrics
185 @cindex ties, in lyrics
186
187 In order to assign more than one syllable to a single note, you can
188 surround them with quotes or use a @code{_} character, to get spaces
189 between syllables, or use tilde  symbol (@code{~}) to get a lyric tie.
190
191 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
192 \time 3/4
193 \relative { c2 e4 g2 e4 }
194 \addlyrics { gran- de_a- mi- go }
195 \addlyrics { pu- "ro y ho-" nes- to }
196 \addlyrics { pu- ro~y~ho- nes- to }
197 @end lilypond
198
199 The lyric tie is implemented with the Unicode character U+203F, so be
200 sure to have a font (Like DejaVuLGC) installed that includes this
201 glyph.
202
203
204 To enter lyrics with characters from non-English languages, or with
205 accented and special characters (such as the heart symbol or slanted quotes),
206 simply insert the characters directly into the input file and save
207 it with utf-8 encoding.  See @ref{Text encoding}, for more info.
208
209 FIXME: quotes.
210
211 @lilypond[quote,ragged-right,fragment,verbatim]
212 \relative { e4 f e d e f e2 }
213 \addlyrics { He said: â€œLet my peo ple goâ€\9d. }
214 @end lilypond
215
216 To use normal quotes in lyrics, add a backslash before the
217 quotes.  For example,
218
219 @lilypond[quote,ragged-right,fragment,verbatim]
220 \relative c' { \time 3/4 e4 e4. e8 d4 e d c2. }
221 \addlyrics { "\"I" am so lone- "ly\"" said she }
222 @end lilypond
223
224 The full definition of a word start in Lyrics mode is somewhat more
225 complex.
226
227 A word in Lyrics mode begins with: an alphabetic character, @code{_},
228 @code{?}, @code{!}, @code{:}, @code{'}, the control characters @code{^A}
229 through @code{^F}, @code{^Q} through @code{^W}, @code{^Y}, @code{^^},
230 any 8-bit character with ASCII code over 127, or a two-character
231 combination of a backslash followed by one of @code{`}, @code{'},
232 @code{"}, or @code{^}.
233
234 @c " to balance double quotes for not-so-bright context-sensitive editors
235
236 To define variables containing lyrics, the function @code{lyricmode}
237 must be used.
238
239 @example
240 verseOne = \lyricmode @{ Joy to the world the Lord is come @}
241 \score @{
242   <<
243     \new Voice = "one" \relative c'' @{
244       \autoBeamOff
245       \time 2/4
246       c4 b8. a16 g4. f8 e4 d c2
247     @}
248     \addlyrics @{ \verseOne @}
249   >>
250 @}
251 @end example
252
253
254 @seealso
255
256 Internals Reference: @internalsref{LyricText}, @internalsref{LyricSpace}.
257
258 @node Working with lyrics and variables
259 @subsubsection Working with lyrics and variables
260
261 @cindex lyrics, variables
262
263 To define variables containing lyrics, the function @code{\lyricmode}
264 must be used.  You do not have to enter durations though, if you add
265 @code{\addlyrics} or @code{\lyricsto}
266 when invoking your variable.
267
268 @example
269 verseOne = \lyricmode @{ Joy to the world the Lord is come @}
270 \score @{
271  <<
272    \new Voice = "one" \relative c'' @{
273      \autoBeamOff
274      \time 2/4
275      c4 b8. a16 g4. f8 e4 d c2
276    @}
277    \addlyrics @{ \verseOne @}
278  >>
279 @}
280 @end example
281
282 For different or more complex orderings, the best way is to setup the
283 hierarchy of staves and lyrics first, e.g.,
284 @example
285 \new ChoirStaff <<
286   \new Voice = "soprano" @{ @emph{music} @}
287   \new Lyrics = "sopranoLyrics" @{ s1 @}
288   \new Lyrics = "tenorLyrics" @{ s1 @}
289   \new Voice = "tenor" @{ @emph{music} @}
290 >>
291 @end example
292
293 and then combine the appropriate melodies and lyric lines
294
295 @example
296 \context Lyrics = sopranoLyrics \lyricsto "soprano"
297 @emph{the lyrics}
298 @end example
299
300 @noindent
301
302 The final input would resemble
303
304 @example
305 <<\new ChoirStaff << @emph{setup the music} >>
306  \lyricsto "soprano" @emph{etc}
307  \lyricsto "alto" @emph{etc}
308 @emph{etc}
309 >>
310 @end example
311
312 @seealso
313
314 @c TODO: document \new Staff << Voice \lyricsto >> bug
315 Internals Reference: @internalsref{LyricCombineMusic},
316 @internalsref{Lyrics}.
317
318
319 @node Aligning lyrics to a melody
320 @subsection Aligning lyrics to a melody
321
322 @funindex \lyricmode
323 @funindex \addlyrics
324 @funindex \lyricsto
325
326
327 Lyrics are printed by interpreting them in the context called
328 @internalsref{Lyrics}.
329
330 @example
331 \new Lyrics \lyricmode @dots{}
332 @end example
333
334 There are two main methods to specify the horizontal placement
335 of the syllables:
336
337 @itemize
338 @item
339 by automatically aligning
340 the lyrics to a melody or other voice of music, using @code{\addlyrics}
341 or @code{\lyricsto}.
342
343 @item
344 or by specifying the duration of each syllable
345 explicitly, using @code{\lyricmode}
346 @end itemize
347
348 @menu
349 * Automatic syllable durations::
350 * Manual syllable durations::
351 * Multiple syllables to one note::
352 * Multiple notes to one syllable::
353 * Skipping notes::
354 * Extenders and hyphens::
355 * Lyrics and repeats::
356 @end menu
357
358 @node Automatic syllable durations
359 @subsubsection Automatic syllable durations
360
361 @cindex automatic syllable durations
362 @cindex lyrics and melodies
363
364 The lyrics can be aligned under a given melody
365 automatically.  This is achieved by combining the
366 melody and the lyrics with the @code{\lyricsto} expression
367
368 @example
369 \new Lyrics \lyricsto @var{name} @dots{}
370 @end example
371
372 This aligns the lyrics to the
373 notes of the @internalsref{Voice} context called @var{name}, which must
374 already exist.  Therefore normally the @code{Voice} is specified first, and
375 then the lyrics are specified with @code{\lyricsto}.  The command
376 @code{\lyricsto} switches to @code{\lyricmode} mode automatically, so the
377 @code{\lyricmode} keyword may be omitted.
378
379 The following example uses different commands for entering lyrics.
380
381 @lilypond[quote,fragment,ragged-right,verbatim]
382 <<
383   \new Voice = "one" \relative c'' {
384     \autoBeamOff
385     \time 2/4
386     c4 b8. a16 g4. f8 e4 d c2
387   }
388   \new Lyrics \lyricmode { Joy4 to8. the16 world!4. the8 Lord4 is come.2 }
389   \new Lyrics \lyricmode { Joy to the earth! the Sa -- viour reigns. }
390   \new Lyrics \lyricsto "one" { No more let sins and sor -- rows grow. }
391 >>
392 @end lilypond
393
394 The second stanza is not properly aligned because the durations
395 were not specified.  A solution for that would be to use @code{\lyricsto}.
396
397 The @code{\addlyrics} command is actually just a convenient way
398 to write a more complicated LilyPond structure that sets up the
399 lyrics.
400
401 @example
402 @{ MUSIC @}
403 \addlyrics @{ LYRICS @}
404 @end example
405
406 @noindent
407 is the same as
408
409 @example
410 \new Voice = "blah" @{ music @}
411 \new Lyrics \lyricsto "blah" @{ LYRICS @}
412 @end example
413
414 @node Manual syllable durations
415 @subsubsection Manual syllable durations
416
417 Lyrics can also be entered without @code{\addlyrics} or
418 @code{\lyricsto}.  In this case,
419 syllables are entered like notes -- but with pitches replaced by text -- and the
420 duration of each syllable must be entered explicitly.  For example:
421
422 @example
423 play2 the4 game2.
424 sink2 or4 swim2.
425 @end example
426
427 The alignment to a melody can be specified with the
428 @code{associatedVoice} property,
429
430 @example
431 \set associatedVoice = #"lala"
432 @end example
433
434 @noindent
435 The value of the property (here: @code{"lala"}) should be the name of
436 a @internalsref{Voice} context.  Without this setting, extender lines
437 will not be formatted properly.
438
439 Here is an example demonstrating manual lyric durations,
440
441 @lilypond[relative=1,ragged-right,verbatim,fragment,quote]
442 << \new Voice = "melody" {
443     \time 3/4
444     c2 e4 g2.
445  }
446  \new Lyrics \lyricmode {
447    \set associatedVoice = #"melody"
448    play2 the4 game2.
449  } >>
450 @end lilypond
451
452 @seealso
453
454 Internals Reference: @internalsref{Lyrics}.
455
456
457 @node Multiple syllables to one note
458 @subsubsection Multiple syllables to one note
459
460
461 @funindex _
462 @cindex ties, in lyrics
463
464 In order to assign more than one syllable to a single note, you can
465 surround them with quotes or use a @code{_} character, to get spaces
466 between syllables, or use tilde  symbol (@code{~}) to get a lyric
467 tie@footnote{The lyric ties is implemented with the Unicode character
468 U+203F, so be
469 sure to have a font (Like DejaVuLGC) installed that includes this
470 glyph.}.
471
472 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
473 \time 3/4
474 \relative { c2 e4 g2 e4 }
475 \addlyrics { gran- de_a- mi- go }
476 \addlyrics { pu- "ro y ho-" nes- to }
477 \addlyrics { pu- ro~y~ho- nes- to }
478 @end lilypond
479
480 @seealso
481
482 Internals Reference: @internalsref{LyricCombineMusic}.
483
484 @c Here come the section which used to be "Melismata"
485 @c the new title might be more self-explanatory
486
487
488 @node Multiple notes to one syllable
489 @subsubsection Multiple notes to one syllable
490
491 @cindex melisma
492 @cindex melismata
493 @cindex phrasing, in lyrics
494
495 Sometimes, particularly in Medieval music, several notes are to be sung on one
496 single syllable; such vocalises are called melismas, or melismata.
497
498 @c this method seems to be the simplest; therefore
499 @c it might be better to present it first - vv
500
501 You can define melismata entirely in the lyrics, by entering @code{_}
502 for every note
503 that is part of the melisma.
504
505 @lilypond[relative=1,verbatim,fragment,quote]
506 { \set melismaBusyProperties = #'()
507  c d( e) f f( e) e e  }
508 \addlyrics
509  { Ky -- _ _ ri __ _ _ _  e }
510 @end lilypond
511
512 In this case, you can also have ties and slurs in the melody if you
513 set @code{melismaBusyProperties}, as is done in the example above.
514
515 However, the @code{\lyricsto} command can also
516 detect melismata automatically: it only puts one
517 syllable under a tied or slurred group of notes.  If you want to force
518 an unslurred group of notes to be a melisma, insert @code{\melisma}
519 after the first note of the group, and @code{\melismaEnd} after the
520 last one, e.g.,
521
522 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
523 <<
524   \new Voice = "lala" {
525     \time 3/4
526     f4 g8
527     \melisma
528     f e f
529     \melismaEnd
530     e2
531   }
532   \new Lyrics \lyricsto "lala" {
533     la di __ daah
534   }
535 >>
536 @end lilypond
537
538 In addition, notes are considered a melisma if they are manually
539 beamed, and automatic beaming (see @ref{Setting automatic beam
540 behavior}) is switched off.
541
542 @c TODO: there might be some more relevant place for
543 @c the following link (?)
544
545 @cindex SATB
546 @cindex choral score
547
548 A complete example of a SATB score setup is in section
549 @rlearning{Vocal ensembles}.
550
551
552 @predefined
553
554 @code{\melisma}, @code{\melismaEnd}
555 @funindex \melismaEnd
556 @funindex \melisma
557
558 @seealso
559
560 Internals Reference: @internalsref{Melisma_translator}.
561
562 @c @lsr{vocal,lyric@/-combine.ly}.
563
564 @knownissues
565
566 Melismata are not detected automatically, and extender lines must be
567 inserted by hand.
568
569 @node Skipping notes
570 @subsubsection Skipping notes
571
572 Making a lyric line run slower than the melody can be achieved by
573 inserting @code{\skip}s into the lyrics.  For every @code{\skip}, 
574 the text will be delayed another note.
575
576 For example,
577
578 @lilypond[verbatim,ragged-right,quote]
579 \relative { c c g' }
580 \addlyrics {
581   twin -- \skip 4
582   kle
583 }
584 @end lilypond
585
586
587 @node Extenders and hyphens
588 @subsubsection Extenders and hyphens
589
590 @cindex melisma
591 @cindex extender
592
593 @c leave this as samp. -gp
594 Melismata are indicated with a horizontal line centered between a syllable
595 and the next one.  Such a line is called an extender line, and it is entered
596 as @samp{ __ } (note the spaces before and after the two underscore
597 characters).
598
599 @cindex hyphens
600
601 @c leave this as samp. -gp
602 Centered hyphens are entered as @samp{ -- } between syllables of a same word
603 (note the spaces before and after the two hyphen characters).  The hyphen
604 will be centered between the syllables, and its length will be adjusted
605 depending on the space between the syllables.
606
607 In tightly engraved music, hyphens can be removed.  Whether this
608 happens can be controlled with the @code{minimum-distance} (minimum
609 distance between two syllables) and the @code{minimum-length}
610 (threshold below which hyphens are removed).
611
612 @seealso
613
614 Internals Reference: @internalsref{LyricExtender},
615 @internalsref{LyricHyphen}
616
617 @node Lyrics and repeats
618 @subsubsection Lyrics and repeats
619
620 @c TODO New section.  Add text
621 TBC
622
623
624 @node Placement of lyrics
625 @subsection Placement of lyrics
626
627 Often, different stanzas of one song are put to one melody in slightly
628 differing ways.  Such variations can still be captured with
629 @code{\lyricsto}.
630
631 @menu
632 * Divisi lyrics::
633 * Lyrics independent of notes::
634 * Chants::
635 * Spacing out syllables::
636 * Centering lyrics between staves::
637 @end menu
638
639
640
641 @node Divisi lyrics
642 @subsubsection Divisi lyrics
643
644 You can display alternate (or divisi) lyrics by naming voice
645 contexts and attaching lyrics to those specific contexts.
646
647 @lilypond[verbatim,ragged-right,quote]
648 \score{ <<
649   \new Voice = "melody" {
650     \relative c' {
651       c4
652       <<
653         { \voiceOne c8 e }
654         \new Voice = "splitpart" { \voiceTwo c4 }
655       >>
656       \oneVoice c4 c | c
657     }
658   }
659   \new Lyrics \lyricsto "melody" { we shall not o- ver- come }
660   \new Lyrics \lyricsto "splitpart" { will }
661 >> }
662 @end lilypond
663
664
665 You can use this trick to display different lyrics for a repeated
666 section.
667
668 @lilypond[verbatim,ragged-right,quote]
669 \score{ <<
670   \new Voice = "melody" \relative c' {
671     c2 e | g e | c1 |
672     \new Voice = "verse" \repeat volta 2 {c4 d e f | g1 | }
673     a2 b | c1}
674   \new Lyrics = "mainlyrics" \lyricsto melody \lyricmode {
675     do mi sol mi do
676     la si do }
677   \context Lyrics = "mainlyrics" \lyricsto verse \lyricmode {
678    do re mi fa sol }
679   \new Lyrics = "repeatlyrics" \lyricsto verse \lyricmode {
680    dodo rere mimi fafa solsol }
681 >>
682 }
683 @end lilypond
684
685
686
687 @node Lyrics independent of notes
688 @subsubsection Lyrics independent of notes
689
690 In some complex vocal music, it may be desirable to place
691 lyrics completely independently of notes.  Music defined
692 inside @code{lyricrhythm} disappears into the
693 @code{Devnull} context, but the rhythms can still be used
694 to place the lyrics.
695
696 @lilypond[quote,verbatim,ragged-right]
697 voice = {
698   c''2
699   \tag #'music { c''2 }
700   \tag #'lyricrhythm { c''4. c''8 }
701   d''1
702 }
703
704 lyr = \lyricmode { I like my cat! }
705
706 <<
707   \new Staff \keepWithTag #'music \voice
708   \new Devnull="nowhere" \keepWithTag #'lyricrhythm \voice
709   \new Lyrics \lyricsto "nowhere" \lyr
710   \new Staff { c'8 c' c' c' c' c' c' c'
711   c' c' c' c' c' c' c' c' }
712 >>
713 @end lilypond
714
715 @node Chants
716 @subsubsection Chants
717
718 @c TODO Add text from lsr and -user
719 TBC
720
721 @node Spacing out syllables
722 @subsubsection Spacing out syllables
723
724 @cindex Spacing lyrics
725 @cindex Lyrics, increasing space between
726
727 To increase the spacing between lyrics, set the minimum-distance property of
728 LyricSpace.
729
730 @lilypond[relative,verbatim,fragment,quote,ragged-right]
731 {
732   c c c c
733   \override Lyrics.LyricSpace #'minimum-distance = #1.0
734   c c c c
735 }
736 \addlyrics {
737   longtext longtext longtext longtext
738   longtext longtext longtext longtext
739 }
740 @end lilypond
741
742 To make this change for all lyrics in the score, set the property in the
743 layout.
744
745 @lilypond[relative,verbatim,quote,ragged-right]
746 \score {
747   \relative c' {
748   c c c c
749   c c c c
750   }
751   \addlyrics {
752   longtext longtext longtext longtext
753   longtext longtext longtext longtext
754   }
755   \layout {
756     \context {
757       \Lyrics
758       \override LyricSpace #'minimum-distance = #1.0
759     }
760   }
761 }
762 @end lilypond
763
764 @node Centering lyrics between staves
765 @subsubsection Centering lyrics between staves
766
767 @c TODO Add text from -user
768 TBC
769
770 @node Stanzas
771 @subsection Stanzas
772
773 @menu
774 * Adding stanza numbers ::
775 * Adding dynamics marks to stanzas::
776 * Adding singers' names to stanzas::
777 * Stanzas with different rhythms::
778 * Printing stanzas at the end ::
779 * Printing stanzas at the end in multiple columns ::
780 @end menu
781
782
783 @node Adding stanza numbers
784 @subsubsection Adding stanza numbers
785
786 @cindex stanza number
787
788 Stanza numbers can be added by setting @code{stanza}, e.g.,
789
790 @lilypond[quote,ragged-right,verbatim,relative=2,fragment]
791 \new Voice {
792   \time 3/4 g2 e4 a2 f4 g2.
793 } \addlyrics {
794   \set stanza = "1. "
795   Hi, my name is Bert.
796 } \addlyrics {
797   \set stanza = "2. "
798   Oh, ché -- ri, je t'aime
799 }
800 @end lilypond
801
802 @noindent
803 These numbers are put just before the start of the first syllable.
804
805
806 @node Adding dynamics marks to stanzas
807 @subsubsection Adding dynamics marks to stanzas
808
809 Stanzas differing in loudness may be indicated by putting a
810 dynamics mark before each stanza.  In LilyPond, everything coming in
811 front of a stanza goes into the @code{StanzaNumber} object; dynamics marks
812 are no different.  For technical reasons, you have to set the stanza
813 outside @code{\lyricmode}:
814
815 @lilypond[quote,ragged-right,verbatim]
816 text = {
817   \set stanza = \markup { \dynamic "ff" "1. " }
818   \lyricmode {
819     Big bang
820   }
821 }
822
823 <<
824   \new Voice = "tune" {
825     \time 3/4
826     g'4 c'2
827   }
828 \new Lyrics \lyricsto "tune" \text
829 >>
830 @end lilypond
831
832 @node Adding singers' names to stanzas
833 @subsubsection Adding singers' names to stanzas
834
835 @cindex singer name
836 @cindex name of singer
837
838 Names of singers can also be added.  They are printed at the start of
839 the line, just like instrument names.  They are created by setting
840 @code{vocalName}.  A short version may be entered as @code{shortVocalName}.
841
842 @lilypond[fragment,ragged-right,quote,verbatim,relative=2]
843 \new Voice {
844   \time 3/4 g2 e4 a2 f4 g2.
845 } \addlyrics {
846   \set vocalName = "Bert "
847   Hi, my name is Bert.
848 } \addlyrics {
849   \set vocalName = "Ernie "
850   Oh, che -- ri, je t'aime
851 }
852 @end lilypond
853
854 @node Stanzas with different rhythms
855 @subsubsection Stanzas with different rhythms
856
857 @subsubheading Ignoring melismata
858
859 One possibility is that the text has a melisma in one stanza, but
860 multiple syllables in another one.  One solution is to make the faster
861 voice ignore the melisma.  This is done by setting
862 @code{ignoreMelismata} in the Lyrics context.
863
864 There is one tricky aspect: the setting for @code{ignoreMelismata}
865 must be set one syllable @emph{before} the non-melismatic syllable
866 in the text, as shown here,
867
868 @c  TODO: breaks compile
869 @lilypond[verbatim,ragged-right,quote]
870 %{
871 <<
872   \relative \new Voice = "lahlah" {
873     \set Staff.autoBeaming = ##f
874     c4
875     \slurDotted
876     f8.[( g16])
877     a4
878   }
879   \new Lyrics \lyricsto "lahlah" {
880     more slow -- ly
881   }
882   \new Lyrics \lyricsto "lahlah" {
883     \set ignoreMelismata = ##t % applies to "fas"
884     go fas -- ter
885     \unset ignoreMelismata
886     still
887   }
888 >>
889 %}
890 @end lilypond
891
892
893 The @code{ignoreMelismata} applies to the syllable @q{fas}, so it
894 should be entered before @q{go}.
895
896
897 @subsubheading Switching to an alternative melody
898
899 More complex variations in text underlay are possible.  It is possible
900 to switch the melody for a line of lyrics during the text.  This is
901 done by setting the @code{associatedVoice} property.  In the example
902
903 @lilypond[ragged-right,quote]
904 <<
905   \relative \new Voice = "lahlah" {
906     \set Staff.autoBeaming = ##f
907     c4
908     <<
909       \new Voice = "alternative" {
910         \voiceOne
911         \times 2/3 {
912           % show associations clearly.
913           \override NoteColumn #'force-hshift = #-3
914           f8 f g
915         }
916       }
917       {
918         \voiceTwo
919         f8.[ g16]
920         \oneVoice
921       } >>
922     a8( b) c
923   }
924   \new Lyrics \lyricsto "lahlah" {
925     Ju -- ras -- sic Park
926   }
927   \new Lyrics \lyricsto "lahlah" {
928     % Tricky: need to set associatedVoice
929     % one syllable too soon!
930     \set associatedVoice = alternative % applies to "ran"
931     Ty --
932     ran --
933     no --
934     \set associatedVoice = lahlah % applies to "rus"
935     sau -- rus Rex
936   } >>
937 @end lilypond
938
939 @noindent
940 the text for the first stanza is set to a melody called @q{lahlah},
941
942 @example
943 \new Lyrics \lyricsto "lahlah" @{
944   Ju -- ras -- sic Park
945 @}
946 @end example
947
948
949 The second stanza initially is set to the @code{lahlah} context, but
950 for the syllable @q{ran}, it switches to a different melody.
951 This is achieved with
952 @example
953 \set associatedVoice = alternative
954 @end example
955
956 @noindent
957 Here, @code{alternative} is the name of the @code{Voice} context
958 containing the triplet.
959
960 Again, the command must be one syllable too early, before @q{Ty} in
961 this case.
962
963 @example
964 \new Lyrics \lyricsto "lahlah" @{
965   \set associatedVoice = alternative % applies to "ran"
966   Ty --
967   ran --
968   no --
969   \set associatedVoice = lahlah % applies to "rus"
970   sau -- rus Rex
971 @}
972 @end example
973
974 @noindent
975 The underlay is switched back to the starting situation by assigning
976 @code{lahlah} to @code{associatedVoice}.
977
978
979 @node Printing stanzas at the end
980 @subsubsection Printing stanzas at the end 
981
982 Sometimes it is appropriate to have one stanza set
983 to the music, and the rest added in verse form at
984 the end of the piece.  This can be accomplished by adding
985 the extra verses into a @code{\markup} section outside
986 of the main score block.  Notice that there are two
987 different ways to force linebreaks when using
988 @code{\markup}.
989
990 @lilypond[ragged-right,verbatim,quote]
991 melody = \relative c' {
992 e d c d | e e e e |
993 d d e d | c1 |
994 }
995
996 text = \lyricmode {
997 \set stanza = "1." Ma- ry had a lit- tle lamb,
998 its fleece was white as snow.
999 }
1000
1001 \score{ <<
1002   \new Voice = "one" { \melody }
1003   \new Lyrics \lyricsto "one" \text
1004 >>
1005   \layout { }
1006 }
1007 \markup { \column{
1008   \line{ Verse 2. }
1009   \line{ All the children laughed and played }
1010   \line{ To see a lamb at school. }
1011   }
1012 }
1013 \markup{
1014   \wordwrap-string #"
1015   Verse 3.
1016
1017   Mary took it home again,
1018
1019   It was against the rule."
1020 }
1021 @end lilypond
1022
1023
1024 @node Printing stanzas at the end in multiple columns 
1025 @subsubsection Printing stanzas at the end in multiple columns 
1026
1027 When a piece of music has many verses, they are often printed in
1028 multiple columns across the page.  An outdented verse number often
1029 introduces each verse.  The following example shows how to produce such
1030 output in LilyPond.
1031
1032 @lilypond[ragged-right,quote,verbatim]
1033 melody = \relative c' {
1034   c c c c | d d d d
1035 }
1036  
1037 text = \lyricmode {
1038   \set stanza = "1." This is verse one.
1039   It has two lines.
1040 }
1041
1042 \score{ <<
1043     \new Voice = "one" { \melody }
1044     \new Lyrics \lyricsto "one" \text
1045    >>
1046   \layout { }
1047 }
1048
1049 \markup {
1050   \fill-line {
1051     \hspace #0.1 % moves the column off the left margin; can be removed if
1052         % space on the page is tight
1053      \column {
1054       \line { \bold "2."
1055         \column {
1056           "This is verse two."
1057           "It has two lines."
1058         }
1059       }
1060       \hspace #0.1 % adds vertical spacing between verses
1061       \line { \bold "3."
1062         \column {
1063           "This is verse three."
1064           "It has two lines."
1065         }
1066       }
1067     }
1068     \hspace #0.1  % adds horizontal spacing between columns; if they are
1069         % still too close, add more " " pairs until the result 
1070         % looks good
1071      \column {
1072       \line { \bold "4."
1073         \column {
1074           "This is verse four."
1075           "It has two lines."
1076         }
1077       }
1078       \hspace #0.1 % adds vertical spacing between verses
1079       \line { \bold "5."
1080         \column {
1081           "This is verse five."
1082           "It has two lines."
1083         }
1084       }
1085     }
1086   \hspace #0.1 % gives some extra space on the right margin; can
1087       % be removed if page space is tight
1088   }
1089 }
1090 @end lilypond
1091
1092
1093 @seealso
1094
1095 Internals Reference: @internalsref{LyricText}, @internalsref{StanzaNumber},
1096 @internalsref{VocalName}.
1097
1098
1099
1100