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