DaisySP
|
One Pole Lowpass / Highpass Filter. More...
#include <onepole.h>
Public Types | |
enum | FilterMode { FILTER_MODE_LOW_PASS , FILTER_MODE_HIGH_PASS } |
Operational modes of the filter. More... | |
Public Member Functions | |
void | Init () |
void | Reset () |
void | SetFrequency (float freq) |
void | SetFilterMode (FilterMode mode) |
float | Process (float in) |
void | ProcessBlock (float *in_out, size_t size) |
One Pole Lowpass / Highpass Filter.
Operational modes of the filter.
|
inline |
Initializes the module
Process audio through the filter
in | The next sample to be processed |
Process a block of audio through the filter
in_out | Pointer to the block of samples to be processed |
size | Size of the block of samples to be processed. |
|
inline |
Reset the module to its default state
|
inline |
Set the filter mode
mode | Filter mode. Can be lowpass or highpass |
Set the filter cutoff frequency
freq | Cutoff frequency. Valid range from 0 to .497f |