#include <firfilter.h>
mcl::FirFilter::FirFilter |
( |
| ) |
|
|
noexcept |
Constructs a default FIR filter, i.e. identical filter
mcl::FirFilter::FirFilter |
( |
const std::vector< Real > |
B | ) |
|
|
noexcept |
Constructs an FIR filter with impulse response B.
virtual mcl::FirFilter::~FirFilter |
( |
| ) |
|
|
inlinevirtual |
Real mcl::FirFilter::Filter |
( |
const Real |
input_sample | ) |
|
|
virtualnoexcept |
Returns the output of the filter for an input equal to input
. For example, if B=1, A=1, output will be equal to input. As a second example, if B=[0,1], A=[1], you will have (1) Filter(0.5)==0 and then (2) Filter(0.0)==0.5
Implements mcl::DigitalFilter.
void mcl::FirFilter::Filter |
( |
const Real *__restrict |
input_data, |
|
|
const Int |
num_samples, |
|
|
Real *__restrict |
output_data |
|
) |
| |
|
virtualnoexcept |
Constructs a filter for which output==gain*input always.
std::vector< Real > mcl::FirFilter::impulse_response |
( |
| ) |
|
|
noexcept |
Returns the impulse response of the filter
void mcl::FirFilter::Reset |
( |
| ) |
|
|
virtualnoexcept |
void mcl::FirFilter::SetImpulseResponse |
( |
const std::vector< Real > & |
impulse_response, |
|
|
const Int |
update_length = 0 |
|
) |
| |
|
noexcept |
Updates the filter coefficients. You can set how long it takes to update the coefficients (using linear interpolation between old and new impulse response). If an update is requested while another is already in progress, the new interpolation will pick up from where the old one left off to avoid audible artifacts.
- Parameters
-
void mcl::FirFilter::SpeedTests |
( |
| ) |
|
|
static |
bool mcl::FirFilter::Test |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: