Node: More stanzas, Next: , Previous: The Lyrics context, Up: Vocal music



More stanzas

When multiple stanzas are printed underneath each other, the vertical groups of syllables should be aligned around punctuation. This can be done automatically when corresponding lyric lines and melodies are marked.

To this end, give the Voice context an identity:

     \context Voice = duet {
          \time 3/4
          g2 e4 a2 f4 g2.  }
     

Then set the LyricsVoice contexts to names starting with that identity followed by a dash. In the preceding example, the Voice identity is duet, so the identities of the LyricsVoices are marked duet-1 and duet-2:

       \context LyricsVoice = "duet-1" {
         Hi, my name is bert. }
       \context LyricsVoice = "duet-2" {
         Ooooo, ch\'e -- ri, je t'aime. }
     
The convention for naming LyricsVoice and Voice must also be used to get melismata correct in conjunction with rests.

The complete example is shown here:

     \score {
     \addlyrics
       \notes \relative c'' \context Voice = duet { \time 3/4
          g2 e4 a2 f4 g2.  }
       \lyrics \context Lyrics <<
       \context LyricsVoice = "duet-1" {
         \property LyricsVoice . stanza = "Bert"
         Hi, my name is bert.    }
       \context LyricsVoice = "duet-2" {
         \property LyricsVoice . stanza = "Ernie"
         Ooooo, ch\'e -- ri, je t'aime. }
       >>
     }
     

[picture of music]

Stanza numbers, or the names of the singers can be added by setting LyricsVoice.Stanza (for the first system) and LyricsVoice.stz for the following systems. Notice how dots are surrounded with spaces in \lyrics mode:

         \property LyricsVoice . stanza = "Bert"
         ...
         \property LyricsVoice . stanza = "Ernie"
     

To make empty spaces in lyrics, use \skip.

Bugs

Input for lyrics introduces a syntactical ambiguity:

     foo = bar
     

is interpreted as assigning a string identifier \foo such that it contains "bar". However, it could also be interpreted as making or a music identifier \foo containing the syllable `bar'. The force the latter interpretation, use

       foo = \lyrics bar4
     

This page is for LilyPond-2.0.1 (stable-branch).

Report errors to <bug-lilypond@gnu.org>.