Pitch

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.NamedPitch.NamedPitch" [URL="../api/abjad/pitch/NamedPitch.html#abjad.pitch.NamedPitch.NamedPitch", label="Named\nPitch", target=_top]; "abjad.pitch.NumberedPitch.NumberedPitch" [URL="../api/abjad/pitch/NumberedPitch.html#abjad.pitch.NumberedPitch.NumberedPitch", label="Numbered\nPitch", target=_top]; "abjad.pitch.Pitch.Pitch" [URL="../api/abjad/pitch/Pitch.html#abjad.pitch.Pitch.Pitch", color=black, fontcolor=white, label=Pitch, shape=oval, style="bold, filled", target=_top]; "abjad.pitch.Pitch.Pitch" -> "abjad.pitch.NamedPitch.NamedPitch"; "abjad.pitch.Pitch.Pitch" -> "abjad.pitch.NumberedPitch.NumberedPitch"; } 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.Pitch.Pitch"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

abstract class abjad.pitch.Pitch.Pitch(argument, accidental=None, arrow=None, octave=None)

Abstract pitch.


Attributes Summary

__float__ Coerce to float.
__format__ Formats pitch.
__ge__ Return a >= b.
__gt__ Return a > b.
__illustrate__ Illustrates pitch.
__le__ Return a <= b.
__lt__ Is true when pitch is less than argument.
arrow Gets arrow of pitch.
from_hertz Creates pitch from hertz.
get_name Gets name of pitch according to locale.
hertz Gets frequency of pitch in Hertz.
invert Inverts pitch about axis.
multiply Multiplies pitch by n.
name Gets name of pitch.
number Gets number of pitch.
octave Gets octave of pitch.
pitch_class Gets pitch-class of pitch.
transpose Transposes pitch 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.

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.

__illustrate__()

Illustrates pitch.

Returns LilyPond file.

__le__(other, NotImplemented=NotImplemented)

Return a <= b. Computed by @total_ordering from (a < b) or (a == b).

abstract __lt__(argument)

Is true when pitch is less than argument.

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Methods

abstract get_name(locale=None)

Gets name of pitch according to locale.

Returns string.

abstract invert(axis=None)

Inverts pitch about axis.

Interprets axis of none equal to middle C.

Returns new pitch.

abstract multiply(n=1)

Multiplies pitch by n.

Returns new pitch.

abstract transpose(n)

Transposes pitch by index n.

Returns new pitch.


Class & static methods

abstract classmethod from_hertz(hertz)

Creates pitch from hertz.

Returns new pitch.


Read-only properties

abstract arrow

Gets arrow of pitch.

abstract hertz

Gets frequency of pitch in Hertz.

Returns float.

abstract name

Gets name of pitch.

Returns string.

abstract number

Gets number of pitch.

Returns number.

abstract octave

Gets octave of pitch.

Returns octave.

abstract pitch_class

Gets pitch-class of pitch.

Returns pitch-class.