lilypond-user
[Top][All Lists]
Advanced

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

Re: how to modify `afterGraceFraction` mid-score?


From: Lukas-Fabian Moser
Subject: Re: how to modify `afterGraceFraction` mid-score?
Date: Thu, 19 Dec 2024 18:44:43 +0100

Hi Valentin, hi Werner,

you can use `set!`:

{
  \afterGrace c' c' \break
  #(set! afterGraceFraction 999/1000)
  \afterGrace c' c' \break
  s1
}

But note that this may cause race conditions, and `afterGrace` allows
specifying the ratio as optional first argument. In this sense I would deem it
safer to use that optional argument over going around changing the default all
the time.

The global variable afterGraceFraction has bothered me for some time now. Shouldn't this be a context property? (Of course, the current implementation of afterGrace makes this comparatively hard to achieve, since the fraction is used for determining the length of a skip IIRC.)

Lukas

reply via email to

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