#include <svf.hpp>
|
| struct | Coefficients |
| | The TPT state-variable coefficients for a sample rate, cutoff and resonance (Q): g = tan(pi fc / fs), k = 1 / Q, a1 = 1 / (1 + g (g + k)), a2 = g a1, a3 = g a2. More...
|
|
| static Coefficients | design (SampleType sample_rate, SampleType frequency, SampleType resonance) |
◆ Mode
template<typename SampleType = float>
| Enumerator |
|---|
| lowpass | |
| highpass | |
| bandpass | |
| notch | |
◆ configure()
template<typename SampleType = float>
| void pulp::signal::SvfT< SampleType >::configure |
( |
Mode | mode, |
|
|
SampleType | sample_rate, |
|
|
SampleType | frequency, |
|
|
SampleType | resonance ) |
|
inline |
Install a coherent coefficient set in one prewarp.
Use this when sample rate and cutoff change together so neither setter temporarily evaluates the new value against the old value's Nyquist limit.
◆ design()
template<typename SampleType = float>
◆ process() [1/2]
template<typename SampleType = float>
Process a buffer in place.
Same arithmetic as the per-sample path, with the mode resolved once per call and the coefficients and integrator states held in registers. The denormal snap runs once per kSnapChunkSamples chunk (snap_chunks()); it only alters states below 1e-15, so the output differs from the per-sample path only once a tail is already below that level.
◆ process() [2/2]
template<typename SampleType = float>
◆ reset()
template<typename SampleType = float>
◆ set_frequency()
template<typename SampleType = float>
◆ set_mode()
template<typename SampleType = float>
◆ set_resonance()
template<typename SampleType = float>
◆ set_sample_rate()
template<typename SampleType = float>
The documentation for this class was generated from the following file:
- /home/runner/work/pulp/pulp/core/signal/include/pulp/signal/svf.hpp