Dear devs,
if you have a cadenza followed by a line break and compressed full measure
rest, the full measure rest is engraved two times, and once before it even
appears in the source.
This sounds a bit like a corner-case, but I have been using this pattern for
many years now, to get a "D. S. al Coda-Coda" behind a stave, using a silent
rest and some markup. This must be some regression, as the very macros/
functions I have been using for really a very long time now yield inexplicable
output.
The behavior can be produced with this very minimal example, using Lilypond
2.24.4:
\version "2.24.4"
\relative c'' {
\time 4/4
\key c \major
\compressEmptyMeasures
c1
\cadenzaOn
r1
\cadenzaOff
\break
R1*3
c1
}
The cadenza r1 is engraved, and in addition, the R1*3 from after the break is.
Cf. demo.png, a screenshot from the PDF output.
This does not happen if the compressed full measure rest is replaced by normal
rests:
\version "2.24.4"
\relative c'' {
\time 4/4
\key c \major
\compressEmptyMeasures
c1
\cadenzaOn
r1
\cadenzaOff
\break
r1 r1 r1
c1
}
Cf. demo_no_compressed_rest.png
Thanks a lot for having a look at this!
Cheers, Tobias