Hello Calvin,
MM rests and cadenzas do not play well together. The reason for this is that
the MM is placed centered between start and end of measure. But \cadenzaOn is
not really made for creating arbitrary length measures. What is does is simply
telling Lilypond to stop counting. So when you do
\cadenzaOn a \bar "|"
\cadenzaOff a
this is technically a single measure (where the cadenza part simply happes
before even the first moment). So the MM rest will be centered along the whole
thing. (So technically this is a case where MM rests and \bar "|" within a
measure do not play together).
Instead of using a cadanza you might want to use \partial to create a measure
of arbitrary length.
Cheers,
Valentin
Am Montag, 31. Juli 2023, 04:17:51 CEST schrieb Calvin Ransom:
> I have a cadenza where Staff A rests while Staff B plays and after the
> cadenza Staff A comes back in. In the below minimal example, there is an
> extra rest added above the note when Staff A comes back in. How do I get
> rid of this rest? If I use r1 instead of R1 I don't have this issue (but I
> need to use R1 as my cadenzas are longer than a single measure)
>
> % SNIPPET BEGINS %
> \version "2.24.1"
>
> \new ChoirStaff <<
> \new Staff {
> a1
> R1
> a %why is there a rest above this note?
> a
> }
> \new Staff {
> a1
> \break
> \cadenzaOn
> a
> \bar "|"
> \break
> \cadenzaOff
> a
> a
> }
>
>
> % SNIPPET ENDS %
>
> Calvin Ransom
>
> Sent from my T530
signature.asc
Description: This is a digitally signed message part.