Construct a time real.
Exponent of the seconds unit.
Multiplier of the time unit.
Linear space absolute value of the time real.
The time real unchanged or negated if negative originally.
Find the closest approximation of the time real in a harmonic series.
Denominator of the harmonic series.
The closest approximant in the series.
Simplify the time real using the given threshold.
Optionaleps: numberError threshold. Defaults to 0.001.
Simple approximation of the time real.
Find the closest approximation of the time real in a subharmonic series.
Numerator of the subharmonic series.
The closest approximant in the series.
Obtain an AST node representing the time real as a cents literal.
Cents literal or a hacky real cents literal if necessary.
Obtain an AST node representing the time real as a decimal.
Real decimal literal.
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 real as a monzo literal.
Boolean flag to use Hz basis for the absolute echelon.
Monzo literal.
Obtain a convergent of this time real.
How many continued fraction coefficients to use after the whole part.
Approximation of the time real.
Return a pitch-space negative of the time real.
The frequency-space inverse of the time real.
Check if the time real lacks units of time/frequency.
true if the time real isn't expressed in units of time.
Return the frequency-space negative of the time real.
The linear negative of the time real.
Pitch space absolute value of the time real.
The time real unchanged or inverted if less than one originally.
Return the frequency-space square root of the time real.
The pitch-space half of the time real.
Convert a relative scalar to cents.
Ignore the linear sign of of the scalar.
Size of this interval in cents.
Obtain an array of the time real representing a continued fraction. The first element always contains the whole part.
Array of continued fraction coefficients.
Serialize the time real to a JSON compatible object.
The serialized object with property type set to 'TimeReal'.
Faithful string representation of the time real.
Domain of representation.
String that evaluates to the same value as this time real.
Convert value to cents ignoring the time exponent.
Ignore the linear sign of of the scalar.
Size of this interval in cents (only makes sense if relative).
Convert a relative time real to a real number representing a ratio of frequencies. Convert an absolute time real to the scalar of its time unit.
A real number.
StaticfromCreate a real-valued scalar from cents (1 cent = 1 centisemitone or 1200th of an octave).
Width of a musical interval in cents i.e. logarithmic size.
Scalar in the relative echelon.
StaticfromCreate a real-valued frequency.
Frequency of a musical note measured in hertz.
Frequency value in the absolute echelon.
StaticfromCreate a real-valued scalar.
Linear value of the scalar.
Scalar in the relative echelon.
StaticreviverRevive a TimeReal instance produced by TimeReal.toJSON(). Return everything else as is.
Intended usage:
const data = JSON.parse(serializedData, TimeReal.reviver);
Property name.
Property value.
Deserialized TimeReal instance or other data without modifications.
Arbitrary (but inaccurate) value measured in time-related units (usually Hz).
Used to represent irrational frequencies and values like pi.