|
RADLib
RADical C++ application framework
|
16-band peaking-EQ built from a biquad cascade. More...
#include <RADDsp.h>
Public Member Functions | |
| Equalizer16Band (uint32_t sampleRate=48000) | |
| Creates an equalizer for sampleRate with default band centers. More... | |
| void | setSampleRate (uint32_t sampleRate) |
| Sets sample rate and rebuilds coefficients. More... | |
| uint32_t | sampleRate () const |
| Returns configured sample rate. More... | |
| const std::array< EqualizerBand, 16 > & | bands () const |
| Returns all band settings. More... | |
| bool | setBand (size_t index, float frequencyHz, float gainDb, float q=1.0f) |
| Sets one band center, gain, and Q. More... | |
| bool | setBandGain (size_t index, float gainDb) |
| Sets one band gain while preserving center/Q. More... | |
| float | bandGain (size_t index) const |
| Returns one band gain or 0 for invalid index. More... | |
| void | reset () |
| Resets all filter states. More... | |
| std::vector< float > | process (const std::vector< float > &samples) |
| Processes a block through the equalizer. More... | |
16-band peaking-EQ built from a biquad cascade.
|
explicit |
Creates an equalizer for sampleRate with default band centers.
| float RADDsp::Equalizer16Band::bandGain | ( | size_t | index | ) | const |
Returns one band gain or 0 for invalid index.
| const std::array<EqualizerBand, 16>& RADDsp::Equalizer16Band::bands | ( | ) | const |
Returns all band settings.
| std::vector<float> RADDsp::Equalizer16Band::process | ( | const std::vector< float > & | samples | ) |
Processes a block through the equalizer.
| void RADDsp::Equalizer16Band::reset | ( | ) |
Resets all filter states.
| uint32_t RADDsp::Equalizer16Band::sampleRate | ( | ) | const |
Returns configured sample rate.
| bool RADDsp::Equalizer16Band::setBand | ( | size_t | index, |
| float | frequencyHz, | ||
| float | gainDb, | ||
| float | q = 1.0f |
||
| ) |
Sets one band center, gain, and Q.
| bool RADDsp::Equalizer16Band::setBandGain | ( | size_t | index, |
| float | gainDb | ||
| ) |
Sets one band gain while preserving center/Q.
| void RADDsp::Equalizer16Band::setSampleRate | ( | uint32_t | sampleRate | ) |
Sets sample rate and rebuilds coefficients.