|
From: | tisimst |
Subject: | Re: Accessing Context Properties |
Date: | Thu, 25 Feb 2016 09:39:04 -0700 (MST) |
Abraham Lee <[hidden email]> writes:I have no idea what you want. Music functions are called when parsing
> All,
>
> In the docs are numerous sections that discuss how to modify context
> properties. This is not complicated. However, a handful of recent threads
> on the user list have got me wondering about the correct way(s) of
> _accessing_ these properties within, for example, a music function. The
> music function may or may not modify the same or another context property.
> If music functions are NOT the way to go, then what is preferred?
>
> Thanks, in advance, for all insights and instruction.
LilyPond source code. At that time, there are no contexts and no
context properties. Consequently, music functions have no way
whatsoever to read or modify context properties. All they can do is
create music expressions (typically overrides or applyContext calls,
possibly as context modifications) that contain callbacks of some form
that, when ultimately called during iteration of the music _expression_,
will be able to access actual properties.
So for your actual question, there is little insight and instruction to
be had.
[Prev in Thread] | Current Thread | [Next in Thread] |