Next: Specifying melismata within the lyrics, Previous: Divisi lyrics, Up: Flexibility in placement
More complex variations in text underlay are possible. It is possible
to switch the melody for a line of lyrics during the text. This is
done by setting the associatedVoice
property. In the example
the text for the first stanza is set to a melody called “lahlah”,
\new Lyrics \lyricsto "lahlah" { Ju -- ras -- sic Park }
The second stanza initially is set to the lahlah
context, but
for the syllable “ran”, it switches to a different melody.
This is achieved with
\set associatedVoice = alternative
Here, alternative
is the name of the Voice
context
containing the triplet.
Again, the command must be one syllable too early, before “Ty” in this case.
\new Lyrics \lyricsto "lahlah" { \set associatedVoice = alternative % applies to "ran" Ty -- ran -- no -- \set associatedVoice = lahlah % applies to "rus" sau -- rus Rex }
The underlay is switched back to the starting situation by assigning
lahlah
to associatedVoice
.
Next: Specifying melismata within the lyrics, Previous: Divisi lyrics, Up: Flexibility in placement
This page is for LilyPond-2.10.33 (stable-branch).