PitchClass

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.pitch" { graph [label="abjad.pitch"]; node [color=1]; "abjad.pitch.NamedPitchClass.NamedPitchClass" [URL="../api/abjad/pitch/NamedPitchClass.html#abjad.pitch.NamedPitchClass.NamedPitchClass", label="Named\nPitch\nClass", target=_top]; "abjad.pitch.NumberedPitchClass.NumberedPitchClass" [URL="../api/abjad/pitch/NumberedPitchClass.html#abjad.pitch.NumberedPitchClass.NumberedPitchClass", label="Numbered\nPitch\nClass", target=_top]; "abjad.pitch.PitchClass.PitchClass" [URL="../api/abjad/pitch/PitchClass.html#abjad.pitch.PitchClass.PitchClass", color=black, fontcolor=white, label="Pitch\nClass", shape=oval, style="bold, filled", target=_top]; "abjad.pitch.PitchClass.PitchClass" -> "abjad.pitch.NamedPitchClass.NamedPitchClass"; "abjad.pitch.PitchClass.PitchClass" -> "abjad.pitch.NumberedPitchClass.NumberedPitchClass"; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/pitch/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/pitch/../system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjad.pitch.PitchClass.PitchClass"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

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.