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