|
|
GNU LilyPond-- -- |
||||||||||
|
Node:Changing context definitions, Next:Defining new contexts, Previous:Engravers and performers, Up:Interpretation context Changing context definitionsThe most common way to define a context is by extending an existing context. You can change an existing context from the paper block by first initializing a translator with an existing context identifier: \paper {
\translator {
context-identifier
}
}
Then you can add and remove engravers using the following syntax: \remove engravername
\consists engravername
Here engravername is a string, the name of an engraver in the system. \score {
\notes {
c'4 c'4
}
\paper {
\translator {
\StaffContext
\remove Clef_engraver
}
}
}
You can also set properties in a translator definition. The syntax is as follows: propname = value
propname \set grob-propname = pvalue
propname \override grob-propname = pvalue
propname \revert grob-propname
propname is a string, grob-propname a symbol, value
and To simplify editing translators, all standard contexts have standard
identifiers called name |
||||||||||
|
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.6.6 (stable-branch) by