scoretools.InstrumentationSpecifier

Inheritance diagram of abjad.tools.scoretools.InstrumentationSpecifier.InstrumentationSpecifier.InstrumentationSpecifier

class abjad.tools.scoretools.InstrumentationSpecifier.InstrumentationSpecifier.InstrumentationSpecifier(performers=None)[source]

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 Properties

InstrumentationSpecifier.instrument_count[source]

Read-only number of instruments in score:

abjad> instrumentation_specifier.instrument_count
3

Return nonnegative integer.

InstrumentationSpecifier.instruments[source]

Read-only list of instruments derived from performers:

abjad> instrumentation_specifier.instruments
[Flute(), AltoFlute(), Guitar()]

Return list.

InstrumentationSpecifier.performer_count[source]

Read-only number of performers in score:

abjad> instrumentation_specifier.performer_count
2

Return nonnegative integer.

InstrumentationSpecifier.performer_name_string[source]

Read-only string of performer names:

abjad> instrumentation_specifier.performer_name_string
'Flute, Guitar'

Return string.

Read/write Properties

InstrumentationSpecifier.performers[source]

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.

Special Methods

InstrumentationSpecifier.__delattr__()

x.__delattr__(‘name’) <==> del x.name

Note

Inherited from __builtin__.object

InstrumentationSpecifier.__eq__(other)[source]
InstrumentationSpecifier.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

InstrumentationSpecifier.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

InstrumentationSpecifier.__hash__() <==> hash(x)

Note

Inherited from __builtin__.object

InstrumentationSpecifier.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

InstrumentationSpecifier.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

InstrumentationSpecifier.__ne__(other)[source]
InstrumentationSpecifier.__repr__()

Interpreter representation of Abjad object defaulting to class name, mandatory arguments, keyword arguments.

Return string.

Note

Inherited from abctools.AbjadObject

InstrumentationSpecifier.__setattr__()

x.__setattr__(‘name’, value) <==> x.name = value

Note

Inherited from __builtin__.object

InstrumentationSpecifier.__str__() <==> str(x)

Note

Inherited from __builtin__.object

Table Of Contents

This Page