mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Add 30Hz high-pass IIR filter for wideband FM.
This commit is contained in:
parent
9a0fb2cab7
commit
2e90edbf39
@ -24,6 +24,12 @@
|
|||||||
|
|
||||||
#include "dsp_iir.hpp"
|
#include "dsp_iir.hpp"
|
||||||
|
|
||||||
|
// scipy.signal.butter(2, 30 / 24000.0, 'highpass', analog=False)
|
||||||
|
constexpr iir_biquad_config_t audio_hpf_30hz_config {
|
||||||
|
{ 0.99722705f, -1.99445410f, 0.99722705f, },
|
||||||
|
{ 1.00000000f, -1.99444641f, 0.99446179f, }
|
||||||
|
};
|
||||||
|
|
||||||
// scipy.signal.butter(2, 300 / 24000.0, 'highpass', analog=False)
|
// scipy.signal.butter(2, 300 / 24000.0, 'highpass', analog=False)
|
||||||
constexpr iir_biquad_config_t audio_hpf_300hz_config {
|
constexpr iir_biquad_config_t audio_hpf_300hz_config {
|
||||||
{ 0.97261390f, -1.94522780f, 0.97261390f, },
|
{ 0.97261390f, -1.94522780f, 0.97261390f, },
|
||||||
|
@ -49,7 +49,7 @@ private:
|
|||||||
const fir_taps_real<64>& audio_filter_taps = taps_64_lp_156_198;
|
const fir_taps_real<64>& audio_filter_taps = taps_64_lp_156_198;
|
||||||
dsp::decimate::FIR64AndDecimateBy2Real audio_filter { audio_filter_taps.taps };
|
dsp::decimate::FIR64AndDecimateBy2Real audio_filter { audio_filter_taps.taps };
|
||||||
|
|
||||||
IIRBiquadFilter audio_hpf { audio_hpf_config };
|
IIRBiquadFilter audio_hpf { audio_hpf_30hz_config };
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif/*__PROC_WFM_AUDIO_H__*/
|
#endif/*__PROC_WFM_AUDIO_H__*/
|
||||||
|
Loading…
Reference in New Issue
Block a user