On 07.12.24 16:08, Frédéric wrote:
gruppetto = \after 8 \turn \etc
should do it.
The \etc acts as a pacifier.

To clarify what’s actually happening: The \etc makes LilyPond create a music function without you having to delve into the internals.

You need a music function instead of a simple variable because \after is a music function requiring three arguments. You want your \gruppetto function to still take one argument—the one that \after takes as its third argument—the actual note.

For more, see
<https://lilypond.org/doc/v2.24/Documentation/notation/available-music-functions#index-_005cafter-5> (this is found by searching for \after in the LilyPond Command Index)
<https://lilypond.org/doc/v2.24/Documentation/extending/music-functions>

Best, Simon

Reply via email to