Next: Engravers explained, Previous: Contexts explained, Up: Contexts and engravers
There can be only one top level context: the
Score
context. This is created with the \score
command,
or, in simple scores, it is created automatically.
For scores with only one voice and one staff, the
Voice
and Staff
contexts may be left to be
created automatically, but for more complex scores it is
necessary to create them by hand.
The simplest command that does this is \new
.
It is prepended to a music expression, for example
\new type music-expression
where type is a context name (like Staff
or
Voice
). This command creates a new context, and starts
interpreting the music-expression within that context.
Note that there is no \new Score
command;
the single top-level Score
context is introduced
with \score
.
The \new
command may also give a identifying name to the
context to distinguish it from other contexts of the same type,
\new type = id music-expression
Note the distinction between the name of the context type,
Staff
, Voice
, etc, and
the identifying name of a particular instance of that type,
which can be any sequence of letters invented by the user.
The identifying name is used to refer back to that particular
instance of a context. We saw this in use in the section on
lyrics in Voices and vocals.
Next: Engravers explained, Previous: Contexts explained, Up: Contexts and engravers
Esta página corresponde a LilyPond-2.11.40 (rama de desarrollo).
Informe de los fallos a http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.
Se agradecen las sugerencias para la documentación.
Other languages: français.