PitchClass¶
-
abstract class
abjad.pitch.PitchClass.
PitchClass
(argument)¶ Abstract pitch-class.
Attributes Summary
__float__
Coerce to float. __format__
Formats pitch-class. __ge__
Return a >= b. __gt__
Return a > b. __le__
Return a <= b. __lt__
Is true when pitch-class is less than argument. accidental
Gets accidental of pitch-class. invert
Inverts pitch-class about axis. multiply
Multiplies pitch-class by n. pitch_class_label
Gets pitch-class label of pitch-class. transpose
Transposes pitch-class by index n. Special methods
-
(
AbjadValueObject
).__copy__
(*arguments)¶ Copies Abjad value object.
Returns new Abjad value object.
-
(
AbjadValueObject
).__eq__
(argument)¶ Is true when all initialization values of Abjad value object equal the initialization values of
argument
.Returns true or false.
-
__float__
()¶ Coerce to float.
Returns float.
-
__format__
(format_specification='')¶ Formats pitch-class.
Set format_specification to ‘’, ‘lilypond’ or ‘storage’.
Returns string.
-
__ge__
(other, NotImplemented=NotImplemented)¶ Return a >= b. Computed by @total_ordering from (not a < b).
-
__gt__
(other, NotImplemented=NotImplemented)¶ Return a > b. Computed by @total_ordering from (not a < b) and (a != b).
-
(
AbjadValueObject
).__hash__
()¶ Hashes Abjad value object.
Returns integer.
-
__le__
(other, NotImplemented=NotImplemented)¶ Return a <= b. Computed by @total_ordering from (a < b) or (a == b).
-
abstract
__lt__
(argument)¶ Is true when pitch-class is less than argument.
Returns true or false.
-
(
AbjadObject
).__repr__
()¶ Gets interpreter representation of Abjad object.
Returns string.
Methods
-
abstract
invert
(axis=None)¶ Inverts pitch-class about axis.
Returns new pitch-class.
-
abstract
multiply
(n=1)¶ Multiplies pitch-class by n.
Returns new pitch-class.
-
abstract
transpose
(n=0)¶ Transposes pitch-class by index n.
Returns new pitch-class.
Read-only properties
-
abstract
accidental
¶ Gets accidental of pitch-class.
-
abstract
pitch_class_label
¶ Gets pitch-class label of pitch-class.
-