LASP 1.0
Library for Acoustic Signal Processing
|
Multiple biquad filters in parallel, each multiplied with a gain value, and finally all added together. This class can be used to create a graphic equalizer. More...
#include <lasp_biquadbank.h>
Public Member Functions | |
BiquadBank (const dmat &filters, const vd *gains=nullptr) | |
Initialize biquadbank. | |
BiquadBank (std::vector< SeriesBiquad > filters, vd gains) | |
Construct biquad bank from already given set of series biquad filters and gain values. | |
void | setGains (const vd &gains) |
Set new gain values for each filter in the BiquadBank. | |
us | nfilters () const |
Returns the number of Filters. | |
virtual void | filter (vd &inout) override final |
Filter input, and provides output in same array as input. | |
void | reset () override final |
Reset filter state to 0 (history was all-zero). | |
std::unique_ptr< Filter > | clone () const override final |
Clone a filter, to generate a copy. | |
Public Member Functions inherited from Filter | |
virtual | ~Filter ()=0 |
Multiple biquad filters in parallel, each multiplied with a gain value, and finally all added together. This class can be used to create a graphic equalizer.
Definition at line 61 of file lasp_biquadbank.h.
Initialize biquadbank.
filters | Filters for each filter in the bank. First axis isis the coefficient index, second axis is the filter index. |
gains | Gain values. Given as pointer, if not given (nulltpr), gains are initialized with unity gain. |
Make sure the pool is created once, such that all threads are ready for use.
Definition at line 120 of file lasp_biquadbank.cpp.
|
inline |
Construct biquad bank from already given set of series biquad filters and gain values.
filters | The filters to set |
gains | The gain values for each filter |
Definition at line 84 of file lasp_biquadbank.h.
|
finaloverridevirtual |
Clone a filter, to generate a copy.
Implements Filter.
Definition at line 189 of file lasp_biquadbank.cpp.
|
finaloverridevirtual |
Filter input, and provides output in same array as input.
inout | Vector of input / output samples. |
Implements Filter.
Definition at line 149 of file lasp_biquadbank.cpp.
|
inline |
Returns the number of Filters.
Definition at line 100 of file lasp_biquadbank.h.
|
finaloverridevirtual |
Reset filter state to 0 (history was all-zero).
Implements Filter.
Definition at line 182 of file lasp_biquadbank.cpp.
void BiquadBank::setGains | ( | const vd & | gains | ) |
Set new gain values for each filter in the BiquadBank.
gains | Vector of gain values. Should be of same length as the number of filters installed. |
Definition at line 138 of file lasp_biquadbank.cpp.