lilypond-user
[Top][All Lists]
Advanced

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

Re: Song with repeat and partial


From: Raphael Mankin
Subject: Re: Song with repeat and partial
Date: Fri, 9 Aug 2024 13:53:44 +0100
User-agent: Mozilla Thunderbird



On 09/08/2024 09:54, Valentin Petzel wrote:
I have a song with an intro, several stanzas, and a refrain. Each stanza
starts on the last beat of the measure.See the attached MWE.

Is there a neat way of avoiding having a repeat bar in the middle of a
measure while preserving the stanza numbers is their proper  places?

I’m a bit confused of what you actually want. Do you want to avoid having the
repeat bars in the middle of the measure? Then you could do it the traditional
way:

%%%
\version "2.24.3"

intro = \relative c' {  g' f e d c b a  g }
melody = \relative c' \new Voice = "verse" {
   a
   \repeat volta 3 {
     b c d \new Voice = "chorus" { e f g a } a,
   }
}
verseA = \lyricmode {
   \set stanza = "1."
   This is verse one
}
verseBstub = \lyricmode {
   \set stanza = "2." This
}
verseB = \lyricmode {
   \skip This
   \set stanza = "(2.)"
   is verse two
}
verseCstub = \lyricmode {
   \set stanza = "3." This
}
verseC = \lyricmode {
   \skip This
   \set stanza = "(3.)"
   is verse three
}
chorusWords = \lyricmode {
   \set stanza = "Refrain."
   This is the chorus
}

\score {
   <<
     \new Staff {
       \partial 4
       \intro
       \melody
     }
     \new Lyrics = "mainlyrics" \lyricsto "verse" { \verseA \verseBstub }
     \context Lyrics = "mainlyrics" \lyricsto "chorus" \chorusWords
     \new Lyrics \lyricsto "verse" { \verseB \verseCstub }
     \new Lyrics \lyricsto "verse" { \verseC }
   >>
   \layout { }
}
%%%

I was hoping there was a neat trick that did not involve stubs. But if that is the "traditional" way of doing things ....



reply via email to

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