Mit Gesangstexten und Bezeichnern arbeiten

Um Variablen zu definieren, die Gesangstext beinhalten, muss die \lyricmode-Umgebung benutzt werden.

musicOne = \relative {
  c''4 b8. a16 g4. f8 e4 d c2
}
verseOne = \lyricmode {
  Joy to the world, the Lord is come.
}
\score {
  <<
    \new Voice = "one" {
      \time 2/4
      \musicOne
    }
    \new Lyrics \lyricsto "one" {
      \verseOne
    }
  >>
}

[image of music]

Dauern müssen nicht angegeben werden, wenn die Variable im Zusammenhang mit \addlyrics oder \lyricsto aufgerufen wird.

Für eine andere Anordnung oder kompliziertere Situationen bietet es sich an, zuerst Systeme und Gesangstextumgebungen zu definieren, dann die Hierarchie von Systemen und Gesangstextzeilen aufzustellen ohne den Gesangstext selber aufzurufen, und dann den Gesangstext mit \context darunter aufzurufen. Das stellt sicher, dass die Stimmen, die durch \lyricsto angefordert werden, auch immer schon definiert sind. Beispielsweise:

sopranoMusic = \relative { c''4 c c c }
contraltoMusic = \relative { a'4 a a a }
sopranoWords = \lyricmode { Sop -- ra -- no words }
contraltoWords = \lyricmode { Con -- tral -- to words }

\score {
  \new ChoirStaff <<
    \new Staff {
      \new Voice = "sopranos" {
        \sopranoMusic
      }
    }
    \new Lyrics = "sopranos"
    \new Lyrics = "contraltos"
    \new Staff {
      \new Voice = "contraltos" {
        \contraltoMusic
      }
    }
    \context Lyrics = "sopranos" {
      \lyricsto "sopranos" {
        \sopranoWords
      }
    }
    \context Lyrics = "contraltos" {
      \lyricsto "contraltos" {
        \contraltoWords
      }
    }
  >>
}

[image of music]

Siehe auch

Notationsreferenz: Gesangstext vertikal verschieben.

Referenz der Interna: LyricCombineMusic, Lyrics.


LilyPond Benutzerhandbuch v2.25.15 (Entwicklungszweig).