我想我已经很接近了,但似乎不太可能让两节与一个隐藏的声音对齐 - 因此节奏变化可以通过歌词来近似。
melody = \relative c' {
\clef treble
\key c \major
\time 4/4
c4 d e f | g f e d |
<<
\new Voice = "shown" {
\relative c' {
c4 d c d | e f g2
}
}
\new Voice = "hidden" {
\hide {
c'8 c d d c c d d | e f g2
}
}
>>
}
text = \lyricmode {
Here we have a | li -- tle si -- lly
<<
{
\set stanza = #"1. "
Si -- lly li -- tle | al -- pha -- bet
\new Lyrics {
\set associatedVoice = "hidden"
\set stanza = #"2. "
Si -- ly li -- tle fu -- nny soun -- ding |
Al -- pha -- bet song.
}
}
>>
}
\score {
<<
\new Voice = "one" { \melody }
\new Lyrics \lyricsto "one" \text
>>
\layout { }
\midi { }
}
上面显示了声音和它们的“相关”(或不)歌词。