IntervalClass

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.IntervalClass.IntervalClass" [URL="../api/abjad/pitch/IntervalClass.html#abjad.pitch.IntervalClass.IntervalClass", color=black, fontcolor=white, label="Interval\nClass", shape=oval, style="bold, filled", target=_top]; "abjad.pitch.NamedIntervalClass.NamedIntervalClass" [URL="../api/abjad/pitch/NamedIntervalClass.html#abjad.pitch.NamedIntervalClass.NamedIntervalClass", label="Named\nInterval\nClass", target=_top]; "abjad.pitch.NamedInversionEquivalentIntervalClass.NamedInversionEquivalentIntervalClass" [URL="../api/abjad/pitch/NamedInversionEquivalentIntervalClass.html#abjad.pitch.NamedInversionEquivalentIntervalClass.NamedInversionEquivalentIntervalClass", label="Named\nInversion\nEquivalent\nInterval\nClass", target=_top]; "abjad.pitch.NumberedIntervalClass.NumberedIntervalClass" [URL="../api/abjad/pitch/NumberedIntervalClass.html#abjad.pitch.NumberedIntervalClass.NumberedIntervalClass", label="Numbered\nInterval\nClass", target=_top]; "abjad.pitch.NumberedInversionEquivalentIntervalClass.NumberedInversionEquivalentIntervalClass" [URL="../api/abjad/pitch/NumberedInversionEquivalentIntervalClass.html#abjad.pitch.NumberedInversionEquivalentIntervalClass.NumberedInversionEquivalentIntervalClass", label="Numbered\nInversion\nEquivalent\nInterval\nClass", target=_top]; "abjad.pitch.IntervalClass.IntervalClass" -> "abjad.pitch.NamedIntervalClass.NamedIntervalClass"; "abjad.pitch.IntervalClass.IntervalClass" -> "abjad.pitch.NumberedIntervalClass.NumberedIntervalClass"; "abjad.pitch.NamedIntervalClass.NamedIntervalClass" -> "abjad.pitch.NamedInversionEquivalentIntervalClass.NamedInversionEquivalentIntervalClass"; "abjad.pitch.NumberedIntervalClass.NumberedIntervalClass" -> "abjad.pitch.NumberedInversionEquivalentIntervalClass.NumberedInversionEquivalentIntervalClass"; } 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.IntervalClass.IntervalClass"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

abstract class abjad.pitch.IntervalClass.IntervalClass(argument)

Abstract interval-class.


Attributes Summary

__abs__ Gets absolute value of interval-class.
__add__ Adds argument to interval-class.
__float__ Coerce to semitones as float.
__ge__ Return a >= b.
__gt__ Return a > b.
__le__ Return a <= b.
__lt__ Is true when interval-class is less than argument.
__str__ Gets string representation of interval-class.
__sub__ Subtracts argument from interval-class.
number Gets number of interval-class.
transpose Transposes pitch_carrier by interval-class.

Special methods

__abs__()

Gets absolute value of interval-class.

Returns new interval-class.

abstract __add__(argument)

Adds argument to interval-class.

Returns new interval-class.

(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 semitones as float.

Returns float.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to '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 interval-class is less than argument.

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.

__str__()

Gets string representation of interval-class.

Returns string.

abstract __sub__(argument)

Subtracts argument from interval-class.

Returns new interval-class.


Methods

transpose(pitch_carrier)

Transposes pitch_carrier by interval-class.

Returns new pitch carrier.


Read-only properties

number

Gets number of interval-class.

Returns number.