Bases: abjad.core.interface._Interface, abjad.core.grobhandler._GrobHandler, abjad.core.settinghandler._ContextSettingHandler, abjad.spanner.receptor._SpannerReceptor
Receive Abjad Instrument spanner. Handle the LilyPond InstrumentName grob.
abjad> t = Staff(construct.scale(4))
abjad> t.instrument
<InstrumentInterface>
abjad> t.instrument.color = 'red'
abjad> print t.format
\new Staff \with {
\override InstrumentName #'color = #red
} {
c'8
d'8
e'8
f'8
}
Read / write LilyPond instrumentName context setting.
abjad> t = Staff(construct.scale(4))
abjad> t.instrument.name = 'Violini I'
abjad> print t.format
\new Staff \with {
instrumentName = "Violini I"
} {
c'8
d'8
e'8
f'8
}
Read-only list of LilyPond context settings picked up at format-time.
abjad> t = Staff(construct.scale(4))
abjad> t.instrument.name = 'Violini I'
abjad> t.instrument.short_name = 'Vni. I'
abjad> t.instrument.settings
['instrumentName = "Violini I"', 'shortInstrumentName = "Vni. I"']
Read / write LilyPond shortInstrumentName context setting.
abjad> t = Staff(construct.scale(4))
abjad> t.instrument.short_name = 'Vni. I'
abjad> print t.format
\new Staff \with {
shortInstrumentName = "Vni. I"
} {
c'8
d'8
e'8
f'8
}