One Pole Lowpass / Highpass Filter.
More...
#include <onepole.h>
|
| enum | FilterMode { FILTER_MODE_LOW_PASS
, FILTER_MODE_HIGH_PASS
} |
| | Operational modes of the filter. More...
|
| |
One Pole Lowpass / Highpass Filter.
- Author
- beserge
- Date
- Dec 2023 Ported from pichenettes/stmlib/dsp/filter.h
to an independent module.
Original code written by Emilie Gillet.
◆ FilterMode
Operational modes of the filter.
- LOW_PASS = cuts out high frequency sound, lets low frequency sound pass through
- HIGH_PASS = cuts out low frequency sound, lets high frequency sound pass through
◆ Init()
| void daisysp::OnePole::Init |
( |
| ) |
|
|
inline |
◆ Process()
| float daisysp::OnePole::Process |
( |
float | in | ) |
|
|
inline |
Process audio through the filter
- Parameters
-
| in | The next sample to be processed |
◆ ProcessBlock()
| void daisysp::OnePole::ProcessBlock |
( |
float * | in_out, |
|
|
size_t | size ) |
|
inline |
Process a block of audio through the filter
- Parameters
-
| in_out | Pointer to the block of samples to be processed |
| size | Size of the block of samples to be processed. |
◆ Reset()
| void daisysp::OnePole::Reset |
( |
| ) |
|
|
inline |
Reset the module to its default state
◆ SetFilterMode()
| void daisysp::OnePole::SetFilterMode |
( |
FilterMode | mode | ) |
|
|
inline |
Set the filter mode
- Parameters
-
| mode | Filter mode. Can be lowpass or highpass |
◆ SetFrequency()
| void daisysp::OnePole::SetFrequency |
( |
float | freq | ) |
|
|
inline |
Set the filter cutoff frequency
- Parameters
-
| freq | Cutoff frequency. Valid range from 0 to .497f |
The documentation for this class was generated from the following file: