19#ifndef SBL_DSP_MATH_EXP_MOD_HPP_
20#define SBL_DSP_MATH_EXP_MOD_HPP_
74inline void exp_mod(
const float* mod,
float* freq_out, uint16_t frames,
float base,
float depth,
76 for (uint16_t i = 0; i < frames; ++i) {
77 freq_out[i] =
exp_mod(base, mod[i], depth, lo, hi);
Fast analytical approximations of sin, tan, 2^x and tanh.
Math for the audio stack.
float fast_exp2f(float x)
Fast 2^x approximation for exponential modulation.
constexpr float DEFAULT_LO_HZ
constexpr float DEFAULT_HI_HZ
float exp_mod(float base, float mod, float depth, float lo=DEFAULT_LO_HZ, float hi=DEFAULT_HI_HZ)
Apply exponential modulation to a base frequency (scalar).