lilypond-user
[Top][All Lists]
Advanced

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

Re: chords as markups?


From: David Kastrup
Subject: Re: chords as markups?
Date: Thu, 06 Sep 2012 07:59:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

"address@hidden" <address@hidden> 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




reply via email to

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