Next: Quoting other voices, Previous: Metronome marks, Up: Writing parts
In an orchestral score, instrument names are printed at the left side of the staves.
This can be achieved by setting Staff
.instrumentName
and
Staff
.shortInstrumentName
, or
PianoStaff
.instrumentName
and
PianoStaff
.shortInstrumentName
. This will print text
before the start of the staff. For the first staff,
instrumentName
is used. If set, shortInstrumentName
is
used for the following staves.
\set Staff.instrumentName = "Ploink " \set Staff.shortInstrumentName = "Plk " c1 \break c''
You can also use markup texts to construct more complicated instrument names, for example
\set Staff.instrumentName = \markup { \column { "Clarinetti" \line { "in B" \smaller \flat } } } c''1
As instrument names are centered by default, multi line names
are better entered using \center-align
:
{ << \new Staff { \set Staff.instrumentName = \markup \center-align { Clarinetti \line { "in B" \smaller \flat } } c''1 } \new Staff { \set Staff.instrumentName = "Vibraphone" c''1 } >> }
For longer instrument names, it may be useful to increase the
indent
setting in the \layout
block.
Short instrument names, printed before the systems following the first
one, are also centered by default, in a space which width is given by
the short-indent
variable of the \layout
block.
To add instrument names to other contexts (such as
GrandStaff
, ChoirStaff
, or StaffGroup
), the
engraver must be added to that context.
\layout{ \context {\GrandStaff \consists "Instrument_name_engraver"} }
More information about adding and removing engravers can be found in Modifying context plug-ins.
Instrument names may be changed in the middle of a piece,
\set Staff.instrumentName = "First" \set Staff.shortInstrumentName = "one" c1 c c c \break c1 c c c \break \set Staff.instrumentName = "Second" \set Staff.shortInstrumentName = "two" c1 c c c \break c1 c c c \break
Notation Reference: Modifying context plug-ins.
Snippets: Staff
Internals Reference: InstrumentName,
PianoStaff, Staff.
Next: Quoting other voices, Previous: Metronome marks, Up: Writing parts
This page is for LilyPond-2.11.40 (development-branch).
Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.
Your suggestions for the documentation are welcome.