MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ pole_radius_from_decay()

MAYAFLUX_API double MayaFlux::Kinesis::Discrete::pole_radius_from_decay ( double  seconds,
double  sample_rate 
)
noexcept

Pole radius whose impulse response falls by 1/e in a given time.

Parameters
secondsRing time, floored at one sample
sample_rateSample rate in Hz
Returns
decay_per_sample, floored at one sample and held just below the unit circle

There is no upper limit on the ring time other than the radius staying strictly inside the unit circle.

Definition at line 143 of file Coefficients.cpp.

144{
145 const double tau = std::max(seconds, 1.0 / sample_rate);
146 return std::min(decay_per_sample(tau, sample_rate), 1.0 - 1e-12);
147}
double decay_per_sample(double seconds, double sample_rate) noexcept
Per-sample factor that falls by 1/e in a given time.

References decay_per_sample().

Referenced by q_from_decay().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: