Construct a new interval.
Extended monzo representing the pitch information.
Formatting type.
Optional name: stringArbitrary name for the interval, usually a short-form without a cents offset.
Optional options: IntervalOptionsFormatting options.
Convert the interval to another type.
The new formatting type.
Optional options: IntervalOptionsNew formatting options.
The interval with the new formatting type and options.
Compare this interval with another.
Another interval.
Result < 0 if other is larger than this. Result > 0 if other is smaller than this. Result == 0 if other is equal to this in size.
Check if this interval has the same size as another.
Another interval.
true if the intervals are of equal size.
Merge existing formatting options with new ones.
New options. Takes priority over existing keys.
The interval with the new formatting options.
Check for strict equality between this and another interval.
Another interval.
true if the intervals share the same type, options, name, monzo vector, residual and cents offset.
Format the interval according the interval type and formatting options. Also known as reverse parsing. May produce composite lines if there is no other option. May fall back to cents if composites are not allowed.
The interval formatted as a string.
Prints warnings if fallback formats are triggered.
Generated using TypeDoc
Musical interval with preferred text formatting. Used for scale lines in format-aware scale generation. Note that the line type and formatting options are preferences and cannot always be enforced.