On Thu, Dec 19, 2024 at 4:10 PM David Kastrup <d...@gnu.org> wrote:
> Werner LEMBERG <w...@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 <han...@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. > I use the optional argument to \afterGrace every single time I use \afterGrace. It's one of the features from the last couple of years that has helped my spacing the most. After the optional \afterGrace argument was introduced, I never touched the global setting again. -- Trevor Bača www.trevorbaca.com soundcloud.com/trevorbaca