lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grace note position and time signature changes


From: Leo Correia de Verdier
Subject: Re: Grace note position and time signature changes
Date: Thu, 24 Mar 2022 13:13:12 +0100

Hi David!

This is our beloved issue 34 again: https://sourceforge.net/p/testlilyissues/issues/34/
You need to place grace spacers in relevant sequential variables matching the gracenotes to get them to the right place, as in this fixed code.

%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.22.2"
\include "english.ly"

tt = {
  \time 4/4 s1 s1 s1
  \time 2/4 \grace s16*3 s2
  \time 4/4 s1
  \time 2/4\grace s16*3  s2
}

\score {
  <<
    \new Staff {
      \relative c' {
        << \tt { R1 R1 a1 ~ a4 r4 R1 R2 } >>
      }
    }
    \new Staff {
      \relative c' {
        << \tt { R1
                 \grace { d16 d d } d1
                 R1
                 \grace { d16 d d } d2
                 R1
                 \grace { d16 d d } d2 }
        >>
      }
    }
  >>
}
%%%%%%%%%%%%%%%%%%%%%%%%%%

HTH
/Leo

24 mars 2022 kl. 12:10 skrev David Santamauro <david.santamauro@gmail.com>:

Hi,

The following snippet produces some strange results:

\version "2.22.2"

\include "english.ly"

tt = {
  \time 4/4 s1 s1 s1
  \time 2/4 s2
  \time 4/4 s1
  \time 2/4 s2
}

\score {
  <<
    \new Staff {
      \relative c' {
        << \tt { R1 R1 a1 ~ a4 r4 R1 R2 } >>
      }
    }
    \new Staff {
      \relative c' {
        << \tt { R1
          \grace { d16 d d } d1
          R1
          \grace { d16 d d } d2
          R1
          \grace { d16 d d } d2 }
        >>
      }
    }
  >>
}

I don’t understand the differing behavior in mm 3-4 and mm 5-6. Is there a way to force the grace notes past (to the right of) the time signature?

Thanks








reply via email to

[Prev in Thread] Current Thread [Next in Thread]