Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::DSP::LowPass Class Reference

#include <dsp_filter.h>

Public Member Functions

 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 ()
 

Private Attributes

float _rate
 
float _z
 
float _a
 

Detailed Description

1st order Low Pass filter

Definition at line 184 of file dsp_filter.h.

Constructor & Destructor Documentation

◆ LowPass()

ARDOUR::DSP::LowPass::LowPass ( double  samplerate,
float  freq 
)

instantiate a LPF

Parameters
sampleratesamplerate
freqcut-off frequency

Member Function Documentation

◆ 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
datapointer to control-data array
valtarget value
n_samplesarray length

◆ proc()

void ARDOUR::DSP::LowPass::proc ( float *  data,
const uint32_t  n_samples 
)

process audio data

Parameters
datapointer to audio-data
n_samplesnumber of samples to process

◆ reset()

void ARDOUR::DSP::LowPass::reset ( )
inline

reset filter state

Definition at line 213 of file dsp_filter.h.

◆ set_cutoff()

void ARDOUR::DSP::LowPass::set_cutoff ( float  freq)

update filter cut-off frequency

Parameters
freqcut-off frequency

Member Data Documentation

◆ _a

float ARDOUR::DSP::LowPass::_a
private

Definition at line 217 of file dsp_filter.h.

◆ _rate

float ARDOUR::DSP::LowPass::_rate
private

Definition at line 215 of file dsp_filter.h.

◆ _z

float ARDOUR::DSP::LowPass::_z
private

Definition at line 216 of file dsp_filter.h.


The documentation for this class was generated from the following file: