On 08/07/2024 19:53, Mats Bengtsson wrote:
On 2024-07-08 15:37, Raphael Mankin wrote:
I am having difficulty layout satisfactorily a song that has 3 verses
and a refrain. The refrain comes on a separate line from the verses.
It looks unsightly, and wastes space on the page. Neither NR nor LM
seem to address this case.
I attach my MWE. But here is the .ly:
<<<<<<<<<<<<<<<<<<<<
\version "2.24.3"
melody = { \relative c'
\repeat volta 3 { a b c d e f g a }
}
verseA = \lyricmode { This is verse one }
verseB = \lyricmode { This is verse two }
verseC = \lyricmode { This is verse three }
chorusWords = \lyricmode { This is the chorus }
\score {
\new Staff {
\melody
\addlyrics {
\repeat volta 3 {
<<
\new Lyrics \verseA
\new Lyrics \verseB
\new Lyrics \verseC
>>
\new Lyrics \chorusWords
}
}
}
\layout { }
}
>>>>>>>>>>>>>>>>>>>
An alternative to the already proposed solutions is to name the Lyrics
context that you want to keep, and then reuse it for the refrain:
\version "2.24.3"
melody = { \relative c'
\repeat volta 3 { a b c d e f g a }
}
verseA = \lyricmode { This is verse one }
verseB = \lyricmode { This is verse two }
verseC = \lyricmode { This is verse three }
chorusWords = \lyricmode { This is the chorus }
\score {
\new Staff {
\melody
\addlyrics {
\repeat volta 3 {
<<
\new Lyrics = mainlyrics \verseA
\new Lyrics \verseB
\new Lyrics \verseC
>>
\context Lyrics = mainlyrics \chorusWords
}
}
}
\layout { }
}
/Mats
Now that is much neater, but can it be modified for the case where the
refrain precedes the verse, e.g. Satie's "Je Te Veux"?
Maybe these tricks should go into the docs.