#include <dsp_filter.h>
|
| LowPass (double samplerate, float freq) |
|
void | proc (float *data, const uint32_t n_samples) |
|
void | ctrl (float *data, const float val, const uint32_t n_samples) |
|
void | set_cutoff (float freq) |
|
void | reset () |
|
1st order Low Pass filter
Definition at line 184 of file dsp_filter.h.
◆ LowPass()
ARDOUR::DSP::LowPass::LowPass |
( |
double |
samplerate, |
|
|
float |
freq |
|
) |
| |
instantiate a LPF
- Parameters
-
samplerate | samplerate |
freq | cut-off frequency |
◆ ctrl()
void ARDOUR::DSP::LowPass::ctrl |
( |
float * |
data, |
|
|
const float |
val, |
|
|
const uint32_t |
n_samples |
|
) |
| |
filter control data
This is useful for parameter smoothing.
- Parameters
-
data | pointer to control-data array |
val | target value |
n_samples | array length |
◆ proc()
void ARDOUR::DSP::LowPass::proc |
( |
float * |
data, |
|
|
const uint32_t |
n_samples |
|
) |
| |
process audio data
- Parameters
-
data | pointer to audio-data |
n_samples | number of samples to process |
◆ reset()
void ARDOUR::DSP::LowPass::reset |
( |
| ) |
|
|
inline |
◆ set_cutoff()
void ARDOUR::DSP::LowPass::set_cutoff |
( |
float |
freq | ) |
|
update filter cut-off frequency
- Parameters
-
◆ _a
float ARDOUR::DSP::LowPass::_a |
|
private |
◆ _rate
float ARDOUR::DSP::LowPass::_rate |
|
private |
◆ _z
float ARDOUR::DSP::LowPass::_z |
|
private |
The documentation for this class was generated from the following file: