ase/signalmath.hh file


Namespaces

namespace Ase
The Anklang C++ API namespace.

Classes

struct Ase::Logscale
Logarithmically map (and invert) a range onto 0…+1.

Functions

template <typename Float>
auto db2voltage(Float x) →  Float
Convert Decibel to synthesizer value (Voltage).
template <typename Float>
auto db2voltage(Float x) →  ASE_CONST Float
Convert Decibel to synthesizer value (Voltage).
template <typename Float>
auto db_changed(Float a, Float b) →  Float
Determine a significant Decibel change.
template <typename Float>
auto db_changed(Float a, Float b) →  ASE_CONST Float
Determine a significant Decibel change.
auto fast_db2voltage(float x) →  float
Float precision variant of db2voltage using fast_exp2().
auto fast_hz2voltage(float x) →  float
Float precision variant of hz2voltage using fast_log2().
auto fast_voltage2db(float x) →  float
Float precision variant of voltage2db using fast_log2().
auto fast_voltage2hz(float x) →  float
Float precision variant of voltage2hz using fast_exp2().
template <typename Float>
auto hz2voltage(Float x) →  Float
Convert Hertz to synthesizer value (Voltage).
template <typename Float>
auto hz2voltage(Float x) →  ASE_CONST Float
Convert Hertz to synthesizer value (Voltage).
template <typename Float>
auto hz_changed(Float a, Float b) →  Float
Determine a significant frequency change (audible Hertz).
template <typename Float>
auto hz_changed(Float a, Float b) →  ASE_CONST Float
Determine a significant frequency change (audible Hertz).
template <typename Float>
auto voltage2db(Float x) →  Float
Convert synthesizer value (Voltage) to Decibel.
template <typename Float>
auto voltage2db(Float x) →  ASE_CONST Float
Convert synthesizer value (Voltage) to Decibel.
template <typename Float>
auto voltage2hz(Float x) →  Float
Convert synthesizer value (Voltage) to Hertz.
template <typename Float>
auto voltage2hz(Float x) →  ASE_CONST Float
Convert synthesizer value (Voltage) to Hertz.
template <typename Float>
auto voltage_changed(Float a, Float b) →  Float
Determine a significant synthesizer value (Voltage) change.
template <typename Float>
auto voltage_changed(Float a, Float b) →  ASE_CONST Float
Determine a significant synthesizer value (Voltage) change.