Jump to content

Longer laissez vibrer ties: Difference between revisions

From LilyPond wiki
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
No edit summary
Line 17: Line 17:


[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]][[Category:Snippet]]

Revision as of 22:55, 21 November 2025

The following functions allows to make a laissez vibrer tie look longer. It may, however, collide with other notation objects.

\version "2.24"

extendLV =
#(define-music-function (further) (number?)
#{
  \once \override LaissezVibrerTie.X-extent = #'(0 . 0)
  \once \override LaissezVibrerTie.details.note-head-gap = #(- 0.2 (/ further 2))
  \once \override LaissezVibrerTie.extra-offset = #(cons (/ further 2) 0)
#})

\relative c' {
  \extendLV #2.5
  e8 \laissezVibrer r16 r8
}