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: David Kastrup
Subject: Re: how to modify `afterGraceFraction` mid-score?
Date: Thu, 19 Dec 2024 22:09:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Werner LEMBERG <wl@gnu.org> writes:

>>> you can use `set!`:
>
> Thanks!
>
>>> But note that this may cause race conditions, [...]
>
> Please explain and/or give an example.
>
>> The global variable afterGraceFraction has bothered me for some time
>> now.  Shouldn't this be a context property?  [...]
>
> I guess that David has thought about that...
>
>> (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.)
>
> ...and came to the conclusion that a global variable is the easiest
> solution :-)

I refuse that honor.  afterGraceFraction was introduced with

commit 4e39a726c0dd6db9d2f590cc05daa907115bb916
Author: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date:   Sun Nov 28 17:33:34 2004 +0000

    *** empty log message ***

and all I did was to provide an optional argument to \afterGrace to be
able to forego that effectively hardcoded wart.  Optional music function
arguments were not a thing in 2004.

-- 
David Kastrup



reply via email to

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