Class daisysp::LadderFilter¶
ClassList > daisysp > LadderFilter
#include <ladder.h>
Public Types¶
| Type | Name |
|---|---|
| enum | FilterMode |
Public Functions¶
| Type | Name |
|---|---|
| void | Init (float sample_rate) |
| LadderFilter () = default |
|
| float | Process (float in) |
| void | ProcessBlock (float * buf, size_t size) |
| void | SetFilterMode (FilterMode mode) |
| void | SetFreq (float freq) |
| void | SetInputDrive (float drv) |
| void | SetPassbandGain (float pbg) |
| void | SetRes (float res) |
| ~LadderFilter () = default |
Detailed Description¶
4-pole ladder filter model with selectable filter type (LP/BP/HP 12 or 24 dB/oct), drive, passband gain compensation, and stable self-oscillation.
Public Types Documentation¶
enum FilterMode¶
Public Functions Documentation¶
function Init¶
Initializes the ladder filter module.
function LadderFilter¶
function Process¶
Process single sample
function ProcessBlock¶
Process mono buffer/block of samples in place
function SetFilterMode¶
Sets the filter mode/response Defaults to classic lowpass 24dB/oct
function SetFreq¶
Sets the cutoff frequency of the filter. Units of hz, valid in range 5 - ~nyquist (samp_rate / 2) Internally clamped to this range.
function SetInputDrive¶
Sets drive of the input stage into the tanh clipper Valid in range 0 - 4.0
function SetPassbandGain¶
Set "passband gain" compensation factor to mitigate loss of energy in passband at higher resonance values. Drive and passband gain have a dependent relationship. Valid in range 0 - 0.5 Internally clamped to this range.
function SetRes¶
Sets the resonance of the filter. Filter will stably self oscillate at higher values. Valid in range 0 - 1.8 Internally clamped to this range.
function ~LadderFilter¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Filters/ladder.h