Compiling the following lilypond code:
\version "2.25.10"
music = \relative {
\time 4/4
\repeat volta 2 {
d'1 |
\alternative {
{ d1 | }
{ | r4 d2 d4 | d1 }
}
}
\bar "|."
}
words = \lyricmode {
\repeat volta 2 {
a
\alternative {
{ b }
{ c d e }
}
}
}
\score {
\new Staff <<
\new Voice \music
\addlyrics \words
>>
}
gives the following output:
> lilypond test.ly
GNU LilyPond 2.25.10 (running Guile 2.2)
Processing `test.ly'
Parsing...
Interpreting music...
test.ly:9:20: warning: bar check failed at: 3/4
{ | r4 d2 d4
| d1 }
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `test.pdf'...
Success: compilation successfully completed
and the produced score is:
The same result is produced with 2.24.3 and 2.25.10.
Removing the lyrics, gives:
with no error messages and bar lines where I would expect them.
Similarly, if the bar "r4 d2 d4" is replaced with "d4 d2 d4", then the
resultant output is:
which also has no error message and bar lines where I would expect.
What silly mistake am I making here?
Kevin.