The following alternative to Gilles' solution is more close to your original
example:
<<
\new Staff <<
% Keep the context "other" alive during the score:
\context Voice = other {\voiceOne s1*3}
\context Voice = "melody" \relative c' {
<< \context Voice = other { g4 a b4 }
{ \voiceTwo g4 a b } >> \oneVoice c
e e e2
<< \context Voice = other { d d c }
{ \voiceTwo d d c } >> \oneVoice \bar ".|."
}
>>
\new Lyrics \lyricsto "melody" { This is the first line of text for
the music }
\new Lyrics \lyricsto "other" { This is the second line text }
>>
See http://lists.gnu.org/archive/html/lilypond-user/2005-12/msg00257.html
for an explanation on why it works and why yours didn't work.
/Mats
liang seng wrote:
Hi, I am using Lilypond 2.7.27 for Windows 98 and I'm trying to
compile a choral work. Here is an simple file of my problem:
\version "2.7.27"
<< \new Staff \context Voice = "melody" \relative c' {
<< \context Voice = other { \voiceOne g a b4 }
\context Voice = melody { \voiceTwo g4 a b } >> \oneVoice c e e e2 <<
\context Voice = other
{ \voiceOne d d c } \context Voice = melody { \voiceTwo d d c } >>
\oneVoice \bar ".|." }
\new Lyrics \lyricsto "melody" \new Lyrics { This is the first line of
text for the music }
\new Lyrics \lyricsto "other" \new Lyrics { This is the second line
text }
>>
Here, the first stanza "melody" covers the entire music. For the
second stanza "other", the lyrics only appear at certain points of the
music. In the example, it appears in bar 1 and 3. I tried compiling
the file but as the output shows, the second stanza does not appear in
the 3rd bar. Why is this?
If I'm not mistaken there is a skip function that allows us to skip
lyrics over notes but if the gap is several lines of music, that is
not practical. I cannot use another \new Lyric as there would appear
to be a gap between the stanzas. Is there a way to make the second
stanza "other" appear at bar 3?
Thank you.
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user