lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stanzas with different rythms


From: Valentin Petzel
Subject: Re: Stanzas with different rythms
Date: Sat, 21 May 2022 09:33:31 +0200

Hello Helge!

The problem with this is that the lyrics are aligned to a specific Voice. But 
<< ... // ... >> creates new Voice contexts, thus this will not be seen as 
part of the same voice. You can avoid this by using << ... \new Voice ... >> 
instead (this will keep one voice while adding another one). You can set the 
associatedVoice property to change what Voice the Lyrics align to (but this 
needs to be done on syllable before the first syllable affected by this due to 
some technicalities). See the appended code for details.

In case you get lots of such passages you may also use Lyrics with explicit 
rhythm, i.e. by writing Es4 war2 ein4 Kö4. -- nig8 in4 Thu2. -- le2

Here’s your fixed example:


alt =
#(define-music-function (m1 m2) (ly:music? ly:music?)
   #{
     <<
       { \voiceOne $m1 \oneVoice }
       \context Voice = "B" { \voiceTwo \tiny $m2 }
     >>
   #})


<<
\new Voice = "A" \relative c' {
   \time 6/4
   \partial 4
   e4 |
   a2 a4 \alt { e4. 8} 2 4 |
   f2. c2 4 |
   d2 \alt e4 { e8\noBeam 8 } f2
}
\new Lyrics \lyricsto "A" {
   Es war ein Kö -- nig in Thu -- le gar treu bis an das
}
\new Lyrics \lyricsto "A" {
   Und als 
   \set associatedVoice = "B" 
   er
   \unset associatedVoice
   kam _ zu ster -- ben, zählt
   \set associatedVoice = "B" er sei --
   \unset associatedVoice
   ne Städt im
}
>>

Cheers,
Valentin

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]