lilypond-user
[Top][All Lists]
Advanced

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

Re: trill spanner over whole note


From: Jean Abou Samra
Subject: Re: trill spanner over whole note
Date: Tue, 8 Jun 2021 21:56:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1



Le 08/06/2021 à 00:26, Molly Preston a écrit :
Yes! Thank you Jean! I am sorry for miscommunicating.

  Question it is going to the end of the bar but a little too far to the end is there a way to specify? I have a clef change in my original score and it is continuing over the clef change.

 \new Staff {
    r2 r4 c' ~  \tweak to-barline ##t \startTrillSpan|
    c'1
    \clef bass d1\f \stopTrillSpan  |
  }

I realize maybe that doesn't matter? But I am wondering if it is possible to be very specific about it's ending point.

-Molly

Hello,

Please keep the list copied, which enables others to chime in, and benefit from the answers in years.

You want to adjust bound-details.right.padding to a suitable value:

\version "2.23.3"

 \new Staff {
   r2 r4 c'~\tweak bound-details.right.padding 6 \startTrillSpan|
   c'1
   \clef bass d1\f \stopTrillSpan  |
}

Alternatively, you could go the engraver way, saving the need to adjust the value for every trill.

\version "2.23.3"

\layout {
  \context {
    \Staff
    \consists
      #(lambda (context)
         (let ((trills '())
               (clef #f))
           (make-engraver
             (acknowledgers
               ((clef-interface engraver grob source-engraver)
                  (set! clef grob)))
             (end-acknowledgers
               ((trill-spanner-interface engraver grob source-engraver)
                  (set! trills (cons grob trills))))
             ((process-acknowledged engraver)
                (if clef
                    (for-each
                      (lambda (trill)
                        (ly:spanner-set-bound! trill RIGHT clef))
                      trills)))
             ((stop-translation-timestep engraver)
                (set! trills '())
                (set! clef #f)))))
  }
}

 \new Staff {
   r2 r4 c'~ \startTrillSpan|
   c'1
   \clef bass d1\f \stopTrillSpan  |
}

Regards,
Jean



reply via email to

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