Mozzi  version 2015-05-11-20:23
sound synthesis library for Arduino
 All Classes Functions Typedefs Groups
DCfilter Class Reference

A DC-blocking filter useful for highlighting changes in control signals. More...

#include <DCfilter.h>

Public Member Functions

 DCfilter (float pole)
 Instantiate a DC-blocking filter. More...
 
int next (int x)
 Filter the incoming value and return the result. More...
 

Detailed Description

A DC-blocking filter useful for highlighting changes in control signals.

The output of the filter settles to 0 if the incoming signal stays constant. If the input changes, the filter output swings to track the change and eventually settles back to 0.

Examples:
05.Control_Filters/DCFilter/DCFilter.ino.

Definition at line 32 of file DCfilter.h.

Constructor & Destructor Documentation

DCfilter::DCfilter ( float  pole)
inline

Instantiate a DC-blocking filter.

Parameters
polesets the responsiveness of the filter, how long it takes to settle to 0 if the input signal levels out at a constant value.

Definition at line 39 of file DCfilter.h.

Member Function Documentation

int DCfilter::next ( int  x)
inline

Filter the incoming value and return the result.

Parameters
xthe value to filter
Returns
filtered signal

Definition at line 68 of file DCfilter.h.