Interval¶
-
abstract class
abjad.pitch.Interval.
Interval
(argument)¶ Abstract interval.
Attributes Summary
__abs__
Gets absolute value of interval. __float__
Coerce to semitones as float. __ge__
Return a >= b. __gt__
Return a > b. __le__
Return a <= b. __lt__
Is true when interval is less than argument. __neg__
Negates interval. __str__
Gets string representation of interval. cents
Gets cents of interval. direction_number
Gets direction number of interval interval_class
Gets interval-class of interval. number
Gets number of interval. octaves
Gets octaves of interval. semitones
Gets semitones of interval. transpose
Transposes pitch_carrier by interval. Special methods
-
abstract
__abs__
()¶ Gets absolute value of interval.
Returns new interval.
-
(
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 is less than argument.
Returns true or false.
-
abstract
__neg__
()¶ Negates interval.
Returns interval.
-
(
AbjadObject
).__repr__
()¶ Gets interpreter representation of Abjad object.
Returns string.
-
__str__
()¶ Gets string representation of interval.
Returns string.
Methods
-
transpose
(pitch_carrier)¶ Transposes pitch_carrier by interval.
Returns new pitch carrier.
Read-only properties
-
cents
¶ Gets cents of interval.
Returns nonnegative number.
-
abstract
direction_number
¶ Gets direction number of interval
Returns integer.
-
abstract
interval_class
¶ Gets interval-class of interval.
Returns interval-class.
-
abstract
number
¶ Gets number of interval.
Returns integer.
-
abstract
octaves
¶ Gets octaves of interval.
Returns nonnegative number.
-
abstract
semitones
¶ Gets semitones of interval.
Returns integer or float.
-
abstract