Re: define-music-function with afterGrace and {}

2024-02-25 Thread jcarll
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/,

Re: define-music-function with afterGrace and {}

2024-02-23 Thread David Kastrup
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:

Re: define-music-function with afterGrace and {}

2024-02-23 Thread Aaron Hill
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

define-music-function with afterGrace and {}

2024-02-23 Thread jcarll
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 =