![]() |
GNU LilyPond-- -- |
||||||||||
|
Node:Context evaluation, Next:Context properties, Previous:Default contexts, Up:Interpretation context Context evaluationScheme code can be used to modify contexts. The syntax for this is \applycontext function function should be a Scheme function taking a single argument, being the context to apply it with. The following code will print the current bar number on the standard output during the compile. \applycontext #(lambda (tr) (format #t "\nWe were called in barnumber ~a.\n" (ly:get-context-property tr 'currentBarNumber))) |
||||||||||
Go back to index of LilyPond.
Please send GNU LilyPond questions and comments to lilypond-user@gnu.org. Please send comments on these web pages to (address unknown) Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. |
This page was built from LilyPond-1.7.14 (development-branch) by