lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing extenders for the full duration of a note


From: Lucas Werkmeister
Subject: Re: Drawing extenders for the full duration of a note
Date: Tue, 23 Oct 2018 19:57:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

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 } }




   #})



reply via email to

[Prev in Thread] Current Thread [Next in Thread]