New in version 2.5.
Abjad model of score instrumentation:
abjad> flute = scoretools.Performer('Flute')
abjad> flute.instruments.append(instrumenttools.Flute())
abjad> flute.instruments.append(instrumenttools.AltoFlute())
abjad> guitar = scoretools.Performer('Guitar')
abjad> guitar.instruments.append(instrumenttools.Guitar())
abjad> instrumentation_specifier = scoretools.InstrumentationSpecifier([flute, guitar])
abjad> instrumentation_specifier
InstrumentationSpecifier(performers=PerformerInventory([Performer(name='Flute', instruments=InstrumentInventory([Flute(), AltoFlute()])), Performer(name='Guitar', instruments=InstrumentInventory([Guitar()]))]))
Return instrumentation specifier.
Read-only number of instruments in score:
abjad> instrumentation_specifier.instrument_count
3
Return nonnegative integer.
Read-only list of instruments derived from performers:
abjad> instrumentation_specifier.instruments
[Flute(), AltoFlute(), Guitar()]
Return list.
Read / write list of performers in score:
abjad> instrumentation_specifier.performers
PerformerInventory([Performer(name='Flute', instruments=InstrumentInventory([Flute(), AltoFlute()])), Performer(name='Guitar', instruments=InstrumentInventory([Guitar()]))])
Return list.
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Abjad objects by default do not implement this method.
Raise exception
Note
Inherited from abctools.AbjadObject
Note
Inherited from __builtin__.object
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Interpreter representation of Abjad object defaulting to class name, mandatory arguments, keyword arguments.
Return string.
Note
Inherited from abctools.AbjadObject
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object
Note
Inherited from __builtin__.object