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. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user