lilypond-user
[Top][All Lists]
Advanced

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

Re: Is there a get-context procedure?


From: Paul Morris
Subject: Re: Is there a get-context procedure?
Date: Wed, 24 Sep 2014 21:05:57 -0700 (PDT)

Richard Shann-2 wrote
> The chordRootNamer procedure (which is itself a ChordNames context
> property) is not passed the context as a parameter, so my question is
> how do I reference the context? Is there some variable or procedure for
> accessing the ChordNames context (or perhaps it should be the context
> that the call has been made in, if that makes sense)?

Hi Richard, 
I don't know of any.  The way I've done this kind of thing (access a context
and context property) is from a custom engraver that is part of a given
context and so it has access to it.  Perhaps a custom Scheme engraver that
takes its cues from the Chord_name_engraver would work?  

Another possibility might be to use a custom grob property instead, and
then, for example, you can access that custom value from the grob as you
override/modify other properties of that grob. (Maybe say resizing a grob's
stencil by a given amount stored in the custom grob property, if that works
and will do what you want?)

Maybe that helps,
-Paul




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Is-there-a-get-context-procedure-tp166768p166781.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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