10 Biquad(IFilter::Type type,
double startFreq,
int order = 2);
12 void prepare(
const double sampleRate,
const int numSamples,
const int numChannels)
override;
13 void process(std::span<const float> input, std::span<float> output,
int channel)
override;
15 void setAllParams(
double frequency,
double gaindB,
double q);
16 void setFrequency(
double frequency)
override;
17 void setQ(
double q)
override;
18 void setGain(
double gaindB)
override;
19 void setSampleRate(
double sampleRate)
override;
20 double filterResponse(
double sampleRate,
double currentFrequency)
override;
22 std::vector<double> getCoefficients();
38 double getSampleRate()
49 std::array<double, 3> a{};
50 std::array<double, 3> b{};
56 void updateCoefficients();
66 std::vector<double> xn_1;
67 std::vector<double> xn_2;
68 std::vector<double> yn_1;
69 std::vector<double> yn_2;