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 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.
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.
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.
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
Initialize new object from arg and evaluate comparison attributes.
Return boolean.
Note
Inherited from abctools.AttributeEqualityAbjadObject
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 pitchtools._PitchClass
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
Initialize new object from arg and evaluate comparison attributes.
Return boolean.
Note
Inherited from abctools.AttributeEqualityAbjadObject
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object