mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Rename IIR filter for 300Hz high-pass.
This commit is contained in:
parent
ff05833b02
commit
9a0fb2cab7
@ -25,7 +25,7 @@
|
|||||||
#include "dsp_iir.hpp"
|
#include "dsp_iir.hpp"
|
||||||
|
|
||||||
// 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_config {
|
constexpr iir_biquad_config_t audio_hpf_300hz_config {
|
||||||
{ 0.97261390f, -1.94522780f, 0.97261390f, },
|
{ 0.97261390f, -1.94522780f, 0.97261390f, },
|
||||||
{ 1.00000000f, -1.94447766f, 0.94597794f, }
|
{ 1.00000000f, -1.94447766f, 0.94597794f, }
|
||||||
};
|
};
|
||||||
|
@ -54,7 +54,7 @@ private:
|
|||||||
|
|
||||||
dsp::demodulate::AM demod;
|
dsp::demodulate::AM demod;
|
||||||
|
|
||||||
IIRBiquadFilter audio_hpf { audio_hpf_config };
|
IIRBiquadFilter audio_hpf { audio_hpf_300hz_config };
|
||||||
|
|
||||||
SpectrumCollector channel_spectrum;
|
SpectrumCollector channel_spectrum;
|
||||||
};
|
};
|
||||||
|
@ -61,7 +61,7 @@ private:
|
|||||||
|
|
||||||
dsp::demodulate::FM demod;
|
dsp::demodulate::FM demod;
|
||||||
|
|
||||||
IIRBiquadFilter audio_hpf { audio_hpf_config };
|
IIRBiquadFilter audio_hpf { audio_hpf_300hz_config };
|
||||||
IIRBiquadFilter audio_deemph { audio_deemph_300_6_config };
|
IIRBiquadFilter audio_deemph { audio_deemph_300_6_config };
|
||||||
FMSquelch squelch;
|
FMSquelch squelch;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user