pitchtools.NamedChromaticPitchClass

Inheritance diagram of abjad.tools.pitchtools.NamedChromaticPitchClass.NamedChromaticPitchClass.NamedChromaticPitchClass

class abjad.tools.pitchtools.NamedChromaticPitchClass.NamedChromaticPitchClass.NamedChromaticPitchClass(arg)[source]

New in version 2.0.

Abjad model of named chromatic pitch-class:

abjad> pitchtools.NamedChromaticPitchClass('cs')
NamedChromaticPitchClass('cs')

Named chromatic pitch-classes are immutable.

Read-only Properties

NamedChromaticPitchClass.numbered_chromatic_pitch_class[source]

Read-only numbered chromatic pitch-class:

abjad> named_chromatic_pitch_class = pitchtools.NamedChromaticPitchClass('cs')
abjad> named_chromatic_pitch_class.numbered_chromatic_pitch_class
NumberedChromaticPitchClass(1)

Return numbered chromatic pitch-class.

Methods

NamedChromaticPitchClass.apply_accidental(accidental)[source]

Apply accidental:

abjad> named_chromatic_pitch_class = pitchtools.NamedChromaticPitchClass('cs')
abjad> named_chromatic_pitch_class.apply_accidental('qs')
NamedChromaticPitchClass('ctqs')

Return named chromatic pitch-class.

NamedChromaticPitchClass.transpose(melodic_diatonic_interval)[source]

Transpose named chromatic pitch-class by melodic_diatonic_interval:

abjad> named_chromatic_pitch_class = pitchtools.NamedChromaticPitchClass('cs')
abjad> named_chromatic_pitch_class.transpose(pitchtools.MelodicDiatonicInterval('major', 2))
NamedChromaticPitchClass('ds')

Return named chromatic pitch-class.

Special Methods

NamedChromaticPitchClass.__abs__()[source]
NamedChromaticPitchClass.__add__(melodic_diatonic_interval)[source]
NamedChromaticPitchClass.__delattr__()

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

Note

Inherited from __builtin__.object

NamedChromaticPitchClass.__eq__(arg)

Initialize new object from arg and evaluate comparison attributes.

Return boolean.

NamedChromaticPitchClass.__float__()[source]
NamedChromaticPitchClass.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NamedChromaticPitchClass.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

NamedChromaticPitchClass.__hash__()

Note

Inherited from pitchtools._PitchClass

NamedChromaticPitchClass.__int__()[source]
NamedChromaticPitchClass.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NamedChromaticPitchClass.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NamedChromaticPitchClass.__ne__(arg)

Initialize new object from arg and evaluate comparison attributes.

Return boolean.

NamedChromaticPitchClass.__repr__()[source]
NamedChromaticPitchClass.__setattr__()

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

Note

Inherited from __builtin__.object

NamedChromaticPitchClass.__str__()[source]
NamedChromaticPitchClass.__sub__(arg)[source]

Table Of Contents

This Page