mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
IIR default constructor passes no audio.
Debugging mechanism -- filter must be configured to pass audio.
This commit is contained in:
parent
172a6da36c
commit
497adda390
@ -31,9 +31,18 @@ struct iir_biquad_config_t {
|
|||||||
std::array<float, 3> a;
|
std::array<float, 3> a;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
constexpr iir_biquad_config_t iir_no_pass {
|
||||||
|
{ { 0.0f, 0.0f, 0.0f } },
|
||||||
|
{ { 0.0f, 0.0f, 0.0f } },
|
||||||
|
};
|
||||||
|
|
||||||
class IIRBiquadFilter {
|
class IIRBiquadFilter {
|
||||||
public:
|
public:
|
||||||
// http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt
|
// http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt
|
||||||
|
constexpr IIRBiquadFilter(
|
||||||
|
) : IIRBiquadFilter(iir_no_pass)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// Assume all coefficients are normalized so that a0=1.0
|
// Assume all coefficients are normalized so that a0=1.0
|
||||||
constexpr IIRBiquadFilter(
|
constexpr IIRBiquadFilter(
|
||||||
|
Loading…
Reference in New Issue
Block a user