Jun Tamura wrote:
I would like to have longer repeat ties. I think that I should define a new
music function like:
https://wiki.lilypond.community/wiki/Longer_laissez_vibrer_ties
These two special types of tie share the semi-tie-interface,
so you could try rewriting the LSR code for Longer_laissez_vibrer_ties.
See such a quick and dirty mod in the attached extendRT.ly.
A minus sign is introduced for the opposite direction.
But you will probably need to change the X-extent override too.
Cheers,
Robin
\version "2.24.0"
extendRT =
#(define-music-function (further) (number?)
#{
\once \override RepeatTie.X-extent = #'(0 . 0)
\once \override RepeatTie.details.note-head-gap = #(- 0.2 (/ further 2))
\once \override RepeatTie.extra-offset = #(cons (/ further -2) 0)
#})
\relative c' {
\extendRT #2.5
e8 \repeatTie r16 r8
}