Class daisysp::NlFilt¶
#include <nlfilt.h>
Public Functions¶
Type | Name |
---|---|
void | Init () |
void | ProcessBlock (float * in, float * out, size_t size) |
void | SetA (float a) |
void | SetB (float b) |
void | SetC (float C) |
void | SetCoefficients (float a, float b, float d, float C, float L) |
void | SetD (float d) |
void | SetL (float L) |
Detailed Description¶
Non-linear filter The four 5-coefficients: a, b, d, C, and L are used to configure different filter types.
Structure for Dobson/Fitch nonlinear filter
Revised Formula from Risto Holopainen 12 Mar 2004
Y{n} =tanh(a Y{n-1} + b Y{n-2} + d Y^2{n-L} + X{n} - C)
Though traditional filter types can be made, the effect will always respond differently to different input.
Public Functions Documentation¶
function Init¶
Initializes the NlFilt object.
function ProcessBlock¶
Process the array pointed to by *in and updates the output to *out; This works on a block of audio at once, the size of which is set with the size.
function SetA¶
Set Coefficient a
function SetB¶
Set Coefficient b
function SetC¶
Set Coefficient C
function SetCoefficients¶
inputs these are the five coefficients for the filter.
function SetD¶
Set Coefficient d
function SetL¶
Set Coefficient L
The documentation for this class was generated from the following file external-docs/DaisySP/DaisySP-LGPL/Source/Filters/nlfilt.h