Op 15-12-2022 om 16:27 schreef Jean Abou Samra:
<...>
As said in another thread [1], I would recommend using the \repeat
construct in the lyrics too:
\version "2.23.82"
theMusic = {
\repeat volta 2 {
g'4 4 4 4
\alternative { { f'1 } { c''1 } }
}
}
theLyrics = \lyricmode {
\repeat volta 2 {
The an -- swer is
\alternative {
{ quite }
{ plain. }
}
}
}
<<
\new Staff \new Voice \theMusic
\addlyrics \theLyrics
>>
Best,
Jean
[1]
https://lists.gnu.org/archive/html/lilypond-user/2022-11/msg00206.html
Hi Jean,
While this work in placing the words correctly, it is, in my case, not
quite flawless.
If I render the attached snippet, there is no "2"-bracket above the
second alternative.
But if you comment out the lyrics part, the "problem" has gone.
Maybe I'm doing something wrong here, but I can't find what...
Any idea?
Thanks for taking the effort!
regards, Jogchum
\version "2.23.3"
\paper {
#(set-paper-size "a4")
}
global = {
\key f \major
\numericTimeSignature
\time 4/4
\tempo "Andante"
}
soprano = \relative c'' {
\global
\repeat volta 2
{ \time 4/4
g f8 f e4 f
\alternative { { d8. e16 f8 g a g a c | }
{ d,4 f8 e d2| }
}
}
}
SopraChorus = \lyricmode {
\repeat volta 2
{ dai dai -- a dai -- a
\alternative { { dai -- a dai dai dai -- a dai dai | }
{ Chris -- mas has come. | }
}
}
}
\book { \score { \new ChoirStaff
<< \new Staff \with { instrumentName = "Sopraan"
shortInstrumentName = "S."
}
\new Voice = "soprano" \soprano
\new Lyrics \with { \override VerticalAxisGroup #'staff-affinity = #CENTER
} \lyricsto "soprano" \SopraChorus
>>
\layout { }
}
}