-------- Forwarded Message --------
Subject:        Re: Duration shortcut not working for rests
Date:   Sat, 3 Feb 2024 17:19:42 -0500
From:   William Ashton <will...@ashtonfam.org>
To:     Jakob Pedersen <jak...@vivaldi.net>



Part of what may be confusing me is that when defining a \new Dynamics voice, I will use only spacer rests, and I typically only specify the first "s", leaving only the durations for the rest of the piece. For example...

\new Dynamics {
  s1
  | 1
  | 2\< 2\>
  | 1\!
}

Yet, if I try similar in a music expression with pitches, it refuses to remember the spacers.

\version "2.25.6"

{
    c'4 4 4 4
    % These 4s are "c"s instead of rests
  | r4 4 4 4
    % These are still "c"s
  | s4 4 4 4
}

The behavior changed. Why?

On Sat, Feb 3, 2024 at 5:11 PM William Ashton <will...@ashtonfam.org> wrote:

   Sure. I recognize that that would work. I guess the question more
   directly would be "do isolated durations only work for notes?" In
   this slightly adjusted example, I would expect the "4"s in the first
   measure to remember the "c'", and the "4"s in the second measure to
   remember the "r".

   
https://lilypond.org/doc/v2.24/Documentation/notation/writing-rhythms#durations

   \version "2.25.6"

   {
        c'4 4 4 4
        % These 4s are "c"s instead of rests
      | r4 4 4 4
   }

   On Sat, Feb 3, 2024 at 5:06 PM Jakob Pedersen <jak...@vivaldi.net>
   wrote:

       Hi William,

       If you want to write more rests, the syntax is

       r4 r r b

       Much like

       c'4 r e f

       are all quarter notes and a quarter rest.


       Lilypond remembers the duration, but needs to know what to print
       with that duration.


       Best wishes,

       Jakob

       On 03.02.2024 22.55, William Ashton wrote:
        Hello all,

        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
        }

Reply via email to