"m...@mikesolomon.org" <m...@mikesolomon.org> writes:

> not pretty, but effective...
>
> #(define (kludge grob)
>  (ly:grob-set-property! grob 'text "foo")
>  (ly:text-interface::print grob))
>
> \new ChordNames \chordmode {
>  a b c:7
>  \once \override ChordNames . ChordName #'stencil =
> #(ly:make-unpure-pure-container kludge (lambda (grob b e) (kludge grob)))
>  d
> }
>
> The reason we can't just override the text property is because it is
> junked and reset internally in LilyPond.
> The unpure-pure-container makes sure that the chord is taken into
> account in horizontal spacing calculations.  Anytime you override a
> stencil, try to use an unpure-pure-container.

Where is this documented in the user manuals?  Where in the code?

-- 
David Kastrup


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to