1 @c -*- coding: utf-8; mode: texinfo; -*-
3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. For details, see the Contributors'
7 Guide, node Updating translation committishes..
15 @c TODO: inspirational headword
17 This section explains how to typeset vocal music, and make sure
18 that the lyrics will be aligned with the notes of their melody.
21 * Common notation for vocal music::
23 * Aligning lyrics to a melody::
24 * Specific uses of lyrics::
29 @node Common notation for vocal music
30 @subsection Common notation for vocal music
32 This section discusses issues related to vocal music in general, and
33 to some particular styles of vocal music.
36 * References for vocal music and lyrics::
41 * Ancient vocal music::
45 @node References for vocal music and lyrics
46 @unnumberedsubsubsec References for vocal music and lyrics
48 @c TODO: split this section in two parts? -vv
50 Various issues may arise when engraving vocal music. Some of these
51 are discussed in this section, while others are explained elsewhere:
55 Most styles of vocal music use written text as lyrics. An introduction
56 to this notation is to be found in @rlearning{Setting simple songs}.
59 Vocal music is likely to require the use of @code{markup} mode, either
60 for lyrics of for other text elements (character's names, etc.).
61 This syntax is described in @ref{Text markup introduction}.
64 Lead sheets may be printed by combining vocal parts and @q{chord mode};
65 this syntax is explained in @ref{Chord notation}.
68 @q{Ambitus} may be added at the beginning of vocal staves, as explained
72 Vocal parts may be printed using traditional clefs, as shown in @ref{Clef}.
75 Ancient vocal music is supported, as explained in @ref{Ancient notation}.
80 @unnumberedsubsubsec Opera
85 @c add characters names snippet -vv
88 @unnumberedsubsubsec Song books
94 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
95 {simple-lead-sheet.ly}
100 @ref{Chord notation}.
104 @unnumberedsubsubsec Spoken music
107 Such effects as @q{parlato} or @q{Sprechgesang} require perfomers to speak
108 without pitch but still with rhythm; these are notated by cross
109 note heads, as demonstrated in @ref{Special note heads}.
111 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
112 @c add "showing the rhythm of a melody" snip
113 @c add "one staff-line notation"
114 @c add "improvisation" ref
115 @c add "lyrics independents of notes" ref
118 @unnumberedsubsubsec Chants
120 @c TODO Add text from lsr and -user
123 @node Ancient vocal music
124 @unnumberedsubsubsec Ancient vocal music
129 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
130 @c and "Transcription of Ancient music with incipit" snippet. -vv
135 @ref{Ancient notation}.
138 @node Entering lyrics
139 @subsection Entering lyrics
141 @c TODO add one sentence here. -vv
145 * Setting simple songs::
146 * Working with lyrics and variables::
150 @node Lyrics explained
151 @unnumberedsubsubsec Lyrics explained
156 @cindex spaces, in lyrics
157 @cindex quotes, in lyrics
159 @c FIXME: this section is to be rewritten.
160 Since LilyPond input files are text, there is at least one
161 issue to consider when working with vocal music:
162 song texts must be interpreted as text, not notes. For example, the
163 input@tie{}@code{d} should be interpreted as a one letter syllable,
165 Therefore, a special lyric mode has to be used, either explicitly
166 or using some abbreviated methods.
168 Lyrics are entered in a special input mode, which can be introduced
169 by the keyword @code{\lyricmode}, or by using @code{\addlyrics} or
170 @code{\lyricsto}. In this mode you can enter lyrics,
171 with punctuation and accents, and the input @code{d} is not parsed as
172 a pitch, but rather as a one letter syllable. Syllables are entered
173 like notes, but with pitches replaced by text. For example,
176 \lyricmode @{ Twin-4 kle4 twin- kle litt- le star2 @}
179 There are two main methods to specify the horizontal placement
180 of the syllables, either by specifying the duration of each syllable
181 explicitly, like in the example above, or by automatically aligning
182 the lyrics to a melody or other voice of music, using @code{\addlyrics}
185 @c For more details see @ref{The Lyrics context}.
187 A word or syllable of lyrics begins with an alphabetic character, and ends
189 any space or digit. The following characters can be any character
190 that is not a digit or white space.
192 Any character that is not a digit or white space will be regarded as
193 part of the syllable; one important consequence of this is that a word
194 can end with @code{@}}, which often leads to the following mistake:
197 \lyricmode @{ lah- lah@}
200 In this example, the @code{@}} is included in the final syllable, so the
201 opening brace is not balanced and the input file will probably not
205 @funindex \property in \lyricmode
208 Similarly, a period which follows an alphabetic sequence is included in
209 the resulting string. As a consequence, spaces must be inserted around
210 property commands: do @emph{not} write
213 \override Score.LyricText #'font-shape = #'italic
220 \override Score . LyricText #'font-shape = #'italic
224 @cindex spaces, in lyrics
225 @cindex quotes, in lyrics
226 @cindex ties, in lyrics
228 In order to assign more than one syllable to a single note, you can
229 surround them with quotes or use a @code{_} character, to get spaces
230 between syllables, or use tilde symbol (@code{~}) to get a lyric tie.
232 @lilypond[quote,ragged-right,fragment,verbatim]
234 \relative c' { c2 e4 g2 e4 }
235 \addlyrics { gran- de_a- mi- go }
236 \addlyrics { pu- "ro y ho-" nes- to }
237 \addlyrics { pu- ro~y~ho- nes- to }
241 The lyric tie is implemented with the Unicode character
242 @code{U+203F}; therefore a font that includes this glyph
243 (such as DejaVuLGC) has to be used. More explanations about
244 text and non-text fonts can be found in @ref{Fonts}.
247 To enter lyrics with characters from non-English languages, or with
248 accented and special characters (such as the heart symbol or slanted quotes),
249 simply insert the characters directly into the input file and save
250 it with UTF-8 encoding. See @ref{Text encoding}, for more info.
252 @lilypond[quote,ragged-right,fragment,verbatim]
253 \relative c' { e4 f e d e f e2 }
254 \addlyrics { He said: “Let my peo ple go”. }
257 To use normal quotes in lyrics, add a backslash before the
260 @lilypond[quote,ragged-right,fragment,verbatim]
261 \relative c' { \time 3/4 e4 e4. e8 d4 e d c2. }
262 \addlyrics { "\"I" am so lone- "ly\"" said she }
265 The full definition of a word start in Lyrics mode is somewhat more
268 A word in Lyrics mode begins with: an alphabetic character, @code{_},
269 @code{?}, @code{!}, @code{:}, @code{'}, the control characters @code{^A}
270 through @code{^F}, @code{^Q} through @code{^W}, @code{^Y}, @code{^^},
271 any 8-bit character with ASCII code over 127, or a two-character
272 combination of a backslash followed by one of @code{`}, @code{'},
273 @code{"}, or @code{^}.
275 @c " to balance double quotes for not-so-bright context-sensitive editors
277 To define variables containing lyrics, the function @code{lyricmode}
281 verseOne = \lyricmode @{ Joy to the world the Lord is come @}
284 \new Voice = "one" \relative c'' @{
287 c4 b8. a16 g4. f8 e4 d c2
289 \addlyrics @{ \verseOne @}
300 @rinternals{LyricText},
301 @rinternals{LyricSpace}.
304 @c FIXME: this title has to be changed (possible confusion with LM) -vv
305 @node Setting simple songs
306 @unnumberedsubsubsec Setting simple songs
310 The easiest way to add lyrics to a melody is to append
313 \addlyrics @{ @var{the lyrics} @}
317 to a melody. Here is an example,
319 @lilypond[ragged-right,verbatim,fragment,quote]
321 \relative c' { c2 e4 g2. }
322 \addlyrics { play the game }
325 More stanzas can be added by adding more
326 @code{\addlyrics} sections
328 @lilypond[ragged-right,verbatim,fragment,quote]
330 \relative c' { c2 e4 g2. }
331 \addlyrics { play the game }
332 \addlyrics { speel het spel }
333 \addlyrics { joue le jeu }
336 The command @code{\addlyrics} cannot handle polyphony settings. For these
337 cases you should use @code{\lyricsto} and @code{\lyricmode}, as will be
338 introduced in @ref{Lyrics explained}.
340 @c TODO: one additional section may be needed here,
341 @c such as "advanced lyric syntax" or whatever -vv
343 @node Working with lyrics and variables
344 @unnumberedsubsubsec Working with lyrics and variables
346 @cindex lyrics, variables
348 To define variables containing lyrics, the function @code{\lyricmode}
349 must be used. You do not have to enter durations though, if you add
350 @code{\addlyrics} or @code{\lyricsto}
351 when invoking your variable.
354 verseOne = \lyricmode @{ Joy to the world the Lord is come @}
357 \new Voice = "one" \relative c'' @{
360 c4 b8. a16 g4. f8 e4 d c2
362 \addlyrics @{ \verseOne @}
367 For different or more complex orderings, the best way is to set up the
368 hierarchy of staves and lyrics first, e.g.,
371 \new Voice = "soprano" @{ @emph{music} @}
372 \new Lyrics = "sopranoLyrics" @{ s1 @}
373 \new Lyrics = "tenorLyrics" @{ s1 @}
374 \new Voice = "tenor" @{ @emph{music} @}
379 and then combine the appropriate melodies and lyric lines
382 \context Lyrics = sopranoLyrics \lyricsto "soprano"
387 The final input would resemble
390 <<\new ChoirStaff << @emph{setup the music} >>
391 \lyricsto "soprano" @emph{etc}
392 \lyricsto "alto" @emph{etc}
399 http://code.google.com/p/lilypond/issues/detail?id=329
400 The problem cannot be reproduced.
401 The following has no sense, because the issue seems to be fixed.
402 A comment is in tracker waiting for response ---FV
405 Be careful when defining a variable with lyrics that creates a new
406 context, for example, using the deprecated @code{\lyrics} command. See
407 the next erroneous example:
410 words = \lyrics{ %warning: this creates a new context
414 \new Voice = "sop" { c1 }
415 \new Lyrics \lyricsto "sop" { \words }
416 \new Voice = "alt" { c2 c }
417 \new Lyrics \lyricsto "alt" { \words }
421 the problem is that \lyricsto will try to connect the "sop" melody with the context
422 created by "\new Lyrics".
424 Then \lyrics in \words creates another context, and the original "\new Lyrics" one
431 @c TODO: document \new Staff << Voice \lyricsto >> bug
433 @rinternals{LyricCombineMusic},
437 @node Aligning lyrics to a melody
438 @subsection Aligning lyrics to a melody
444 @c FIXME: this stuff is to be rewritten. -vv
446 Aligning of text with melodies can be made automatically, but if you
447 specify the durations of the syllables it can also be made manually.
448 Lyrics aligning and typesetting are prepared with the help of skips,
449 hyphens and extender lines.
451 Lyrics are printed by interpreting them in the context called
452 @code{Lyrics}; see @rinternals{Lyrics}, for more.
455 \new Lyrics \lyricmode @dots{}
458 There are two main methods to specify the horizontal placement
463 by automatically aligning
464 the lyrics to a melody or other voice of music, using @code{\addlyrics}
468 or by specifying the duration of each syllable
469 explicitly, using @code{\lyricmode}
472 The @code{Voice} context containing the melody to which the lyrics
473 are being aligned must not have @qq{died}, or the lyrics after that
474 point will be lost. This can happen if there are periods when that
475 voice has nothing to do. For methods of keeping contexts alive, see
476 @ref{Keeping contexts alive}.
480 * Automatic syllable durations::
481 * Manual syllable durations::
482 * Multiple syllables to one note::
483 * Multiple notes to one syllable::
485 * Extenders and hyphens::
486 * Lyrics and repeats::
489 @node Automatic syllable durations
490 @unnumberedsubsubsec Automatic syllable durations
492 @cindex automatic syllable durations
493 @cindex lyrics and melodies
495 The lyrics can be aligned under a given melody
496 automatically. This is achieved by combining the
497 melody and the lyrics with the @code{\lyricsto} expression
500 \new Lyrics \lyricsto @var{name} @dots{}
504 This aligns the lyrics to the
505 notes of the @code{Voice} context called @var{name}, which must
506 already exist. Therefore normally the @code{Voice} is specified first, and
507 then the lyrics are specified with @code{\lyricsto}. The command
508 @code{\lyricsto} switches to @code{\lyricmode} mode automatically, so the
509 @code{\lyricmode} keyword may be omitted.
511 The following example uses different commands for entering lyrics.
513 @lilypond[quote,fragment,ragged-right,verbatim]
515 \new Voice = "one" \relative c'' {
518 c4 b8. a16 g4. f8 e4 d c2
521 % not recommended: left-aligned syllables
522 \new Lyrics \lyricmode { Joy4 to8. the16 world!4. the8 Lord4 is come.2 }
524 % wrong: durations needed
525 \new Lyrics \lyricmode { Joy to the earth! the Sa -- viour reigns. }
528 \new Lyrics \lyricsto "one" { No more let sins and sor -- rows grow. }
532 The second stanza is not properly aligned because the durations
533 were not specified. A solution for that would be to use @code{\lyricsto}.
535 The @code{\addlyrics} command is actually just a convenient way
536 to write a more complicated LilyPond structure that sets up the
541 \addlyrics @{ LYRICS @}
548 \new Voice = "blah" @{ music @}
549 \new Lyrics \lyricsto "blah" @{ LYRICS @}
552 @node Manual syllable durations
553 @unnumberedsubsubsec Manual syllable durations
555 Lyrics can also be entered without @code{\addlyrics} or
556 @code{\lyricsto}. In this case,
557 syllables are entered like notes -- but with pitches replaced by text -- and the
558 duration of each syllable must be entered explicitly. For example:
565 The alignment to a melody can be specified with the
566 @code{associatedVoice} property,
569 \set associatedVoice = #"lala"
573 The value of the property (here: @code{"lala"}) should be the name of
574 a @code{Voice} context. Without this setting, extender lines
575 will not be formatted properly.
577 Here is an example demonstrating manual lyric durations,
579 @lilypond[relative=1,ragged-right,verbatim,fragment,quote]
580 << \new Voice = "melody" {
584 \new Lyrics \lyricmode {
585 \set associatedVoice = #"melody"
593 @ref{Keeping contexts alive}.
600 @node Multiple syllables to one note
601 @unnumberedsubsubsec Multiple syllables to one note
605 @cindex ties, in lyrics
607 In order to assign more than one syllable to a single note, you can
608 surround them with quotes or use a @code{_} character, to get spaces
609 between syllables, or use tilde symbol (@code{~}) to get a lyric
610 tie.@footnote{The lyric ties is implemented with the Unicode character
612 sure to have a font (like DejaVuLGC) installed that includes this
615 @lilypond[quote,ragged-right,fragment,verbatim]
617 \relative c' { c2 e4 g2 e4 }
618 \addlyrics { gran- de_a- mi- go }
619 \addlyrics { pu- "ro y ho-" nes- to }
620 \addlyrics { pu- ro~y~ho- nes- to }
626 @rinternals{LyricCombineMusic}.
629 @c Here come the section which used to be "Melismata"
630 @c the new title might be more self-explanatory
633 @node Multiple notes to one syllable
634 @unnumberedsubsubsec Multiple notes to one syllable
638 @cindex phrasing, in lyrics
640 Sometimes, particularly in Medieval music, several notes are to be sung on one
641 single syllable; such vocalises are called melismas, or melismata.
643 @c this method seems to be the simplest; therefore
644 @c it might be better to present it first - vv
646 You can define melismata entirely in the lyrics, by entering @code{_}
647 for every extra note that has to be added to the melisma.
649 @c FIXME: clarify: __ is used to crate a lyric extender,
650 @c _ is used to add a note to a melisma, so both __ and _ are needed.
653 @c duplicated: TODO fix
654 Additionaly, you can make an extender line to be typeset to indicate
655 the melisma in the score, writing a double underscore next to the
656 first syllable of the melisma. This example shows the three elements
657 that are used for this purpose (all of them surrounded by spaces):
658 double hyphens to separate syllables in a word, underscores to add
659 notes to a melisma, and a double underscore to put an extender line.
661 @c wrong: extender line only on last syllable of a word. Change example
662 @lilypond[relative=1,verbatim,fragment,quote]
663 { \set melismaBusyProperties = #'()
664 c d( e) f f( e) e e }
666 { Ky -- _ _ ri __ _ _ _ e }
669 In this case, you can also have ties and slurs in the melody if you
670 set @code{melismaBusyProperties}, as is done in the example above.
672 However, the @code{\lyricsto} command can also
673 detect melismata automatically: it only puts one
674 syllable under a tied or slurred group of notes. If you want to force
675 an unslurred group of notes to be a melisma, insert @code{\melisma}
676 after the first note of the group, and @code{\melismaEnd} after the
679 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
681 \new Voice = "lala" {
689 \new Lyrics \lyricsto "lala" {
695 In addition, notes are considered a melisma if they are manually
696 beamed, and automatic beaming (see @ref{Setting automatic beam
697 behavior}) is switched off.
699 @lilypond[quote,relative=2,ragged-right,fragment,verbatim]
701 \new Voice = "lala" {
707 \new Lyrics \lyricsto "lala" {
713 @c FIXME: this now links to LM -vv
718 A complete example of a SATB score setup is in
719 @rlearning{Vocal ensembles}.
725 @funindex \melismaEnd
731 @c @lsr{vocal,lyric@/-combine.ly}.
736 Melismata are not detected automatically, and extender lines must be
740 @unnumberedsubsubsec Skipping notes
742 Making a lyric line run slower than the melody can be achieved by
743 inserting @code{\skip}s into the lyrics. For every @code{\skip},
744 the text will be delayed another note. The @code{\skip} command
745 must be followed by a valid duration, but this is ignored when
746 @code{\skip} is used in lyrics.
748 @lilypond[verbatim,ragged-right,quote]
749 \relative c' { c c g' }
757 @node Extenders and hyphens
758 @unnumberedsubsubsec Extenders and hyphens
763 @c leave this as samp. -gp
764 In the last syllable of a word, melismata are sometimes indicated with
765 a long horizontal line starting in the melisma syllable, and ending in
766 the next one. Such a line is called an extender line, and it is
767 entered as @samp{ __ } (note the spaces before and after the two
768 underscore characters).
770 @warning{Melismata are indicated in the score with extender lines,
771 which are entered as one double underscore; but short melismata can
772 also be entered by skipping individual notes, which are entered as
773 single underscore characters; these do not make an extender line to be
778 @c leave this as samp. -gp
779 Centered hyphens are entered as @samp{ -- } between syllables of a same word
780 (note the spaces before and after the two hyphen characters). The hyphen
781 will be centered between the syllables, and its length will be adjusted
782 depending on the space between the syllables.
784 In tightly engraved music, hyphens can be removed. Whether this
785 happens can be controlled with the @code{minimum-distance} (minimum
786 distance between two syllables) and the @code{minimum-length}
787 (threshold below which hyphens are removed).
792 @rinternals{LyricExtender},
793 @rinternals{LyricHyphen}.
796 @node Lyrics and repeats
797 @unnumberedsubsubsec Lyrics and repeats
799 @c TODO New section. Add text
803 @node Specific uses of lyrics
804 @subsection Specific uses of lyrics
806 @c FIXME This whole section is to be reorganized. -vv
808 Often, different stanzas of one song are put to one melody in slightly
809 differing ways. Such variations can still be captured with
814 * Lyrics independent of notes::
815 * Spacing out syllables::
816 * Centering lyrics between staves::
822 @unnumberedsubsubsec Divisi lyrics
824 You can display alternate (or divisi) lyrics by naming voice
825 contexts and attaching lyrics to those specific contexts.
827 @lilypond[verbatim,ragged-right,quote]
829 \new Voice = "melody" {
834 \new Voice = "splitpart" { \voiceTwo c4 }
839 \new Lyrics \lyricsto "melody" { we shall not o- ver- come }
840 \new Lyrics \lyricsto "splitpart" { will }
845 You can use this trick to display different lyrics for a repeated
848 @lilypond[verbatim,ragged-right,quote]
850 \new Voice = "melody" \relative c' {
852 \new Voice = "verse" \repeat volta 2 {c4 d e f | g1 | }
854 \new Lyrics = "mainlyrics" \lyricsto melody \lyricmode {
857 \context Lyrics = "mainlyrics" \lyricsto verse \lyricmode {
859 \new Lyrics = "repeatlyrics" \lyricsto verse \lyricmode {
860 dodo rere mimi fafa solsol }
867 @node Lyrics independent of notes
868 @unnumberedsubsubsec Lyrics independent of notes
870 @cindex Devnull context
872 In some complex vocal music, it may be desirable to place
873 lyrics completely independently of notes. Music defined
874 inside @code{lyricrhythm} disappears into the
875 @code{Devnull} context, but the rhythms can still be used
878 @lilypond[quote,verbatim,ragged-right]
881 \tag #'music { c''2 }
882 \tag #'lyricrhythm { c''4. c''8 }
886 lyr = \lyricmode { I like my cat! }
889 \new Staff \keepWithTag #'music \voice
890 \new Devnull="nowhere" \keepWithTag #'lyricrhythm \voice
891 \new Lyrics \lyricsto "nowhere" \lyr
892 \new Staff { c'8 c' c' c' c' c' c' c'
893 c' c' c' c' c' c' c' c' }
897 This method is recommended only if the music in the @code{Devnull}
898 context does not contain melismata. Melismata are defined by the
899 @code{Voice} context. Connecting lyrics to a @code{Devnull} context
900 makes the voice/lyrics links to get lost, and so does the info on
901 melismata. Therefore, if you link lyrics to a @code{Devnull} context,
902 the implicit melismata get ignored.
904 @c Conclusion: do not use devnull for lyrics -FV
906 @c this clarifies http://code.google.com/p/lilypond/issues/detail?id=248
908 @node Spacing out syllables
909 @unnumberedsubsubsec Spacing out syllables
911 @cindex Spacing lyrics
912 @cindex Lyrics, increasing space between
914 To increase the spacing between lyrics, set the @code{minimum-distance}
915 property of @code{LyricSpace}.
917 @lilypond[relative,verbatim,fragment,quote,ragged-right]
920 \override Lyrics.LyricSpace #'minimum-distance = #1.0
924 longtext longtext longtext longtext
925 longtext longtext longtext longtext
930 To make this change for all lyrics in the score, set the property in the
933 @lilypond[verbatim,quote,ragged-right]
940 longtext longtext longtext longtext
941 longtext longtext longtext longtext
946 \override LyricSpace #'minimum-distance = #1.0
953 @c This snippet has been renamed to "lyrics-alignment.ly"
954 @c update as soon as lsr/is updated -vv
955 @c @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
956 @c {lyrics-alignment.ly}
958 @c TODO: move to LSR -vv
961 Checking to make sure that text scripts and lyrics are within the margins is
962 a relatively large computational task. To speed up processing, LilyPond does
963 not perform such calculations by default; to enable it, use
966 \override Score.PaperColumn #'keep-inside-line = ##t
969 To make lyrics avoid bar lines as well, use
975 \consists "Bar_engraver"
976 \consists "Separating_line_group_engraver"
977 \override BarLine #'transparent = ##t
982 @c TODO Create and add lsr example of lyricMelismaAlignment
983 @c It's used like this to center-align all lyric syllables,
984 @c even when notes are tied. -td
989 \context { \Score lyricMelismaAlignment = #0 }
994 @node Centering lyrics between staves
995 @unnumberedsubsubsec Centering lyrics between staves
997 @c TODO Add text from -user
1004 * Adding stanza numbers::
1005 * Adding dynamics marks to stanzas::
1006 * Adding singers' names to stanzas::
1007 * Stanzas with different rhythms::
1008 * Printing stanzas at the end::
1009 * Printing stanzas at the end in multiple columns::
1013 @node Adding stanza numbers
1014 @unnumberedsubsubsec Adding stanza numbers
1016 @cindex stanza number
1018 Stanza numbers can be added by setting @code{stanza}, e.g.,
1020 @lilypond[quote,ragged-right,verbatim,relative=2,fragment]
1022 \time 3/4 g2 e4 a2 f4 g2.
1024 \set stanza = #"1. "
1025 Hi, my name is Bert.
1027 \set stanza = #"2. "
1028 Oh, ché -- ri, je t'aime
1034 These numbers are put just before the start of the first syllable.
1036 @c TODO Create and add snippet to show how two lines of a
1037 @c stanza can be grouped together, along these lines:
1038 @c (might need improving a bit) -td
1041 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup
1045 \set stanza = \markup { "1. " \leftbrace }
1046 \lyricmode { Child, you're mine and I love you.
1047 Lend thine ear to what I say.
1053 % \set stanza = \markup { " "}
1054 \lyricmode { Child, I have no great -- er joy
1055 Than to have you walk in truth.
1061 \repeat volta 2 { c'8 c' c' c' c' c' c'4
1062 c'8 c' c' c' c' c' c'4 }
1063 } \addlyrics { \stanzaOneOne }
1064 \addlyrics { \stanzaOneThree }
1068 @node Adding dynamics marks to stanzas
1069 @unnumberedsubsubsec Adding dynamics marks to stanzas
1071 Stanzas differing in loudness may be indicated by putting a
1072 dynamics mark before each stanza. In LilyPond, everything coming in
1073 front of a stanza goes into the @code{StanzaNumber} object; dynamics marks
1074 are no different. For technical reasons, you have to set the stanza
1075 outside @code{\lyricmode}:
1077 @lilypond[quote,ragged-right,verbatim]
1079 \set stanza = \markup { \dynamic "ff" "1. " }
1086 \new Voice = "tune" {
1090 \new Lyrics \lyricsto "tune" \text
1094 @node Adding singers' names to stanzas
1095 @unnumberedsubsubsec Adding singers' names to stanzas
1098 @cindex name of singer
1100 Names of singers can also be added. They are printed at the start of
1101 the line, just like instrument names. They are created by setting
1102 @code{vocalName}. A short version may be entered as @code{shortVocalName}.
1104 @lilypond[fragment,ragged-right,quote,verbatim,relative=2]
1106 \time 3/4 g2 e4 a2 f4 g2.
1108 \set vocalName = #"Bert "
1109 Hi, my name is Bert.
1111 \set vocalName = #"Ernie "
1112 Oh, ché -- ri, je t'aime
1116 @node Stanzas with different rhythms
1117 @unnumberedsubsubsec Stanzas with different rhythms
1119 @subsubheading Ignoring melismata
1121 One possibility is that the text has a melisma in one stanza, but
1122 multiple syllables in another one. One solution is to make the faster
1123 voice ignore the melisma. This is done by setting
1124 @code{ignoreMelismata} in the Lyrics context.
1126 @lilypond[verbatim,ragged-right,quote]
1128 \relative c' \new Voice = "lahlah" {
1129 \set Staff.autoBeaming = ##f
1135 \new Lyrics \lyricsto "lahlah" {
1138 \new Lyrics \lyricsto "lahlah" {
1140 \set ignoreMelismata = ##t
1142 \unset ignoreMelismata
1149 Unlike most @code{\set} commands, @code{\set ignoreMelismata} does
1150 not work if prefixed with @code{\once}. It is necessary to use
1151 @code{\set} and @code{\unset} to bracket the lyrics where melismata
1154 @subsubheading Switching to an alternative melody
1156 More complex variations in text underlay are possible. It is possible
1157 to switch the melody for a line of lyrics during the text. This is
1158 done by setting the @code{associatedVoice} property. In the example
1160 @lilypond[ragged-right,quote]
1162 \relative c' \new Voice = "lahlah" {
1163 \set Staff.autoBeaming = ##f
1166 \new Voice = "alternative" {
1169 % show associations clearly.
1170 \override NoteColumn #'force-hshift = #-3
1181 \new Lyrics \lyricsto "lahlah" {
1182 Ju -- ras -- sic Park
1184 \new Lyrics \lyricsto "lahlah" {
1185 % Tricky: need to set associatedVoice
1186 % one syllable too soon!
1187 \set associatedVoice = alternative % applies to "ran"
1191 \set associatedVoice = lahlah % applies to "rus"
1197 the text for the first stanza is set to a melody called @q{lahlah},
1200 \new Lyrics \lyricsto "lahlah" @{
1201 Ju -- ras -- sic Park
1206 The second stanza initially is set to the @code{lahlah} context, but
1207 for the syllable @q{ran}, it switches to a different melody.
1208 This is achieved with
1210 \set associatedVoice = alternative
1214 Here, @code{alternative} is the name of the @code{Voice} context
1215 containing the triplet.
1217 @c FIXME: make this easier to understand -vv
1218 This command must be one syllable too early, before @q{Ty} in this
1219 case. In other words, changing the associatedVoice happens one step
1220 later than expected. This is for technical reasons, and it is not a
1224 \new Lyrics \lyricsto "lahlah" @{
1225 \set associatedVoice = alternative % applies to "ran"
1229 \set associatedVoice = lahlah % applies to "rus"
1235 The underlay is switched back to the starting situation by assigning
1236 @code{lahlah} to @code{associatedVoice}.
1239 @node Printing stanzas at the end
1240 @unnumberedsubsubsec Printing stanzas at the end
1242 Sometimes it is appropriate to have one stanza set
1243 to the music, and the rest added in verse form at
1244 the end of the piece. This can be accomplished by adding
1245 the extra verses into a @code{\markup} section outside
1246 of the main score block. Notice that there are two
1247 different ways to force linebreaks when using
1250 @lilypond[ragged-right,verbatim,quote]
1251 melody = \relative c' {
1257 \set stanza = #"1." Ma- ry had a lit- tle lamb,
1258 its fleece was white as snow.
1262 \new Voice = "one" { \melody }
1263 \new Lyrics \lyricsto "one" \text
1269 \line{ All the children laughed and played }
1270 \line{ To see a lamb at school. }
1277 Mary took it home again,
1279 It was against the rule."
1284 @node Printing stanzas at the end in multiple columns
1285 @unnumberedsubsubsec Printing stanzas at the end in multiple columns
1287 When a piece of music has many verses, they are often printed in
1288 multiple columns across the page. An outdented verse number often
1289 introduces each verse. The following example shows how to produce such
1292 @lilypond[ragged-right,quote,verbatim]
1293 melody = \relative c' {
1298 \set stanza = #"1." This is verse one.
1303 \new Voice = "one" { \melody }
1304 \new Lyrics \lyricsto "one" \text
1311 \hspace #0.1 % moves the column off the left margin;
1312 % can be removed if space on the page is tight
1316 "This is verse two."
1320 \hspace #0.1 % adds vertical spacing between verses
1323 "This is verse three."
1328 \hspace #0.1 % adds horizontal spacing between columns;
1329 % if they are still too close, add more " " pairs
1330 % until the result looks good
1334 "This is verse four."
1338 \hspace #0.1 % adds vertical spacing between verses
1341 "This is verse five."
1346 \hspace #0.1 % gives some extra space on the right margin;
1347 % can be removed if page space is tight
1354 Internals Reference:
1355 @rinternals{LyricText},
1356 @rinternals{StanzaNumber}.