|
Gin
|
DC blocking filter (high-pass filter) to remove DC offset. More...
#include <gin_wtoscillators.h>
Public Member Functions | |
| DCBlocker () | |
| ~DCBlocker () | |
| void | setSampleRate (float sampleRate_) |
| void | setCutoff (float cutoff_) |
| float | process (float x) |
| void | reset () |
DC blocking filter (high-pass filter) to remove DC offset.
DCBlocker implements a simple first-order high-pass filter to remove DC offset from audio signals. This is useful after certain DSP operations (like waveshaping or oscillators) that may introduce DC bias.
Key Features:
Usage:
Note: This is a per-sample filter. For stereo, use two instances.
| DCBlocker::DCBlocker | ( | ) |
| DCBlocker::~DCBlocker | ( | ) |
| void DCBlocker::setSampleRate | ( | float | sampleRate_ | ) |
Referenced by WTOscillator::setSampleRate().
| void DCBlocker::setCutoff | ( | float | cutoff_ | ) |
Referenced by WTOscillator::setSampleRate().
| float DCBlocker::process | ( | float | x | ) |
Referenced by WTOscillator::processAdding().
| void DCBlocker::reset | ( | ) |