Thanks for the response!
Following (without /\glissando/) works now:
#{ \afterGrace #starttone { \once \hide Stem \parenthesize #endtone } #}
Unfortunately, as soon as I insert the /\glissando/ between /#starttone/
and /{/, it seems to ignore both /\afterGrace/ and /\glissando/,
shifting
jca...@web.de writes:
> Good day,
>
> following snippet I need very frequently (with different notes instead
> of c4 and e4):
>
>\afterGrace c4 \glissando {\once \hide Stem \parenthesize e4}
>
>
> That's why I wanted to create a music function to shorten the
> expression. My previous attempt:
On 2024-02-23 4:46 am, jca...@web.de wrote:
My previous attempt:
graceGliss =
#(define-music-function
(starttone endtone)
(ly:music? ly:music?)
#{
\afterGrace #starttone \glissando {\once \hide Stem
\parenthesize #endtone}
#})
doesn't work, Return Code 1
Good day,
following snippet I need very frequently (with different notes instead
of c4 and e4):
\afterGrace c4 \glissando {\once \hide Stem \parenthesize e4}
That's why I wanted to create a music function to shorten the
expression. My previous attempt:
graceGliss =
#(define-music-fun