Returns a FoscInterval.
Abstract interval.
| isNamedIntervalAbbreviation | Is true when argument is a named interval abbreviation. Otherwise false. |
| isNamedQualityAbbreviation | Is true when argument is a named-interval quality abbreviation. Otherwise false. |
| [(abjad:](#(abjad:) | cents) |
| abs | Gets absolute value of interval. |
| float | Coerce to float. |
| < | Is true when interval is less than argument. |
| neg | Negates interval. |
| str | Gets string representation of interval. |
| transpose | Transposes pitch_carrier by interval. |
Example
a = FoscInterval(4);
a.interval;4
a.number;4Is true when argument is a named interval abbreviation. Otherwise false.
Underlying regex: ^([+,-]?)(M|m|P|aug|dim)(\\d+)$
Returns true or false.
Example
FoscInterval.isNamedIntervalAbbreviation("+M9");trueIs true when argument is a named-interval quality abbreviation. Otherwise false.
Underlying regex: “^(M|m|P|aug|dim)$”
Returns true or false.
Example
FoscInterval.isNamedQualityAbbreviation("aug");truecents)
Gets cents of interval.
Returns nonnegative number.
Gets absolute value of interval.
Returns new interval.
Coerce to float.
Returns float.
Is true when interval is less than argument.
Returns true or false.
Negates interval.
Returns interval.
Gets string representation of interval.
Returns string.
Transposes pitch_carrier by interval.
Returns new pitch carrier.