|
|
@ -1,5 +1,5 @@ |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* AudioFilterBiquad_F32.cpp |
|
|
|
* AudioFilterBiquad_F32.h |
|
|
|
* Chip Audette, OpenAudio, Apr 2017 |
|
|
|
* Chip Audette, OpenAudio, Apr 2017 |
|
|
|
* MIT License, Use at your own risk. |
|
|
|
* MIT License, Use at your own risk. |
|
|
|
* |
|
|
|
* |
|
|
@ -104,7 +104,7 @@ class AudioFilterBiquad_F32 : public AudioStream_F32 |
|
|
|
// setting of coefficients to catch the max number of stages and do the
|
|
|
|
// setting of coefficients to catch the max number of stages and do the
|
|
|
|
// double to float conversion for the CMSIS routine.
|
|
|
|
// double to float conversion for the CMSIS routine.
|
|
|
|
void begin(void) { |
|
|
|
void begin(void) { |
|
|
|
// Initialize FIR instance (ARM DSP Math Library)
|
|
|
|
// Initialize BiQuad instance (ARM DSP Math Library)
|
|
|
|
//https://www.keil.com/pack/doc/CMSIS/DSP/html/group__BiquadCascadeDF1.html
|
|
|
|
//https://www.keil.com/pack/doc/CMSIS/DSP/html/group__BiquadCascadeDF1.html
|
|
|
|
arm_biquad_cascade_df1_init_f32(&iir_inst, numStagesUsed, &coeff32[0], &StateF32[0]); |
|
|
|
arm_biquad_cascade_df1_init_f32(&iir_inst, numStagesUsed, &coeff32[0], &StateF32[0]); |
|
|
|
} |
|
|
|
} |
|
|
|