Skip to content

Class daisysp::NlFilt

ClassList > daisysp > NlFilt

More...

  • #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

void daisysp::NlFilt::Init () 

Initializes the NlFilt object.


function ProcessBlock

void daisysp::NlFilt::ProcessBlock (
    float * in,
    float * out,
    size_t size
) 

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

inline void daisysp::NlFilt::SetA (
    float a
) 

Set Coefficient a


function SetB

inline void daisysp::NlFilt::SetB (
    float b
) 

Set Coefficient b


function SetC

inline void daisysp::NlFilt::SetC (
    float C
) 

Set Coefficient C


function SetCoefficients

inline void daisysp::NlFilt::SetCoefficients (
    float a,
    float b,
    float d,
    float C,
    float L
) 

inputs these are the five coefficients for the filter.


function SetD

inline void daisysp::NlFilt::SetD (
    float d
) 

Set Coefficient d


function SetL

inline void daisysp::NlFilt::SetL (
    float L
) 

Set Coefficient L



The documentation for this class was generated from the following file external-docs/DaisySP/DaisySP-LGPL/Source/Filters/nlfilt.h