iir1
|
#include <Butterworth.h>
Public Member Functions | |
void | setup (double sampleRate, double centerFrequency, double widthFrequency, double gainDb) |
void | setup (int reqOrder, double sampleRate, double centerFrequency, double widthFrequency, double gainDb) |
void | setupN (double centerFrequency, double widthFrequency, double gainDb) |
void | setupN (int reqOrder, double centerFrequency, double widthFrequency, double gainDb) |
![]() | |
void | reset () |
void | setup (const double(&sosCoefficients)[MaxStages][6]) |
Sample | filter (const Sample in) |
const Cascade::Storage | getCascadeStorage () |
Butterworth Bandshelf filter: it is a bandpass filter which amplifies at a specified gain in dB the frequencies in the passband.
FilterOrder | Reserves memory for a filter of the order FilterOrder |
StateType | The filter topology: DirectFormI, DirectFormII, ... |
|
inline |
Calculates the coefficients with the filter order provided by the instantiation
sampleRate | Sampling rate |
centerFrequency | Centre frequency of the passband |
widthFrequency | Width of the passband |
gainDb | The gain in the passband |
|
inline |
Calculates the coefficients
reqOrder | The actual order which can be less than the instantiated one |
sampleRate | Sampling rate |
centerFrequency | Centre frequency of the passband |
widthFrequency | Width of the passband |
gainDb | The gain in the passband |
|
inline |
Calculates the coefficients with the filter order provided by the instantiation
centerFrequency | Normalised centre frequency (0..1/2) of the passband |
widthFrequency | Width of the passband |
gainDb | The gain in the passband |
|
inline |
Calculates the coefficients
reqOrder | The actual order which can be less than the instantiated one |
centerFrequency | Normalised centre frequency (0..1/2) of the passband |
widthFrequency | Width of the passband |
gainDb | The gain in the passband |