Ah, that makes sense. I can see how the behavior would be useful there.
I think part of the surprise is that when writing \new Dynamics voices I
will only use spacer rests, and typically only specify the "s" the first
time, leaving the rest of the piece described with just durations.
\new Dynamics {
s1
| 2\< 2\>
| 1\!
}
But if I try to use spacer rests in a musical context with pitches, then
the compiler stops remembering the "s".
\version "2.25.6"
{
c'4 4 4 4
% These are still "c"s
| s4 4 4 4
}
Would it be reasonable for this to be configurable, so that different parts
could remember or forget rests as needed?
On Sat, Feb 3, 2024 at 5:22 PM Jean Abou Samra <[email protected]> wrote:
> Am I misunderstanding something, or is this a bug? Since the "r4" at the
> start of the second measure is fully qualified, I was expecting the "4"s
> that follow it to be quarter rests as well, but I'm seeing "c"s in the
> rendered output.
>
> \version "2.25.6"
>
> {
> c'4 r r r
> % The middle 4s are "c"s instead of rests
> | r4 4 4 b
> }
>
> It's on purpose (even though I tend to agree that it is a bit quirky). One
> reason is to simplify the writing of percussion lines, where the same drum
> name is often repeated over and over, mixed with rests.
>
> Best,
>
> Jean
>