Create an interval from a value in cents. Prefer fromCents() or fromRatio() for clarity.
Size in cents (1200 = octave); negative for a descending interval.
The interval as a decimal frequency ratio (e.g. 1.5 for a perfect fifth).
The interval in semitones (cents / 100). May be fractional for microtonal intervals.
Compare two intervals within a tolerance.
The interval to compare against.
Maximum allowed difference in cents (default: 1¢).
Reduce the interval to a single octave (0–1200 cents). Useful for pitch-class equivalence and scale analysis.
Return the descending (negative) form of this interval. Useful for voice leading and downward transposition.
StaticfromStaticfrom
A pitch interval, held as its size in cents.