On 11/21/2017 8:28 AM, Caagr98 wrote:
In the attached image, it looks like several LVs streched to the barline. 
However, if I simply try to write the notes with LVs, the arc is ridiculously 
short (see second image). How can I make that look proper?

I could replace it with a pedal, but I want to replicate it as faitfully as 
possible.


I don't need to do this often, but this code I saved from a while ago on the mailing list - how does this look?
(see attached)

%%%%
#(define factor 2)

#(define (enlarged-extent-laissez-vibrer::print grob)
  (let* ((stil (laissez-vibrer::print grob))
         (stil-ext (ly:stencil-extent stil X))
         (stil-length (interval-length stil-ext))
         (new-stil-length (* stil-length factor))
         (scale-factor (/ new-stil-length stil-length))
         (new-stil (ly:stencil-scale stil scale-factor 1))
         (new-stil-ext (ly:stencil-extent new-stil X))
         (x-corr (- (car stil-ext) (car new-stil-ext))))
  (ly:stencil-translate-axis
     new-stil
     x-corr
     X)))

#(assoc-set! (assoc-ref all-grob-descriptions 'LaissezVibrerTie)
'stencil enlarged-extent-laissez-vibrer::print)

\relative c' {
        <c e g c>\laissezVibrer
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to