ase/mathutils.hh file


Namespaces

namespace Ase
The Anklang C++ API namespace.

Classes

union Ase::FloatIEEE754

Functions

auto fast_exp2(float x) ASE_CONST -> float
auto fast_log2(float x) ASE_CONST -> float
auto force_double(double d) →  double
Force number into double precision floating point format, even with -ffast-math.
auto force_float(float f) →  float
Force number into single precision floating point format, even with -ffast-math.
auto hz2value(float x) ASE_CONST -> float
Convert Hertz to synthesizer value (Voltage).
auto irintf(float f) →  ASE_CONST int
auto value2hz(float x) ASE_CONST -> float
Convert synthesizer value (Voltage) to Hertz.

Variables

const double DOUBLE_EPSILON constexpr
Double round-off error at 1.0, equals 2^-53.