A DC-blocking filter useful for highlighting changes in control signals. More...
#include <DCfilter.h>
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.
Definition at line 32 of file 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... | |
| 
 | inline | 
Instantiate a DC-blocking filter.
| pole | sets 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 40 of file DCfilter.h.
| 
 | inline | 
Filter the incoming value and return the result.
| x | the value to filter | 
Definition at line 69 of file DCfilter.h.