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 @lilypondfile[quote]{vocal-headword.ly}
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::
22 * Techniques specific to lyrics::
26 * Opera and stage musicals::
27 * Chants psalms and hymns::
28 * Ancient vocal music::
33 @node Common notation for vocal music
34 @subsection Common notation for vocal music
36 This section discusses issues common to most types of vocal music.
39 * References for vocal music::
41 * Aligning lyrics to a melody::
42 * Automatic syllable durations::
43 * Manual syllable durations::
44 * Multiple syllables to one note::
45 * Multiple notes to one syllable::
46 * Extenders and hyphens::
50 @node References for vocal music
51 @unnumberedsubsubsec References for vocal music
53 This section indicates where to find details of notation issues
54 that may arise in any type of vocal music.
59 Most styles of vocal music use written text as lyrics. An
60 introduction to this notation is to be found in
61 @rlearning{Setting simple songs}.
64 Vocal music is likely to require the use of @code{markup} mode,
65 either for lyrics or for other text elements (characters' names,
66 etc.) This syntax is described in @ref{Text markup introduction}.
69 @notation{Ambitus} may be added at the beginning of vocal staves,
70 as explained in @ref{Ambitus}.
73 Dynamic markings by default are placed below the staff, but in
74 choral music they are usually placed above the staff in order to
75 avoid the lyrics, as explained in @ref{Score layouts for choral}.
84 @rlearning{Setting simple songs}.
87 @ref{Text markup introduction},
89 @ref{Score layouts for choral}.
95 @unnumberedsubsubsec Entering lyrics
97 @cindex lyrics, entering
98 @cindex entering lyrics
99 @cindex formatting in lyrics
100 @cindex lyrics, formatting
101 @cindex punctuation in lyrics
102 @cindex lyrics punctuation
103 @cindex spaces in lyrics
104 @cindex quotes in lyrics
107 @c TODO should we explain hyphens here
109 Lyrics are entered in a special input mode, which can be introduced
110 by the keyword @code{\lyricmode}, or by using @code{\addlyrics} or
111 @code{\lyricsto}. In this special input mode, the input @code{d}
112 is not parsed as the pitch @notation{D}, but rather as a one-letter
113 syllable of text. In other words, syllables are entered like notes
114 but with pitches replaced by text.
119 \lyricmode @{ Three4 blind mice,2 three4 blind mice2 @}
122 There are two main methods for specifying the horizontal placement
123 of the syllables, either by specifying the duration of each syllable
124 explicitly, as in the example above, or by leaving the lyrics to be
125 aligned automatically to a melody or other voice of music, using
126 @code{\addlyrics} or @code{\lyricsto}. The former method is
127 described below in @ref{Manual syllable durations}. The latter
128 method is described in @ref{Automatic syllable durations}.
130 A word or syllable of lyrics begins with an alphabetic character
131 (plus some other characters, see below) and is terminated by any
132 white space or a digit. Later characters in the syllable can be any
133 character that is not a digit or white space.
135 Because any character that is not a digit or white space is regarded
136 as part of the syllable, a word is valid even if it ends with
137 @code{@}}, which often leads to the following mistake:
140 \lyricmode @{ lah lah lah@}
143 In this example, the @code{@}} is included in the final syllable, so the
144 opening brace is not balanced and the input file will probably not
145 compile. Instead, braces should always be surrounded with white space:
148 \lyricmode @{ lah lah lah @}
151 @cindex overrides in lyric mode
152 @funindex \override in \lyricmode
154 Similarly, in lyric mode, a period will be included in the
155 alphabetic sequence that it follows. As a consequence, spaces
156 must be inserted around the period in @code{\override} commands.
160 \override Score.LyricText #'font-shape = #'italic
167 \override Score . LyricText #'font-shape = #'italic
170 Punctuation, lyrics with accented characters, characters from
171 non-English languages, or special characters (such as the heart
172 symbol or slanted quotes), may simply be inserted directly
173 into the input file, providing it is saved with UTF-8 encoding.
174 For more information, see @ref{Special characters}.
176 @lilypond[quote,verbatim]
177 \relative c'' { d8 c16 a bes8 f e' d c4 }
178 \addlyrics { „Schad’ um das schö -- ne grü -- ne Band, }
181 Normal quotes may be used in lyrics, but they have to be preceded
182 with a backslash character and the whole syllable has to be
183 enclosed between additional quotes. For example,
185 @lilypond[quote,verbatim]
186 \relative c' { \time 3/4 e4 e4. e8 d4 e d c2. }
187 \addlyrics { "\"I" am so lone -- "ly,\"" said she }
190 The full definition of a word start in lyrics mode is somewhat more
191 complex. A word in lyrics mode is one that begins with an
192 alphabetic character, @code{_}, @code{?}, @code{!}, @code{:},
193 @code{'}, the control characters @code{^A} through @code{^F},
194 @code{^Q} through @code{^W}, @code{^Y}, @code{^^}, any 8-bit
195 character with an ASCII code over 127, or a two-character
196 combination of a backslash followed by one of @code{`}, @code{'},
197 @code{"}, or @code{^}.
199 @c " to balance double quotes for not-so-bright context-sensitive editors
201 Great control over the appearance of lyrics comes from using
202 @code{\markup} inside the lyrics themselves. For explanation of many
203 options, see @ref{Formatting text}.
207 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
208 {formatting-lyrics-syllables.ly}
216 @ref{Automatic syllable durations},
218 @ref{Formatting text},
220 @ref{Manual syllable durations},
221 @ref{Special characters}.
224 @rinternals{LyricText}.
229 @node Aligning lyrics to a melody
230 @unnumberedsubsubsec Aligning lyrics to a melody
232 @cindex lyrics, aligning to a melody
233 @cindex @code{associatedVoice}
238 Lyrics are printed by interpreting them in the context called
239 @code{Lyrics}, see @ref{Contexts explained}.
242 \new Lyrics \lyricmode @{ @dots{} @}
245 Lyrics can be aligned with melodies in two main ways:
250 Lyrics can be aligned automatically, with the durations of the
251 syllables being taken from another voice of music or (in special
252 circumstances) an associated melody, using @code{\addlyrics},
253 @code{\lyricsto}, or by setting the @code{associatedVoice} property.
254 For more details, see @ref{Automatic syllable durations}.
256 @lilypond[quote,ragged-right,verbatim]
260 \new Voice = "one" \relative c'' {
262 c4 b8. a16 g4. r8 a4 ( b ) c2
264 \new Voice = "two" \relative c' {
270 % takes durations and alignment from notes in "one"
271 \new Lyrics \lyricsto "one" {
272 Life is __ _ love, live __ life.
275 % takes durations and alignment from notes in "one" initially
276 % then switches to "two"
277 \new Lyrics \lyricsto "one" {
279 \set associatedVoice = "two" % must be set one syllable early
280 sins and sor -- rows grow.
285 The first stanza shows the normal way of entering lyrics.
287 The second stanza shows how the voice from which the lyric
288 durations are taken can be changed. This is useful if the words to
289 different stanzas fit the notes in different ways and all the
290 durations are available in Voice contexts. For more details, see
294 Lyrics can be aligned independently of the duration of any notes
295 if the durations of the syllables are specified explicitly,
296 and entered with @code{\lyricmode}.
298 @lilypond[quote,ragged-right,verbatim]
300 \new Voice = "one" \relative c'' {
302 c4 b8. a16 g4. f8 e4 d c2
305 % uses previous explicit duration of 2;
306 \new Lyrics \lyricmode {
310 % explicit durations, set to a different rhythm
311 \new Lyrics \lyricmode {
312 Life4 is love,2. live4 life.2
317 The first stanza is not aligned with the notes because the durations
318 were not specified, and the previous value of 2 is used for each
321 The second stanza shows how the words can be aligned quite
322 independently from the notes. This is useful if the words to
323 different stanzas fit the notes in different ways and the required
324 durations are not available in a music context. For more details
325 see @ref{Manual syllable durations}. This technique is also useful
326 when setting dialogue over music; for examples showing this, see
327 @ref{Dialogue over music}.
329 When entered in this way the words are left-aligned to the notes
330 by default, but may be center-aligned to the notes of a melody by
331 specifying an associated voice, if one exists. For details, see
332 @ref{Manual syllable durations}.
338 @rlearning{Aligning lyrics to a melody}.
341 @ref{Contexts explained},
342 @ref{Automatic syllable durations}.
344 @ref{Manual syllable durations},
345 @ref{Dialogue over music},
346 @ref{Manual syllable durations}.
351 @node Automatic syllable durations
352 @unnumberedsubsubsec Automatic syllable durations
354 @cindex syllable durations, automatic
355 @cindex lyrics and melodies
356 @cindex associatedVoice
360 Lyrics can be automatically aligned to the notes of a melody in
366 by specifying the named Voice context containing the melody with
370 by introducing the lyrics with @code{\addlyrics} and placing them
371 immediately after the Voice context containing the melody,
374 by setting the @code{associatedVoice} property, the alignment of
375 the lyrics may be switched to a different named Voice context at
380 In all three methods hyphens can be drawn between the syllables of
381 a word and extender lines can be drawn beyond the end of a word. For
382 details, see @ref{Extenders and hyphens}.
384 The @code{Voice} context containing the melody to which the lyrics
385 are being aligned must not have @qq{died}, or the lyrics after that
386 point will be lost. This can happen if there are periods when that
387 voice has nothing to do. For methods of keeping contexts alive, see
388 @ref{Keeping contexts alive}.
390 @subheading Using @code{\lyricsto}
395 Lyrics can be aligned under a melody automatically by specifying
396 the named Voice context containing the melody with
399 @lilypond[quote,verbatim,relative=2]
401 \new Voice = "melody" {
404 \new Lyrics \lyricsto "melody" {
411 This aligns the lyrics to the notes of the named @code{Voice}
412 context, which must already exist. Therefore normally the
413 @code{Voice} context is specified first, followed by the
414 @code{Lyrics} context. The lyrics themselves follow the
415 @code{\lyricsto} command. The @code{\lyricsto} command
416 invokes lyric mode automatically, so the @code{\lyricmode} keyword
417 may be omitted. By default, the lyrics are placed underneath the
418 notes. For other placements, see @ref{Placing lyrics vertically}.
420 @subheading Using @code{\addlyrics}
425 The @code{\addlyrics} command is just a convenient shortcut that
426 can sometimes be used instead of having to set up the lyrics
427 through a more complicated LilyPond structure.
431 \addlyrics @{ LYRICS @}
438 \new Voice = "blah" @{ MUSIC @}
439 \new Lyrics \lyricsto "blah" @{ LYRICS @}
444 @lilypond[verbatim,quote]
447 \relative c' { c2 e4 g2. }
448 \addlyrics { play the game }
452 More stanzas can be added by adding more
453 @code{\addlyrics} sections:
456 @lilypond[ragged-right,verbatim,quote]
459 \relative c' { c2 e4 g2. }
460 \addlyrics { play the game }
461 \addlyrics { speel het spel }
462 \addlyrics { joue le jeu }
466 The command @code{\addlyrics} cannot handle polyphonic settings.
467 For these cases one should use @code{\lyricsto}.
469 @subheading Using associatedVoice
471 The melody to which the lyrics are being aligned can be changed by
472 setting the @code{associatedVoice} property,
475 \set associatedVoice = #"lala"
480 The value of the property (here: @code{"lala"}) should be the name
481 of a @code{Voice} context. For technical reasons, the @code{\set}
482 command must be placed one syllable before the one to which the
483 change in voice is to apply.
485 Here is an example demonstrating its use:
487 @lilypond[quote,ragged-right,verbatim]
491 \new Voice = "one" \relative c'' {
493 c4 b8. a16 g4. r8 a4 ( b ) c2
495 \new Voice = "two" \relative c' {
500 % takes durations and alignment from notes in "one" initially
501 % then switches to "two"
502 \new Lyrics \lyricsto "one" {
504 \set associatedVoice = "two" % must be set one syllable early
505 sins and sor -- rows grow.
512 @ref{Extenders and hyphens},
513 @ref{Keeping contexts alive},
514 @ref{Placing lyrics vertically}.
516 @node Manual syllable durations
517 @unnumberedsubsubsec Manual syllable durations
519 In some complex vocal music, it may be desirable to place lyrics
520 completely independently of notes. In this case do not use
521 @code{\lyricsto} or @code{\addlyrics} and do not set
522 @code{associatedVoice}. Syllables are entered like notes --
523 but with pitches replaced by text -- and the duration of each
524 syllable is entered explicitly after the syllable.
526 By default, syllables will be left-aligned to the corresponding
527 musical moment. Hyphenated lines may be drawn between syllables
528 as usual, but extender lines cannot be drawn when there is no
531 Here are two examples:
533 @lilypond[relative=1,verbatim,quote]
535 \new Voice = "melody" {
539 \new Lyrics \lyricmode {
546 @lilypond[quote,verbatim,ragged-right]
568 This technique is useful when writing dialogue over music, see
569 @ref{Dialogue over music}.
571 To center-align syllables on the notes at the corresponding musical
572 moments, set @code{associatedVoice} to the name of the Voice context
573 containing those notes. When @code{associatedVoice} is set, both
574 double hyphens and double underscores can be used to draw
575 hyphenated lines and extenders under melismata correctly.
577 @lilypond[relative=1,verbatim,quote]
579 \new Voice = "melody" {
583 \new Lyrics \lyricmode {
584 \set associatedVoice = #"melody"
590 @c TODO see also feature request 707 - show how to do this with manual durations
594 @ref{Dialogue over music}.
601 @node Multiple syllables to one note
602 @unnumberedsubsubsec Multiple syllables to one note
605 @cindex spaces, in lyrics
606 @cindex quotes, in lyrics
607 @cindex ties, in lyrics
609 In order to assign more than one syllable to a single note with
610 spaces between the syllables, you can surround the phrase with
611 quotes or use a @code{_} character. Alternatively, you can use
612 the tilde symbol (@code{~}) to get a lyric tie.
614 @lilypond[quote,ragged-right,verbatim]
616 \relative c'' { \autoBeamOff
617 r8 b c fis, fis c' b e, }
618 \addlyrics { Che_in ques -- ta_e_in quel -- l'al -- tr'on -- da }
619 \addlyrics { "Che in" ques -- "ta e in" quel -- l'al -- tr'on -- da }
620 \addlyrics { Che~in ques -- ta~e~in quel -- l'al -- tr'on -- da }
627 @rinternals{LyricCombineMusic}.
630 @node Multiple notes to one syllable
631 @unnumberedsubsubsec Multiple notes to one syllable
635 @cindex phrasing, in lyrics
637 @funindex \melismaEnd
639 Sometimes, particularly in Medieval music, several notes are to be
640 sung on one syllable; such vocalises are called melismata, or
641 @rglos{melisma}s. The syllable to a melisma is usually
642 left-aligned with the first note of the melisma.
644 When a melisma occurs on a syllable other that the last one in a
645 word, that syllable is usually joined to the following one with a
646 hyphenated line. This is indicated by placing a double hyphen,
647 @w{@code{--}}, immediately after the syllable.
649 Alternatively, when a melisma occurs on the last or only syllable in
650 a word an extender line is usually drawn from the end of the syllable
651 to the last note of the melisma. This is indicated by placing a
652 double underscore, @code{__}, immediately after the word.
654 There are five ways in which melismata can be indicated:
659 Melismata are created automatically over notes which are tied
662 @lilypond[quote,relative=2,verbatim]
664 \new Voice = "melody" {
670 \new Lyrics \lyricsto "melody" {
677 Melismata can be created automatically from the music by placing
678 slurs over the notes of each melisma. This is the usual way of
681 @lilypond[quote,relative=2,verbatim]
683 \new Voice = "melody" {
688 \new Lyrics \lyricsto "melody" {
695 Notes are considered a melisma if they are manually beamed,
696 providing automatic beaming is switched off. See
697 @ref{Setting automatic beam behavior}.
699 @lilypond[quote,relative=2,verbatim]
701 \new Voice = "melody" {
707 \new Lyrics \lyricsto "melody" {
713 Clearly this is not suited to melismata over notes which are longer
717 An unslurred group of notes will be treated as a melisma if they
718 are bracketed between @code{\melisma} and @code{\melismaEnd}.
720 @lilypond[quote,relative=2,verbatim]
722 \new Voice = "melody" {
730 \new Lyrics \lyricsto "melody" {
736 Note that this method cannot be used to indicate two melismata if
737 the first one is immediately followed by another.
740 A melisma can be defined entirely in the lyrics by entering a
741 single underscore character, @code{_}, for every extra note that has
742 to be added to the melisma.
744 @lilypond[verbatim, quote, relative=2]
746 \new Voice = "melody" {
751 \new Lyrics \lyricsto "melody" {
752 Ky -- ri -- _ _ _ e __ _ _
759 It is possible to have ties, slurs and manual beams in the melody
760 without their indicating melismata. To do this, set
761 @code{melismaBusyProperties}:
763 @lilypond[relative=1,verbatim,quote]
765 \new Voice = "melody" {
767 \set melismaBusyProperties = #'()
771 \new Lyrics \lyricsto "melody" {
772 Ky -- ri -- e e -- le -- i -- son
777 Other settings for @code{melismaBusyProperties} can be used to
778 selectively include or exclude ties, slurs, and beams from the
779 automatic detection of melismata; see @code{melismaBusyProperties}
780 in @rinternals{Tunable context properties}.
782 Alternatively, if all melismata indications are to be ignored,
783 @code{ignoreMelismata} may be set true;
784 see @ref{Stanzas with different rhythms}.
786 If a melisma is required during a passage in which
787 @code{melismaBusyProperties} is active, it may be indicated by
788 placing a single underscore in the lyrics for each note which
789 should be included in the melisma:
791 @lilypond[relative=1,verbatim,quote]
793 \new Voice = "melody" {
795 \set melismaBusyProperties = #'()
799 \new Lyrics \lyricsto "melody" {
800 Ky -- ri -- _ e __ _ _ _
818 @rlearning{Aligning lyrics to a melody}.
821 @ref{Aligning lyrics to a melody},
822 @ref{Automatic syllable durations},
823 @ref{Setting automatic beam behavior},
824 @ref{Stanzas with different rhythms}.
827 @rinternals{Tunable context properties}.
831 Extender lines under melismata are not created automatically; they
832 must be inserted manually with a double underscore.
835 @node Extenders and hyphens
836 @unnumberedsubsubsec Extenders and hyphens
841 @c TODO cf Multiple notes to one syllable; should this be merged in?
843 @c leave this as samp. -gp
844 In the last syllable of a word, melismata are sometimes indicated with
845 a long horizontal line starting in the melisma syllable, and ending in
846 the next one. Such a line is called an extender line, and it is
847 entered as @samp{ __ } (note the spaces before and after the two
848 underscore characters).
850 @warning{Melismata are indicated in the score with extender lines,
851 which are entered as one double underscore; but short melismata can
852 also be entered by skipping individual notes, which are entered as
853 single underscore characters; these do not make an extender line to be
858 @c leave this as samp. -gp
859 Centered hyphens are entered as @samp{ -- } between syllables of a
860 same word (note the spaces before and after the two hyphen
861 characters). The hyphen will be centered between the syllables, and
862 its length will be adjusted depending on the space between the
865 In tightly engraved music, hyphens can be removed. Whether this
866 happens can be controlled with the @code{minimum-distance} (minimum
867 distance between two syllables) and the @code{minimum-length}
868 (threshold below which hyphens are removed) properties of
874 @rinternals{LyricExtender},
875 @rinternals{LyricHyphen}.
878 @node Techniques specific to lyrics
879 @subsection Techniques specific to lyrics
881 @c TODO this whole section is to be reorganised
884 * Working with lyrics and variables::
885 * Placing lyrics vertically::
886 * Placing syllables horizontally::
887 * Lyrics and repeats::
893 @node Working with lyrics and variables
894 @unnumberedsubsubsec Working with lyrics and variables
896 @cindex lyrics, using variables
898 Variables containing lyrics can be created, but the lyrics must be
899 entered in lyric mode:
901 @lilypond[quote,verbatim]
902 musicOne = \relative c'' {
903 c4 b8. a16 g4. f8 e4 d c2
905 verseOne = \lyricmode {
906 Joy to the world, the Lord is come.
914 \new Lyrics \lyricsto "one" {
921 Durations do not need to be added if the variable is to be invoked
922 with @code{\addlyrics} or @code{\lyricsto}.
924 For different or more complex orderings, the best way is to define
925 the music and lyric variables first, then set up the hierarchy of
926 staves and lyrics, omitting the lyrics themselves, and then add the
927 lyrics using @code{\context} underneath. This ensures that the
928 voices referenced by @code{\lyricsto} have always been defined
929 earlier. For example:
931 @lilypond[quote,verbatim]
932 sopranoMusic = \relative c'' { c4 c c c }
933 contraltoMusic = \relative c'' { a4 a a a }
934 sopranoWords = \lyricmode { Sop -- ra -- no words }
935 contraltoWords = \lyricmode { Con -- tral -- to words }
940 \new Voice = "sopranos" {
944 \new Lyrics = "sopranos"
945 \new Lyrics = "contraltos"
947 \new Voice = "contraltos" {
951 \context Lyrics = "sopranos" {
952 \lyricsto "sopranos" {
956 \context Lyrics = "contraltos" {
957 \lyricsto "contraltos" {
968 @ref{Placing lyrics vertically}.
971 @rinternals{LyricCombineMusic},
975 @node Placing lyrics vertically
976 @unnumberedsubsubsec Placing lyrics vertically
978 @cindex placement of lyrics
979 @cindex lyrics, positioning
981 Depending on the type of music, lyrics may be positioned
982 above the staff, below the staff, or between staves. Placing
983 lyrics below the associated staff is the easiest, and can be
984 achieved by simply defining the Lyrics context below the Staff
987 @lilypond[quote,verbatim]
991 \new Voice = "melody" {
992 \relative c'' { c4 c c c }
1004 Lyrics may be positioned above the staff using one of
1005 two methods. The simplest (and preferred) method
1006 is to use the same syntax as above and explicitly
1007 specify the position of the lyrics:
1009 @lilypond[quote,verbatim]
1012 \new Staff = "staff" {
1013 \new Voice = "melody" {
1014 \relative c'' { c4 c c c }
1017 \new Lyrics \with { alignAboveContext = "staff" } {
1018 \lyricsto "melody" {
1026 Alternatively, a two-step process may be used. First the Lyrics
1027 context is declared (without any content) before the Staff and
1028 Voice contexts, then the @code{\lyricsto} command is placed after
1029 the Voice declaration it references by using @code{\context}, as
1032 @lilypond[quote,verbatim]
1035 \new Lyrics = "lyrics" \with {
1036 % lyrics above a staff should have this override
1037 \override VerticalAxisGroup #'staff-affinity = #DOWN
1040 \new Voice = "melody" {
1041 \relative c'' { c4 c c c }
1044 \context Lyrics = "lyrics" {
1045 \lyricsto "melody" {
1053 When there are two voices on separate staves the lyrics may be
1054 placed between the staves using either of these methods. Here
1055 is an example of the second method:
1057 @lilypond[quote,verbatim]
1061 \new Voice = "sopranos" {
1062 \relative c'' { c4 c c c }
1065 \new Lyrics = "sopranos"
1066 \new Lyrics = "contraltos" \with {
1067 % lyrics above a staff should have this override
1068 \override VerticalAxisGroup #'staff-affinity = #DOWN
1071 \new Voice = "contraltos" {
1072 \relative c'' { a4 a a a }
1075 \context Lyrics = "sopranos" {
1076 \lyricsto "sopranos" {
1077 Sop -- ra -- no words
1080 \context Lyrics = "contraltos" {
1081 \lyricsto "contraltos" {
1082 Con -- tral -- to words
1089 Other combinations of lyrics and staves may be generated by
1090 elaborating these examples, or by examining the
1091 @rlearning{Vocal ensembles} templates in the Learning Manual.
1094 @lilypondfile[verbatim,quote,texidoc,doctitle]
1095 {lyrics-old-spacing-settings.ly}
1099 @rlearning{Vocal ensembles}.
1102 @ref{Context layout order},
1103 @ref{Creating contexts}.
1105 @node Placing syllables horizontally
1106 @unnumberedsubsubsec Placing syllables horizontally
1108 @cindex Spacing lyrics
1109 @cindex Lyrics, increasing space between
1111 To increase the spacing between lyrics, set the
1112 @code{minimum-distance} property of @code{LyricSpace}.
1114 @lilypond[relative=1,verbatim,quote,ragged-right]
1117 \override Lyrics.LyricSpace #'minimum-distance = #1.0
1121 longtext longtext longtext longtext
1122 longtext longtext longtext longtext
1127 To make this change for all lyrics in the score, set the property in the
1128 @code{\layout} block.
1130 @lilypond[verbatim,quote,ragged-right]
1137 longtext longtext longtext longtext
1138 longtext longtext longtext longtext
1143 \override LyricSpace #'minimum-distance = #1.0
1150 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
1151 {lyrics-alignment.ly}
1153 @c TODO: move to LSR -vv
1155 Checking to make sure that text scripts and lyrics are within the margins
1156 requires additional calculations. To speed up processing slightly, this
1157 feature can be disabled:
1160 \override Score.PaperColumn #'keep-inside-line = ##f
1163 To make lyrics avoid bar lines as well, use
1169 \consists "Bar_engraver"
1170 \consists "Separating_line_group_engraver"
1171 \override BarLine #'transparent = ##t
1176 @c TODO Create and add lsr example of lyricMelismaAlignment
1177 @c It's used like this to center-align all lyric syllables,
1178 @c even when notes are tied. -td
1183 \context { \Score lyricMelismaAlignment = #0 }
1188 @node Lyrics and repeats
1189 @unnumberedsubsubsec Lyrics and repeats
1191 @cindex repeats and lyrics
1192 @cindex lyrics, repeating
1194 @subheading Simple repeats
1196 Repeats in @emph{music} are fully described elsewhere; see
1197 @ref{Repeats}. This section explains how to add lyrics to repeated
1200 Lyrics to a section of music that is repeated should be surrounded
1201 by exactly the same repeat construct as the music, if the words are
1204 @lilypond[verbatim,quote]
1208 \new Voice = "melody" {
1211 \repeat volta 2 { b4 b b b }
1216 \lyricsto "melody" {
1217 Not re -- peat -- ed.
1218 \repeat volta 2 { Re -- peat -- ed twice. }
1225 The words will then be correctly expanded if the repeats are
1228 @lilypond[verbatim,quote]
1233 \new Voice = "melody" {
1236 \repeat volta 2 { b4 b b b }
1241 \lyricsto "melody" {
1242 Not re -- peat -- ed.
1243 \repeat volta 2 { Re -- peat -- ed twice. }
1251 If the repeated section is to be unfolded and has different words,
1252 simply enter all the words:
1254 @lilypond[verbatim,quote,ragged-right]
1258 \new Voice = "melody" {
1261 \repeat unfold 2 { b4 b b b }
1266 \lyricsto "melody" {
1267 Not re -- peat -- ed.
1268 The first time words.
1269 Sec -- ond time words.
1276 When the words to a repeated volta section are different, the words
1277 to each repeat must be entered in separate @code{Lyrics} contexts,
1278 correctly nested in parallel sections:
1280 @lilypond[verbatim,quote]
1284 \new Voice = "melody" {
1287 \repeat volta 2 { b4 b b b }
1291 \new Lyrics \lyricsto "melody" {
1292 Not re -- peat -- ed.
1294 { The first time words. }
1296 \set associatedVoice = "melody"
1297 Sec -- ond time words.
1305 More verses may be added in a similar way:
1307 @lilypond[verbatim,quote]
1311 \new Voice = "singleVoice" {
1314 \repeat volta 3 { b4 b b b }
1319 \new Lyrics \lyricsto "singleVoice" {
1320 Not re -- peat -- ed.
1322 { The first time words. }
1324 \set associatedVoice = "singleVoice"
1325 Sec -- ond time words.
1328 \set associatedVoice = "singleVoice"
1329 The third time words.
1332 The end sec -- tion.
1339 @c TODO positioning a common line of lyrics
1341 @subheading Repeats with alternative endings
1343 @cindex lyrics, repeats with alternative endings
1344 @cindex repeating lyrics with alternative endings
1345 @cindex alternative endings and lyrics
1347 If the words of the repeated section are the same, exactly the
1348 same structure can be used for both the lyrics and music.
1350 @lilypond[quote,verbatim]
1355 \new Voice = "melody" {
1358 \repeat volta 2 { b4 b }
1359 \alternative { { b b } { b c } }
1364 \lyricsto "melody" {
1365 Not re -- peat -- ed.
1366 \repeat volta 2 { Re -- peat -- }
1367 \alternative { { ed twice. } { ed twice. } }
1375 @cindex skipping notes in lyrics
1376 @cindex lyrics, skipping notes
1378 But when the repeated section has different words, a repeat
1379 construct cannot be used around the words and @code{\skip} commands
1380 have to be inserted manually to skip over the notes in the
1381 alternative sections which do not apply.
1383 Note: do not use an underscore, @code{_}, to skip notes -- an
1384 underscore indicates a melisma, causing the preceding syllable
1387 @warning{The @code{@bs{}skip} command must be followed by a number,
1388 but this number is ignored in lyrics which derive their durations
1389 from the notes in an associated melody through @code{\addlyrics} or
1390 @code{\lyricsto}. Each @code{@bs{}skip} skips a single note of any
1391 value, irrespective of the value of the following number.}
1393 @lilypond[verbatim,quote,ragged-right]
1398 \new Voice = "melody" {
1400 \repeat volta 2 { b4 b }
1401 \alternative { { b b } { b c } }
1407 \lyricsto "melody" {
1408 The first time words.
1409 \repeat unfold 2 { \skip 1 }
1414 \lyricsto "melody" {
1416 \repeat unfold 2 { \skip 1 }
1424 @cindex lyrics and tied notes
1425 @funindex \repeatTie
1427 When a note is tied over into two or more alternative endings a
1428 tie is used to carry the note into the first alternative ending and
1429 a @code{\repeatTie} is used in the second and subsequent endings.
1430 This structure causes difficult alignment problems when lyrics are
1431 involved and increasing the length of the alternative sections so
1432 the tied notes are contained wholly within them may give a more
1435 The tie creates a melisma into the first alternative, but not into
1436 the second and subsequent alternatives, so to align the lyrics
1437 correctly it is necessary to disable the automatic creation of
1438 melismata over the volta section and insert manual skips.
1440 @lilypond[quote,verbatim]
1445 \new Voice = "melody" {
1447 \set melismaBusyProperties = #'()
1448 \repeat volta 2 { b4 b ~}
1449 \alternative { { b b } { b \repeatTie c } }
1450 \unset melismaBusyProperties
1456 \lyricsto "melody" {
1457 \repeat volta 2 { Here's a __ }
1469 Note that if @code{\unfoldRepeats} is used around a section
1470 containing @code{\repeatTie}, the @code{\repeatTie} should be
1471 removed to avoid both types of tie being printed.
1473 When the repeated section has different words a @code{\repeat}
1474 cannot be used around the lyrics and @code{\skip} commands need to
1475 be inserted manually, as before.
1477 @lilypond[quote,verbatim]
1482 \new Voice = "melody" {
1484 \repeat volta 2 { b4 b ~}
1485 \alternative { { b b } { b \repeatTie c } }
1491 \lyricsto "melody" {
1493 \repeat unfold 2 { \skip 1 }
1497 \lyricsto "melody" {
1499 \repeat unfold 2 { \skip 1 }
1507 If you wish to show extenders and hyphens into and out of
1508 alternative sections these must be inserted manually.
1510 @lilypond[quote,verbatim]
1515 \new Voice = "melody" {
1517 \repeat volta 2 { b4 b ~}
1518 \alternative { { b b } { b \repeatTie c } }
1524 \lyricsto "melody" {
1526 \repeat unfold 2 { \skip 1 }
1530 \lyricsto "melody" {
1542 @ref{Keeping contexts alive},
1547 @unnumberedsubsubsec Divisi lyrics
1549 @cindex divided lyrics
1550 @cindex lyrics, divided
1552 When just the words and rhythms of the two parts differ with the
1553 pitches remaining the same, temporarily turning off the automatic
1554 detection of melismata and indicating the melisma in the lyrics
1555 may be the appropriate method to use:
1557 @lilypond[quote,verbatim]
1560 \new Voice = "melody" {
1562 \set melismaBusyProperties = #'()
1566 \unset melismaBusyProperties
1570 \new Lyrics \lyricsto "melody" {
1571 They shall not o -- ver -- come
1573 \new Lyrics \lyricsto "melody" {
1580 When both music and words differ it may be better to display
1581 the differing music and lyrics by naming voice contexts and
1582 attaching lyrics to those specific contexts:
1584 @lilypond[verbatim,ragged-right,quote]
1587 \new Voice = "melody" {
1594 \new Voice = "splitpart" {
1604 \new Lyrics \lyricsto "melody" {
1605 They shall not o -- ver -- come
1607 \new Lyrics \lyricsto "splitpart" {
1619 * Adding stanza numbers::
1620 * Adding dynamics marks to stanzas::
1621 * Adding singers' names to stanzas::
1622 * Stanzas with different rhythms::
1623 * Printing stanzas at the end::
1624 * Printing stanzas at the end in multiple columns::
1628 @node Adding stanza numbers
1629 @unnumberedsubsubsec Adding stanza numbers
1631 @cindex stanza number
1633 Stanza numbers can be added by setting @code{stanza}, e.g.,
1635 @lilypond[quote,ragged-right,verbatim,relative=2]
1637 \time 3/4 g2 e4 a2 f4 g2.
1639 \set stanza = #"1. "
1640 Hi, my name is Bert.
1642 \set stanza = #"2. "
1643 Oh, ché -- ri, je t'aime
1649 These numbers are put just before the start of the first syllable.
1651 @c TODO Create and add snippet to show how two lines of a
1652 @c stanza can be grouped together, along these lines:
1653 @c (might need improving a bit) -td
1656 leftbrace = \markup { \override #'(font-encoding . fetaBraces) \lookup
1660 \set stanza = \markup { "1. " \leftbrace }
1661 \lyricmode { Child, you're mine and I love you.
1662 Lend thine ear to what I say.
1668 % \set stanza = \markup { " "}
1669 \lyricmode { Child, I have no great -- er joy
1670 Than to have you walk in truth.
1676 \repeat volta 2 { c'8 c' c' c' c' c' c'4
1677 c'8 c' c' c' c' c' c'4 }
1678 } \addlyrics { \stanzaOneOne }
1679 \addlyrics { \stanzaOneThree }
1683 @node Adding dynamics marks to stanzas
1684 @unnumberedsubsubsec Adding dynamics marks to stanzas
1686 Stanzas differing in loudness may be indicated by putting a
1687 dynamics mark before each stanza. In LilyPond, everything coming in
1688 front of a stanza goes into the @code{StanzaNumber} object; dynamics
1689 marks are no different. For technical reasons, you have to set the
1690 stanza outside @code{\lyricmode}:
1692 @lilypond[quote,ragged-right,verbatim]
1694 \set stanza = \markup { \dynamic "ff" "1. " }
1701 \new Voice = "tune" {
1705 \new Lyrics \lyricsto "tune" \text
1709 @node Adding singers' names to stanzas
1710 @unnumberedsubsubsec Adding singers' names to stanzas
1713 @cindex name of singer
1715 Names of singers can also be added. They are printed at the start of
1716 the line, just like instrument names. They are created by setting
1717 @code{vocalName}. A short version may be entered as
1718 @code{shortVocalName}.
1720 @lilypond[ragged-right,quote,verbatim,relative=2]
1722 \time 3/4 g2 e4 a2 f4 g2.
1724 \set vocalName = #"Bert "
1725 Hi, my name is Bert.
1727 \set vocalName = #"Ernie "
1728 Oh, ché -- ri, je t'aime
1732 @node Stanzas with different rhythms
1733 @unnumberedsubsubsec Stanzas with different rhythms
1735 Often, different stanzas of one song are put to one melody in slightly
1736 differing ways. Such variations can still be captured with
1739 @subsubheading Ignoring melismata
1741 One possibility is that the text has a melisma in one stanza, but
1742 multiple syllables in another. One solution is to make the faster
1743 voice ignore the melisma. This is done by setting
1744 @code{ignoreMelismata} in the Lyrics context.
1746 @lilypond[verbatim,ragged-right,quote]
1748 \relative c' \new Voice = "lahlah" {
1749 \set Staff.autoBeaming = ##f
1755 \new Lyrics \lyricsto "lahlah" {
1758 \new Lyrics \lyricsto "lahlah" {
1760 \set ignoreMelismata = ##t
1762 \unset ignoreMelismata
1769 Unlike most @code{\set} commands, @code{\set ignoreMelismata} does
1770 not work if prefixed with @code{\once}. It is necessary to use
1771 @code{\set} and @code{\unset} to bracket the lyrics where melismata
1774 @subsubheading Adding syllables to grace notes
1776 @cindex grace notes and lyrics
1777 @cindex lyrics on grace notes
1779 By default, grace notes (e.g. via @code{\grace}) do not get assigned
1780 syllables when using @code{\lyricsto}, but this behavior can be
1783 @lilypond[verbatim,ragged-right,quote]
1785 \new Voice = melody \relative c' {
1786 f4 \appoggiatura a32 b4
1787 \grace { f16[ a16] } b2
1788 \afterGrace b2 { f16[ a16] }
1789 \appoggiatura a32 b4
1795 \set includeGraceNotes = ##t
1798 after -- grace case,
1799 \set ignoreMelismata = ##t
1807 Like @code{associatedVoice}, @code{includeGraceNotes} needs to be
1808 set at latest one syllable before the one which is to be put under a
1809 grace note. For the case of a grace note at the very beginning of a
1810 piece of music, consider using a @code{\with} or @code{\context}
1813 @lilypond[verbatim,ragged-right,quote]
1815 \new Voice = melody \relative c' {
1816 \grace { c16[( d e f] }
1819 \new Lyrics \with { includeGraceNotes = ##t }
1826 @subsubheading Switching to an alternative melody
1828 @cindex associatedVoice
1829 @cindex alternative melody, switching to
1831 More complex variations in setting lyrics to music are possible.
1832 The melody to which the lyrics are being set can be changed from
1833 within the lyrics by setting the @code{associatedVoice} property:
1835 @lilypond[verbatim,quote]
1837 \relative c' \new Voice = "lahlah" {
1838 \set Staff.autoBeaming = ##f
1841 \new Voice = "alternative" {
1844 % show associations clearly.
1845 \override NoteColumn #'force-hshift = #-3
1856 \new Lyrics \lyricsto "lahlah" {
1857 Ju -- ras -- sic Park
1859 \new Lyrics \lyricsto "lahlah" {
1860 % Tricky: need to set associatedVoice
1861 % one syllable too soon!
1862 \set associatedVoice = "alternative" % applies to "ran"
1866 \set associatedVoice = "lahlah" % applies to "rus"
1872 The text for the first stanza is set to the melody called
1873 @q{lahlah} in the usual way, but the second stanza is set initally
1874 to the @code{lahlah} context and is then switched to the
1875 @code{alternative} melody for the syllables @q{ran} to @q{sau} by
1879 \set associatedVoice = "alternative" % applies to "ran"
1883 \set associatedVoice = "lahlah" % applies to "rus"
1888 Here, @code{alternative} is the name of the @code{Voice} context
1889 containing the triplet.
1891 Note the placement of the @code{\set associatedVoice} command --
1892 it appears to be one syllable too early, but this is correct.
1894 @warning{The @code{\set associatedVoice} command must be placed
1895 one syllable @emph{before} the one at which the switch to the new
1896 voice is to occur. In other words, changing the associated Voice
1897 happens one syllable later than expected. This is for technical
1898 reasons, and it is not a bug.}
1901 @node Printing stanzas at the end
1902 @unnumberedsubsubsec Printing stanzas at the end
1904 Sometimes it is appropriate to have one stanza set
1905 to the music, and the rest added in verse form at
1906 the end of the piece. This can be accomplished by adding
1907 the extra verses into a @code{\markup} section outside
1908 of the main score block. Notice that there are two
1909 different ways to force linebreaks when using
1912 @lilypond[ragged-right,verbatim,quote]
1913 melody = \relative c' {
1919 \set stanza = #"1." Ma- ry had a lit- tle lamb,
1920 its fleece was white as snow.
1924 \new Voice = "one" { \melody }
1925 \new Lyrics \lyricsto "one" \text
1931 \line{ All the children laughed and played }
1932 \line{ To see a lamb at school. }
1939 Mary took it home again,
1941 It was against the rule."
1946 @node Printing stanzas at the end in multiple columns
1947 @unnumberedsubsubsec Printing stanzas at the end in multiple columns
1949 When a piece of music has many verses, they are often printed in
1950 multiple columns across the page. An outdented verse number often
1951 introduces each verse. The following example shows how to produce such
1954 @lilypond[ragged-right,quote,verbatim]
1955 melody = \relative c' {
1960 \set stanza = #"1." This is verse one.
1966 \new Voice = "one" { \melody }
1967 \new Lyrics \lyricsto "one" \text
1974 \hspace #0.1 % moves the column off the left margin;
1975 % can be removed if space on the page is tight
1979 "This is verse two."
1983 \hspace #0.1 % adds vertical spacing between verses
1986 "This is verse three."
1991 \hspace #0.1 % adds horizontal spacing between columns;
1992 % if they are still too close, add more " " pairs
1993 % until the result looks good
1997 "This is verse four."
2001 \hspace #0.1 % adds vertical spacing between verses
2004 "This is verse five."
2009 \hspace #0.1 % gives some extra space on the right margin;
2010 % can be removed if page space is tight
2017 Internals Reference:
2018 @rinternals{LyricText},
2019 @rinternals{StanzaNumber}.
2026 * References for songs::
2030 @node References for songs
2031 @unnumberedsubsubsec References for songs
2033 Songs are usually written on three staves with the melody for the
2034 singer on the top staff and two staves of piano accompaniment at
2035 the bottom. The lyrics of the first stanza are printed immediately
2036 underneath the top staff. If there are just a small number of
2037 further stanzas these can be printed immediately under the first
2038 one, but if there are more stanzas than can be easily accommodated
2039 there the second and subsequent stanzas are printed after the music
2040 as stand-alone text.
2042 All the notational elements needed to write songs are fully described
2048 For constructing the staff layout, see @ref{Displaying staves}.
2051 For writing piano music, see
2052 @ref{Keyboard and other multi-staff instruments}.
2055 For writing the lyrics to a melody line, see
2056 @ref{Common notation for vocal music}.
2059 For placing the lyrics, see @ref{Placing lyrics vertically}.
2062 For entering stanzas, see @ref{Stanzas}.
2065 Songs are frequently printed with the chording indicated by chord
2066 names above the staves. This is described in @ref{Displaying chords}.
2069 To print fret diagrams of the chords for guitar accompaniment or
2070 accompaniment by other fretted instruments, see @qq{Fret diagram
2071 markups} in @ref{Common notation for fretted strings}.
2080 @ref{Common notation for vocal music},
2081 @ref{Displaying chords},
2082 @ref{Displaying staves},
2083 @ref{Keyboard and other multi-staff instruments},
2084 @ref{Placing lyrics vertically},
2091 @unnumberedsubsubsec Lead sheets
2093 Lead sheets may be printed by combining vocal parts and
2094 @q{chord mode}; this syntax is explained in @ref{Chord notation}.
2097 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2098 {simple-lead-sheet.ly}
2102 @ref{Chord notation}.
2113 This section discusses notation issues that relate most directly
2114 to choral music. This includes anthems, part songs, oratorio,
2118 * References for choral::
2119 * Score layouts for choral::
2123 @node References for choral
2124 @unnumberedsubsubsec References for choral
2126 Choral music is usually notated on two, three or four staves within
2127 a @code{ChoirStaff} group. Accompaniment, if required, is placed
2128 beneath in a @code{PianoStaff} group, which is usually reduced in
2129 size for @emph{a capella} choral works. The notes for each vocal
2130 part are placed in a @code{Voice} context, with each staff
2131 being given either a single vocal part (i.e., one @code{Voice}) or
2132 a pair of vocal parts (i.e., two @code{Voice}s).
2134 Words are placed in @code{Lyrics} contexts, either underneath each
2135 corresponding music staff, or one above and one below the music
2136 staff if this contains the music for two parts.
2138 Several common topics in choral music are described fully elsewhere:
2143 An introduction to creating an SATB vocal score can be found in
2144 the Learning Manual, see @rlearning{Four-part SATB vocal score}.
2147 Several templates suitable for various styles of choral music can
2148 also be found in the Learning Manual, see
2149 @rlearning{Vocal ensembles}.
2152 For information about @code{ChoirStaff} and @code{PianoStaff} see
2153 @ref{Grouping staves}.
2156 Shape note heads, as used in Sacred Harp and similar notation, are
2157 described in @ref{Shape note heads}.
2160 When two vocal parts share a staff the stems, ties, slurs, etc., of
2161 the higher part will be directed up and those of the lower part
2162 down. To do this, use @code{\voiceOne} and @code{\voiceTwo}. See
2163 @ref{Single-staff polyphony}.
2174 @rlearning{Four-part SATB vocal score},
2175 @rlearning{Vocal ensembles}.
2178 @ref{Context layout order},
2179 @ref{Grouping staves},
2180 @ref{Shape note heads},
2181 @ref{Single-staff polyphony}.
2186 Internals Reference:
2187 @rinternals{ChoirStaff},
2188 @rinternals{Lyrics},
2189 @rinternals{PianoStaff}.
2191 @node Score layouts for choral
2192 @unnumberedsubsubsec Score layouts for choral
2194 Choral music containing four staves, with or without piano
2195 accompaniment, is usually laid out with two systems per page.
2196 Depending on the page size, achieving this may require changes
2197 to several default settings. The following settings should be
2203 The global staff size can be modified to change the overall size
2204 of the elements of the score. See @ref{Setting the staff size}.
2207 The distances between the systems, the staves and the lyrics can
2208 all be adjusted independently. See @ref{Vertical spacing}.
2211 The dimensions of the vertical layout variables can be displayed as
2212 an aid to adjusting the vertical spacing. This and other
2213 possibilities for fitting the music onto fewer pages are described
2214 in @ref{Fitting music onto fewer pages}.
2217 If the number of systems per page changes from one to two it is
2218 customary to indicate this with a system separator mark between
2219 the two systems. See @ref{Separating systems}.
2222 For details of other page formatting properties, see
2228 Dynamic markings by default are placed below the staff, but in
2229 choral music they are usually placed above the staff in order to
2230 avoid the lyrics. The predefined command @code{\dynamicUp} does
2231 this for the dynamic markings in a single @code{Voice} context.
2232 If there are many @code{Voice} contexts this predefined command
2233 would have to be placed in every one. Alternatively its expanded
2234 form can be used to place all dynamic markings in the entire score
2235 above their respective staves, as shown here:
2237 @lilypond[verbatim,quote]
2242 \relative c'' { g4\f g g g }
2247 \relative c' { d4 d d\p d }
2254 \override DynamicText #'direction = #UP
2255 \override DynamicLineSpanner #'direction = #UP
2262 @code{\dynamicUp}, @code{\dynamicDown}, @code{\dynamicNeutral}.
2266 @ref{Changing spacing},
2267 @ref{Displaying spacing},
2268 @ref{Fitting music onto fewer pages},
2271 @ref{Separating systems},
2272 @ref{Setting the staff size},
2273 @ref{Using an extra voice for breaks},
2274 @ref{Vertical spacing}.
2276 Internals Reference:
2277 @rinternals{VerticalAxisGroup},
2278 @rinternals{StaffGrouper}.
2281 @node Divided voices
2282 @unnumberedsubsubsec Divided voices
2284 @cindex voices, divided
2286 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2287 {using-arpeggiobracket-to-make-divisi-more-visible.ly}
2291 @ref{Expressive marks as lines}.
2294 @node Opera and stage musicals
2295 @subsection Opera and stage musicals
2297 The music, lyrics and dialogue to opera and stage musicals are
2298 usually set out in one or more of the following forms:
2303 A @emph{Conductors' Score} containing the full orchestral and vocal
2304 parts, together with libretto cues if there are spoken passages.
2307 @emph{Orchestral Parts} containing the music for the individual
2308 instruments of the orchestra or band.
2311 A @emph{Vocal Score} containing all vocal parts with piano
2312 accompaniment. The accompaniment is usually an orchestral
2313 reduction, and if so the name of the original orchestral instrument
2314 is often indicated. Vocal scores sometimes includes stage
2315 directions and libretto cues.
2318 A @emph{Vocal Book} containing just the vocal parts
2319 (no accompaniment), sometimes combined with the libretto.
2322 A @emph{Libretto} containing the extended passages of spoken
2323 dialogue usually found in musicals, together with the words to the
2324 sung parts. Stage directions are usually included. LilyPond can
2325 be used to typeset libretti but as they contain no music
2326 alternative methods may be preferable.
2330 The sections in the LilyPond documentation which cover the topics
2331 needed to create scores in the styles commonly found in opera and
2332 musicals are indicated in the References below. This is followed
2333 by sections covering those techniques which are peculiar to
2334 typesetting opera and musical scores.
2337 * References for opera and stage musicals::
2341 * Dialogue over music::
2344 @node References for opera and stage musicals
2345 @unnumberedsubsubsec References for opera and stage musicals
2350 A conductors' score contains many grouped staves and lyrics. Ways
2351 of grouping staves is shown in @ref{Grouping staves}. To nest
2352 groups of staves see @ref{Nested staff groups}.
2355 The printing of empty staves in conductors' scores and vocal scores
2356 is often suppressed. To create such a @qq{Frenched score} see
2357 @ref{Hiding staves}.
2360 Writing orchestral parts is covered in @ref{Writing parts}.
2361 Other sections in the Specialist notation chapter may be relevant,
2362 depending on the orchestration used. Many instruments are
2363 transposing instruments, see @ref{Instrument transpositions}.
2366 If the number of systems per page changes from page to page it is
2367 customary to separate the systems with a system separator mark.
2368 See @ref{Separating systems}.
2371 For details of other page formatting properties, see
2375 Dialogue cues and stage directions can be inserted with markup.
2376 See @ref{Text}. Extensive stage directions can be inserted with
2377 a section of stand-alone markup between two @code{\score} blocks.
2378 See @ref{Separate text}.
2384 @rglos{Frenched score},
2385 @rglos{Frenched staves},
2386 @rglos{transposing instrument}.
2389 @ref{Grouping staves},
2390 @ref{Hiding staves},
2391 @ref{Instrument transpositions},
2392 @ref{Nested staff groups},
2394 @ref{Separating systems},
2396 @ref{Writing parts},
2403 @node Character names
2404 @unnumberedsubsubsec Character names
2406 @cindex character names
2407 @cindex names, character
2409 Character names are usually shown to the left of the staff when the
2410 staff is dedicated to that character alone:
2412 @lilypond[quote,verbatim,ragged-right]
2416 \set Staff.vocalName = \markup \smallCaps Kaspar
2417 \set Staff.shortVocalName = \markup \smallCaps Kas.
2426 \set Staff.vocalName = \markup \smallCaps Melchior
2427 \set Staff.shortVocalName = \markup \smallCaps Mel
2438 When two or more characters share a staff the character's name is
2439 usually printed above the staff at the start of every section
2440 applying to that character. This can be done with markup. Often a
2441 specific font is used for this purpose.
2443 @lilypond[quote,verbatim,relative=1]
2445 c4^\markup \fontsize #1 \smallCaps Kaspar
2448 a4^\markup \fontsize #1 \smallCaps Melchior
2451 c4^\markup \fontsize #1 \smallCaps Kaspar
2455 Alternatively, if there are many character changes, it may be
2456 easier to set up @qq{instrument} definitions for each character at
2457 the top level so that @code{\instrumentSwitch} can be used to
2458 indicate each change.
2460 @lilypond[quote,verbatim]
2461 \addInstrumentDefinition #"kaspar"
2462 #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
2463 (shortInstrumentName . "Kas.")
2464 (clefGlyph . "clefs.G")
2465 (clefOctavation . -7)
2466 (middleCPosition . 1)
2468 (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Kaspar"))
2469 (midiInstrument . "voice oohs"))
2471 \addInstrumentDefinition #"melchior"
2472 #`((instrumentTransposition . ,(ly:make-pitch 0 0 0))
2473 (shortInstrumentName . "Mel.")
2474 (clefGlyph . "clefs.F")
2475 (clefOctavation . 0)
2476 (middleCPosition . 6)
2478 (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Melchior"))
2479 (midiInstrument . "voice aahs"))
2482 \instrumentSwitch "kaspar"
2484 \instrumentSwitch "melchior"
2486 \instrumentSwitch "kaspar"
2493 @ref{Instrument names},
2494 @ref{Scheme functions},
2496 @ref{Text markup commands}.
2499 @rextend{Markup construction in Scheme}.
2502 @unnumberedsubsubsec Musical cues
2504 @cindex musical cues
2505 @cindex cues, musical
2507 Musical cues can be inserted in Vocal Scores, Vocal Books and
2508 Orchestral Parts to indicate what music in another part
2509 immediately precedes an entry. Also, cues are often inserted in the
2510 piano reduction in Vocal Scores to indicate what each orchestral
2511 instrument is playing. This aids the conductor when a full
2512 Conductors' Score is not available.
2514 The basic mechanism for inserting cues is fully explained in the
2515 main text, see @ref{Quoting other voices} and
2516 @ref{Formatting cue notes}. But when many cues have to be
2517 inserted, for example, as an aid to a conductor in a vocal score,
2518 the instrument name must be positioned carefully just before and
2519 close to the start of the cue notes. The following example shows
2522 @lilypond[quote,verbatim]
2523 flute = \relative c'' {
2526 \addQuote "flute" { \flute }
2528 pianoRH = \relative c'' {
2530 % position name of cue-ing instrument just before the cue notes,
2531 % and above the staff
2532 s1*0^\markup { \right-align { \tiny "Flute" } }
2533 \cueDuring "flute" #UP { g4 bes4 }
2535 pianoLH = \relative c { c4 <c' e> e, <g c> }
2550 If a transposing instrument is being quoted the instrument part should
2551 specify its key so the conversion of its cue notes will be done
2552 automatically. The example below shows this transposition for a
2553 B-flat clarinet. The notes in this example are low on the staff so
2554 @code{DOWN} is specified in @code{\cueDuring} (so the stems are
2555 down) and the instrument name is positioned below the staff. Note
2556 also that the piano right-hand voice is explicitly declared. This
2557 is because the cue notes in this example begin at the start of the
2558 first bar and this would otherwise cause the entire piano right-hand
2559 notes to be placed in a @code{CueVoice} context.
2561 @lilypond[quote,verbatim]
2562 clarinet = \relative c' {
2566 \addQuote "clarinet" { \clarinet }
2568 pianoRH = \relative c'' {
2570 % position name of cue-ing instrument below the staff
2571 s1*0_\markup { \right-align { \tiny "Clar." } }
2572 \cueDuring "clarinet" #DOWN { c4. g8 }
2575 pianoLH = \relative c { c4 <c' e> e, <g c> }
2594 From these two examples it is clear that inserting many cues in a
2595 Vocal Score would be tedious, and the notes of the piano part would
2596 become obscured. However, as the following snippet shows, it is
2597 possible to define a music function to reduce the amount of typing
2598 and to make the piano notes clearer.
2601 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2602 {adding-orchestral-cues-to-a-vocal-score.ly}
2609 @ref{Aligning objects},
2610 @ref{Direction and placement},
2611 @ref{Formatting cue notes},
2612 @ref{Quoting other voices},
2613 @ref{Using music functions}.
2618 Internals Reference:
2619 @rinternals{InstrumentSwitch},
2620 @rinternals{CueVoice}.
2623 @code{\cueDuring} automatically inserts a @code{CueVoice} context
2624 and all cue notes are placed in that context. This means it is not
2625 possible to have two overlapping sequences of cue notes by this
2626 technique. Overlapping sequences could be entered by explicitly
2627 declaring separate @code{CueVoice} contexts and using
2628 @code{\quoteDuring} to extract and insert the cue notes.
2632 @unnumberedsubsubsec Spoken music
2635 @cindex Sprechgesang
2636 Such effects as @q{parlato} or @q{Sprechgesang} require performers to
2637 speak without pitch but still with rhythm; these are notated by cross
2638 note heads, as demonstrated in @ref{Special note heads}.
2640 @c TODO add "marking-notes-on-spoken-parts" snippet -vv
2641 @c add "showing the rhythm of a melody" snip
2642 @c add "one staff-line notation"
2643 @c add "improvisation" ref
2644 @c add "lyrics independents of notes" ref
2646 @node Dialogue over music
2647 @unnumberedsubsubsec Dialogue over music
2649 Dialogue over music is usually printed over the staves in an italic
2650 font, with the start of each phrase keyed in to a particular music
2653 For short interjections a simple markup suffices.
2655 @lilypond[quote,verbatim,relative=2]
2656 a4^\markup { \smallCaps { Alex - } \italic { He's gone } } a a a
2657 a4 a a^\markup { \smallCaps { Bethan - } \italic Where? } a
2661 For longer phrases it may be necessary to expand the music to make
2662 the words fit neatly. There is no provision in LilyPond to do this
2663 fully automatically, and some manual intervention to layout the
2664 page will be necessary.
2666 For long phrases or for passages with a lot of closely packed
2667 dialogue, using a Lyrics context will give better results. The
2668 Lyrics context should not be associated with a music Voice; instead
2669 each section of dialogue should be given an explicit duration. If
2670 there is a gap in the dialogue, the final word should be separated
2671 from the rest and the duration split between them so that the
2672 underlying music spaces out smoothly.
2674 If the dialogue extends for more than one line it will be necessary
2675 to manually insert @code{\break}s and adjust the placing of the
2676 dialogue to avoid running into the right margin. The final word of
2677 the last measure on a line should also be separated out, as above.
2679 Here is an example illustrating how this might be done.
2681 @c This should be a snippet, but it can't be as it needs to be
2682 @c manually adjusted to suit the imposed line length. -td
2684 @lilypond[quote,verbatim,ragged-right]
2685 music = \relative c'' {
2686 \repeat unfold 3 { a4 a a a }
2689 dialogue = \lyricmode {
2691 \fontsize #1 \upright \smallCaps Abe:
2692 "Say this over measures one and"
2696 "and this over measure"4*3
2703 \override LyricText #'font-shape = #'italic
2704 \override LyricText #'self-alignment-X = #LEFT
2708 \new Voice { \music }
2714 @c TODO show use of \column to produce dialogue on two lines
2718 @ref{Manual syllable durations},
2722 @rinternals{LyricText}.
2725 @node Chants psalms and hymns
2726 @subsection Chants psalms and hymns
2731 @cindex religious music
2733 The music and words for chants, psalms and hymns usually follow a
2734 well-established format in any particular church. Although the
2735 formats may differ from church to church the type-setting problems
2736 which arise are broadly similar, and are covered in this section.
2739 * References for chants and psalms::
2741 * Pointing a psalm::
2742 * Partial measures in hymn tunes::
2745 @node References for chants and psalms
2746 @unnumberedsubsubsec References for chants and psalms
2748 Typesetting Gregorian chant in various styles of ancient notation
2749 is described in @ref{Ancient notation}.
2753 @ref{Ancient notation}.
2759 @node Setting a chant
2760 @unnumberedsubsubsec Setting a chant
2762 Modern chant settings use modern notation with varying numbers of
2763 elements taken from ancient notation. Some of the elements and
2764 methods to consider are shown here.
2766 Chants often use quarter notes without stems to indicate the pitch,
2767 with the rhythm being taken from the spoken rhythm of the words.
2769 @lilypond[verbatim,quote]
2770 stemOff = { \override Staff.Stem #'transparent = ##t }
2779 Chants often omit the bar lines or use shortened or dotted bar
2780 lines to indicate pauses in the music. To omit all bar lines from
2781 all staves remove the bar line engraver completely:
2783 @lilypond[verbatim,quote]
2804 \remove Bar_engraver
2810 Bar lines can also be removed on a staff-by-staff basis:
2812 @lilypond[verbatim, quote]
2816 \with { \remove Bar_engraver } {
2834 To remove bar lines from just a section of music treat it as a
2835 cadenza. If the section is long you may need to insert dummy
2836 bar lines with @code{\bar ""} to show where the line should break.
2838 @lilypond[verbatim,quote,relative=2]
2851 Rests or pauses in chants can be indicated by modified bar lines.
2853 @lilypond[verbatim, quote,relative=2]
2868 Alternatively, the notation used in Gregorian chant for pauses or
2869 rests is sometimes used even though the rest of the notation is
2870 modern. This uses a modified @code{\breathe} mark:
2872 @lilypond[verbatim,quote]
2874 \once \override BreathingSign #'stencil = #ly:breathing-sign::divisio-minima
2875 \once \override BreathingSign #'Y-offset = #0
2879 \once \override BreathingSign #'stencil = #ly:breathing-sign::divisio-maior
2880 \once \override BreathingSign #'Y-offset = #0
2884 \once \override BreathingSign #'stencil = #ly:breathing-sign::divisio-maxima
2885 \once \override BreathingSign #'Y-offset = #0
2889 \once \override BreathingSign #'stencil = #ly:breathing-sign::finalis
2890 \once \override BreathingSign #'Y-offset = #0
2908 \remove Bar_engraver
2914 Chants usually omit the time signature and often omit the clef too.
2916 @lilypond[verbatim,quote]
2928 \remove Bar_engraver
2929 \remove Time_signature_engraver
2930 \remove Clef_engraver
2936 Chants for psalms in the Anglican tradition are usually either
2937 @emph{single}, with 7 bars of music, or @emph{double}, with two lots
2938 of 7 bars. Each group of 7 bars is divided into two halves,
2939 corresponding to the two halves of each verse, usually separated by
2940 a double bar line. Only whole and half notes are used. The 1st bar
2941 in each half always contains a single chord of whole notes. This is
2942 the @qq{reciting note}. Chants are usually centered on the page.
2944 @lilypond[verbatim,quote]
2945 SopranoMusic = \relative g' {
2946 g1 | c2 b | a1 | \bar "||"
2947 a1 | d2 c | c b | c1 | \bar "||"
2950 AltoMusic = \relative c' {
2952 f1 | f2 e | d d | e1 |
2955 TenorMusic = \relative a {
2957 d1 | g,2 g | g g | g1 |
2960 BassMusic = \relative c {
2962 d1 | b2 c | g' g | c,1 |
2969 % Use markup to center the chant on the page
2978 \new Voice = "Soprano" <<
2982 \new Voice = "Alto" <<
2990 \new Voice = "Tenor" <<
2994 \new Voice = "Bass" <<
3004 \override SpacingSpanner
3005 #'base-shortest-duration = #(ly:make-moment 1 2)
3009 \remove "Time_signature_engraver"
3017 Some other approaches to setting such a chant are shown in the first
3018 of the following snippets.
3022 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3023 {chant-or-psalms-notation.ly}
3025 Canticles and other liturgical texts may be set more freely, and
3026 may use notational elements from ancient music. Often the words
3027 are shown underneath and aligned with the notes. If so, the notes
3028 are spaced in accordance with the syllables rather than the notes'
3031 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3032 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
3036 @rlearning{Visibility and color of objects},
3037 @rlearning{Vocal ensembles}.
3040 @ref{Ancient notation},
3042 @ref{Modifying context plug-ins},
3043 @ref{Typesetting Gregorian chant},
3044 @ref{Unmetered music},
3045 @ref{Visibility of objects}.
3048 @node Pointing a psalm
3049 @unnumberedsubsubsec Pointing a psalm
3051 The words to an Anglican psalm are usually printed in separate
3052 verses centered underneath the chant.
3054 Single chants (with 7 bars) are repeated for every verse. Double
3055 chants (with 14 bars) are repeated for every pair of verses. Marks
3056 are inserted in the words to show how they should be fitted to the
3057 chant. Each verse is divided into two halves. A colon is usually
3058 used to indicate this division. This corresponds to the double bar
3059 line in the music. The words before the colon are sung to the first
3060 three bars of music; the words after the colon are sung to the last
3063 Single bar lines (or in some psalters an inverted comma or similar
3064 symbol) are inserted between words to indicate where the bar lines
3065 in the music fall. In markup mode a single bar line can be entered
3066 with the bar check symbol, @code{|}.
3068 @lilypond[verbatim,quote]
3073 \line { O come let us sing | unto the | Lord : let }
3074 \line { us heartily rejoice in the | strength of | our }
3075 \line { sal- | -vation. }
3082 Other symbols may require glyphs from the @code{fetaMusic} fonts.
3083 For details, see @ref{Fonts}.
3085 @lilypond[verbatim,quote]
3087 \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3093 \line { O come let us sing \tick unto the \tick Lord : let }
3095 us heartily rejoice in the \tick strength of \tick our
3097 \line { sal \tick vation. }
3104 Where there is one whole note in a bar all the words corresponding
3105 to that bar are recited on that one note in speech rhythm. Where
3106 there are two notes in a bar there will usually be only one or two
3107 corresponding syllables. If there are more that two syllables a
3108 dot is usually inserted to indicate where the change in note occurs.
3110 @lilypond[verbatim,quote]
3112 \raise #0.7 \musicglyph #"dots.dot"
3115 \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3122 O come let us sing \tick unto \dot the \tick Lord : let
3125 us heartily rejoice in the \tick strength of \tick our
3127 \line { sal \tick vation. }
3134 In some psalters an asterisk is used to indicate a break in a
3135 recited section instead of a comma, and stressed or slightly
3136 lengthened syllables are indicated in bold text.
3138 @lilypond[verbatim,quote]
3140 \raise #0.7 \musicglyph #"dots.dot"
3143 \raise #1 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3149 \line { Today if ye will hear his voice * }
3151 \concat { \bold hard en }
3152 | not your | hearts : as in the pro-
3154 \line { vocation * and as in the \bold day of tempt- | }
3155 \line { -ation | in the | wilderness. }
3162 In other psalters an accent is placed over the syllable to indicate
3165 @lilypond[verbatim,quote]
3167 \raise #2 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
3174 O come let us \concat {
3175 si \combine \tick ng
3177 | unto the | Lord : let
3180 us heartily \concat {
3181 rejo \combine \tick ice
3183 in the | strength of | our
3185 \line { sal- | -vation. }
3192 The use of markup to center text, and arrange lines in columns is
3193 described in @ref{Formatting text}.
3195 Most of these elements are shown in one or other of the two verses
3196 in the template, see @qq{Psalms} in @rlearning{Vocal ensembles}.
3200 @rlearning{Vocal ensembles}.
3204 @ref{Formatting text}.
3207 @node Partial measures in hymn tunes
3208 @unnumberedsubsubsec Partial measures in hymn tunes
3210 Hymn tunes frequently start and end every line of music with
3211 partial measures so that each line of music corresponds exactly
3212 with a line of text. This requires a @code{\partial} command at
3213 the start of the music and @code{\bar "|"} or @code{\bar "||"}
3214 commands at the end of each line.
3216 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
3220 @node Ancient vocal music
3221 @subsection Ancient vocal music
3223 Ancient vocal music is supported, as explained in
3224 @ref{Ancient notation}.
3228 @c Add "Printing both the ancient and the modern clef in vocal music" snippet,
3229 @c and "Transcription of Ancient music with incipit" snippet. -vv
3233 @ref{Ancient notation}.