On 23.10.18 19:11, Lucas Werkmeister wrote:
> In the end, I went for a variation of Graham’s suggestion instead,
> encapsulated in a music function:
> 
> extendedNote =
> #(define-music-function
>      (parser location note)
>      (ly:music?)
>    #{
>     \afterGrace 15/16 $note { \once \hideNotes \absolute $note }
>    #})
> 
> I needed a few iterations to work out the details ($note instead of
> #note; make the grace note \absolute to avoid it adjusting the octave a
> second time)

I only noticed another problem after sending this email: the invisible
grace note still affects the ambitus, and because it’s \absolute it can
be quite far away from the rest of the voice. I fixed that by using a
drum note instead of the argument $note for the grace:

extendedNote =
#(define-music-function
     (parser location note)
     (ly:music?)




   #{
     \afterGrace 15/16 $note { \once \hideNotes \drummode { bd } }




   #})

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to