|
|
GNU LilyPondWelcome to the home of the GNU Music Typesetter |
||||||||||
|
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-propnamepropname is a string, grob-propname a symbol, value and pvalue are Scheme expressions. These type of property
assignments happen before interpretation starts, so a \property
command will override any predefined settings.
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 lilypond@packages.debian.org Copyright (c) 1997--2001 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.4.12 (stable-branch) by