calculateLP6factor

Calculates the time factor for an LP6 filter. Filter formula: y[n] = y[n-1] + (x[n] - y[n-1]) * factor Where factor is: 1.0 - exp(-1.0 / (timeConstantInSeconds * samplerate))

@nogc nothrow pure public @safe
double
calculateLP6factor
(
float fs
,
float f0
)

Parameters

fs float

Sampling frequency.

f0 float

Cutoff frequency.

Return Value

Type: double

The factor value.

Meta