Construct a fractional monzo with multiplicative residue.
Exponent of the seconds unit.
Fractional monzo part.
Optionalresidual: FractionMultiplicative residue that is too complex to fit in the vector part.
Number of components in the monzo vector part.
The first monzo component. The exponent of 2.
Linear space absolute value of the time monzo.
The time monzo unchanged or negated if negative originally.
Find the closest approximation of the time monzo in a harmonic series.
Denominator of the harmonic series.
The closest approximant in the series.
Simplify the time monzo using the given threshold.
Optionaleps: numberError threshold. Defaults to 0.001.
Simple approximation of the time monzo.
Find the closest approximation of the time monzo in a subharmonic series.
Numerator of the subharmonic series.
The closest approximant in the series.
Obtain an AST node representing the time monzo as a cents literal.
Cents literal or a hacky real cents literal if necessary.
Obtain an AST node representing the time monzo as a decimal.
Decimal literal or a real decimal literal if necessary.
Obtain an AST node representing the time monzo as a fraction literal.
Optionalnode: FractionLiteralReference node to infer formatting from.
Fraction literal or undefined if representation fails.
Obtain an AST node representing the time monzo as an integer literal.
Integer literal or undefined if representation fails.
Obtain an AST node representing the time monzo as a monzo literal suitable for interchange between programs.
Monzo literal.
Obtain an AST node representing the time monzo as a monzo literal.
Monzo literal.
Obtain an AST node representing the time monzo as a NEDJI literal.
Optionalnode: NedjiLiteralReference node to infer formatting from.
NEDJI literal or undefined if representation fails.
Obtain a pseudo-AST node representing the time monzo as a radical.
Radical literal or undefined if representation fails.
Factorize the time monzo into a Map instance with prime numbers as keys and their multiplicity as values.
A sparse monzo.
Calculate the geometric inverse of the time monzo.
A time monzo whose dot product with this one is unitary.
Obtain a convergent of this time monzo.
How many continued fraction coefficients to use after the whole part.
Approximation of the time monzo.
Return a pitch-space negative of the time monzo.
The frequency-space inverse of the time monzo.
Check if the time monzo represents a finite sum of powers of ten.
true if the time monzo represents a decimal number ignoring units of time.
Check if the time monzo represents a generic EDJI interval.
true if the time monzo can be interpreted as pitch-space fraction of a frequency-space fraction.
Check if the time monzo represents a musical fraction or fractional amount of time or frequency.
true if the time monzo can be interpreted as a ratio in frequency-space.
Check if the time monzo represents a whole number.
true if the time monzo represents an integer ignoring units of time.
Check if the time monzo is a power of two in frequency space.
true if the time monzo is a power of two.
Check if the time monzo lacks units of time/frequency.
true if the time monzo isn't expressed in units of time.
Check if the time monzo represents a square root of a fraction or fractional amount of time or frequency.
true if the square of time monzo can be interpreted as a ratio in frequency-space.
Check if the time monzo represents the number one.
true if the time monzo represents musical unison ignoring units of time.
Return the frequency-space negative of the time monzo.
The frequency-space negative of the time monzo.
Pitch space absolute value of the time monzo.
The time monzo unchanged or inverted if less than one originally.
Obtain a higher prime tail of this time monzo.
Prime index with 2 at #0.
Multiplicative tail above the given limit.
Calculate the Tenney height of this time monzo ignoring units of time.
The natural logarithm of the Benedetti height
Convert the time monzo to cents.
Compute the size of the absolute value.
Size of the time monzo in cents.
Obtain an array of the time monzo representing a continued fraction. The first element always contains the whole part.
Array of continued fraction coefficients.
Convert the time monzo to pitch-space fraction of a frequency-space fraction.
Prefer a positive fraction of the equave.
Pair of the pitch-space fraction and the equave as a frequency-space fraction.
Serialize the time monzo to a JSON compatible object.
The serialized object with property type set to 'TimeMonzo'.
Faithful string representation of the time monzo.
Domain of representation.
String that evaluates to the same value as this time monzo.
Convert a relative time monzo to cents. Covert an absolute time monzo to the size in cents of the scalar of its time unit.
Compute the size of the absolute value.
Size of the time monzo in cents.
Convert a relative time monzo to a real number representing a ratio of frequencies. Convert an absolute time monzo to the scalar of its time unit.
A real number.
StaticfromCreate a scalar from an array of prime exponents.
Exponents of prime numbers starting from prime 2. Possibly fractional.
Scalar in the relative echelon.
StaticfromConstruct a time monzo from a harmonic.
Index of the harmonic with 1/1 starting from 1.
OptionalnumberOfComponents: numberNumber of components in the monzo vector part.
Time monzo representing the harmonic.
StaticfromConstruct a time monzo from a rational number.
Numerator of the number.
Denominator of the number.
OptionalnumberOfComponents: numberNumber of components in the monzo vector part.
Time monzo representing the just intonation interval.
StaticfromConstruct a time monzo from a pitch-space fraction of a frequency-space fraction.
Fraction of the equave measured in pitch-space.
Optionalequave: FractionValueEquave measured in frequency-space. Defaults to the octave (2/1).
OptionalnumberOfComponents: numberNumber of components in the monzo vector part.
Time monzo representing N-of-EDO (default) or a generic EDJI interval.
StaticfromConstruct a time monzo from a rational number.
Rational number to convert.
OptionalnumberOfComponents: numberNumber of components in the monzo vector part.
Time monzo representing the just intonation interval.
StaticfromCreate a scalar from a rational number of cents (1 cent = 1 centisemitone or 1200th of an octave).
Width of a musical interval in cents i.e. logarithmic size.
OptionalnumberOfComponents: numberScalar in the relative echelon.
StaticfromConstruct a time monzo from a value that's a rational multiple of 1 Hz.
Frequency measured in oscillations per second.
OptionalnumberOfComponents: numberNumber of components in the monzo vector part.
Time monzo representing the frequency.
StaticreviverRevive a TimeMonzo instance produced by TimeMonzo.toJSON(). Return everything else as is.
Intended usage:
const data = JSON.parse(serializedData, TimeMonzo.reviver);
Property name.
Property value.
Deserialized TimeMonzo instance or other data without modifications.
Fractional monzo with multiplicative residue measured in time-related units (usually Hz).
Used to represent the value of musical objects like 432Hz, 5/3 or 7\12 (N-of-EDO).