pitchtools.NumberedChromaticPitchClass

Inheritance diagram of abjad.tools.pitchtools.NumberedChromaticPitchClass.NumberedChromaticPitchClass.NumberedChromaticPitchClass

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

New in version 2.0.

Abjad model of a numbered chromatic pitch-class:

abjad> pitchtools.NumberedChromaticPitchClass(13)
NumberedChromaticPitchClass(1)

Numbered chromatic pitch-classes are immutable.

Methods

NumberedChromaticPitchClass.apply_accidental(accidental=None)[source]

Emit new numbered chromatic pitch-class as sum of self and accidental.

NumberedChromaticPitchClass.invert()[source]

Invert pitch-class.

NumberedChromaticPitchClass.multiply(n)[source]

Multiply pitch-class by n.

NumberedChromaticPitchClass.transpose(n)[source]

Transpose pitch-class by n.

Special Methods

NumberedChromaticPitchClass.__abs__()[source]
NumberedChromaticPitchClass.__add__(arg)[source]

Addition defined against melodic chromatic intervals only.

NumberedChromaticPitchClass.__delattr__()

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

Note

Inherited from __builtin__.object

NumberedChromaticPitchClass.__eq__(arg)

Initialize new object from arg and evaluate comparison attributes.

Return boolean.

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

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NumberedChromaticPitchClass.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

NumberedChromaticPitchClass.__hash__()

Note

Inherited from pitchtools._PitchClass

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

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NumberedChromaticPitchClass.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NumberedChromaticPitchClass.__ne__(arg)

Initialize new object from arg and evaluate comparison attributes.

Return boolean.

NumberedChromaticPitchClass.__neg__()[source]
NumberedChromaticPitchClass.__repr__()[source]
NumberedChromaticPitchClass.__setattr__()

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

Note

Inherited from __builtin__.object

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

Subtraction defined against both melodic chromatic intervals and against other pitch-classes.

Table Of Contents

This Page