PS. A similar wish would be for a \cueStyle command, I could imagine
users wanting that. I’m not even sure whether and how cueStyle and
graceStyle would differ, but in terms of user interface it would be good
to have both.
On 09.09.25 10:43, Simon Albrecht wrote:
Hi everyone,
once again I’m grappling with the issue of \afterGrace. I find the
spacing implications of inserting actual grace notes with a spacer
rest after pretty much impossible to work with [1], so I tried using
normally timed notes, tweaking their size and stem direction to match
grace notes. But it gets ridiculous, since you’d need to manually
shorten stems/reposition beams as well.
In conclusion, I think it would be best to have a graceStyle music
function that will retain the normal timing but mimick the appearance
of grace notes. I imagine this could be useful for other contexts as
well (Chopin-style flourishes, cadenzas, arbitrary embellishments…).
Myself I might have to delve deep into the C++ implementation of grace
notes to figure out what might not actually be complicated in terms of
implementation—does someone have the knowledge and be willing to help
me out?
Thanks,
Simon
[1] Having a globally defined afterGraceFraction proved difficult for
polyphonic situations, so I switched to manual scaling of durations.
Normally there shouldn’t be any extra space after, so I try the
equivalent of reducing afterGraceFraction, but that easily causes Lily
to print the grace notes with smaller note values (apparently, she
won’t allow grace notes with a nominal value larger than the duration
of the main note…).