Optionaloptions: HarmonicEntropyOptionsRényi order.
Upper bound of tabulation in cents.
Lower bound of tabulation in cents.
Max height of rationals (Benedetti or Wilson depending on series).
Whether to normalize the result by Hartley entropy.
Options associated with this harmonic entropy calculator.
Tabulation step size in cents.
Gaussian frequency deviation (default 0.01).
Series of rationals to use.
Calculate the harmonic entropy of a frequency ratio.
Ratio-like input accepted by xen-dev-utils Fraction parsing. A numeric value is treated as a ratio (for example, 1.5 means 3/2).
Harmonic entropy of the input in natural units.
Serialize the entropy calculator to a JSON-compatible object.
Serialized payload with type set to 'EntropyCalculator'.
StaticreviverRevive an EntropyCalculator instance produced by EntropyCalculator.toJSON(). Return everything else as-is.
Intended usage:
const data = JSON.parse(serializedData, EntropyCalculator.reviver);
Property name.
Property value.
Deserialized EntropyCalculator instance or other data without modifications.
Construct a harmonic entropy calculator for individual musical intervals.
The constructor computes both ratio and entropy tables immediately.