lilypond-user
[Top][All Lists]
Advanced

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

Passing arguments to grob-transformer


From: Leo Correia de Verdier
Subject: Passing arguments to grob-transformer
Date: Sat, 18 Jun 2022 00:24:27 +0200

Dear list!
I’m quite likely just being somewhat dim, but is there a way to pass additional 
arguments to a function used by grob-transformer (or any callback for that 
matter)?
 Would it be possible to do something equivalent to this following using an 
override to the stencil using grob-transformer?

\version "2.23.7"

#(define elongate (lambda (grob amt)
                    (let ((stil (ly:grob-property grob 'stencil)))
                      (ly:grob-set-property! grob 'stencil (ly:stencil-scale 
stil 1 amt)))))

{  \override Accidental.before-line-breaking = #(lambda (grob) (elongate grob 
2))
   cis'2 }

Thanks!
/Leo


reply via email to

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