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