45 double c4,
double c5,
double c6)
noexcept
57 double frequency)
noexcept
66 jassert (sampleRate > 0.0);
67 jassert (frequency > 0.0 && frequency <= sampleRate * 0.5);
83 double frequency)
noexcept
85 return makeHighPass (sampleRate, frequency, 1.0 / std::sqrt(2.0));
92 jassert (sampleRate > 0.0);
93 jassert (frequency > 0.0 && frequency <= sampleRate * 0.5);
109 double frequency)
noexcept
118 jassert (sampleRate > 0.0);
119 jassert (frequency > 0.0 && frequency <= sampleRate * 0.5);
135 double frequency)
noexcept
144 jassert (sampleRate > 0.0);
145 jassert (frequency > 0.0 && frequency <= sampleRate * 0.5);
161 double frequency)
noexcept
170 jassert (sampleRate > 0.0);
171 jassert (frequency > 0.0 && frequency <= sampleRate * 0.5);
191 jassert (sampleRate > 0.0);
200 auto beta = std::sin (
omega) * std::sqrt (A) /
Q;
216 jassert (sampleRate > 0.0);
225 auto beta = std::sin (
omega) * std::sqrt (A) /
Q;
241 jassert (sampleRate > 0.0);
242 jassert (frequency > 0.0 && frequency <= sampleRate * 0.5);
247 auto alpha = 0.5 * std::sin (
omega) /
Q;
248 auto c2 = -2.0 * std::cos (
omega);
268 coefficients =
other.coefficients;
298 auto out = coefficients.coefficients[0] *
in + v1;
300 JUCE_SNAP_TO_ZERO (
out);
302 v1 = coefficients.coefficients[1] *
in - coefficients.coefficients[3] *
out + v2;
303 v2 = coefficients.coefficients[2] *
in - coefficients.coefficients[4] *
out;
314 auto c0 = coefficients.coefficients[0];
315 auto c1 = coefficients.coefficients[1];
316 auto c2 = coefficients.coefficients[2];
317 auto c3 = coefficients.coefficients[3];
318 auto c4 = coefficients.coefficients[4];
321 for (
int i = 0; i < numSamples; ++i)
331 JUCE_SNAP_TO_ZERO (
lv1); v1 =
lv1;
332 JUCE_SNAP_TO_ZERO (
lv2); v2 =
lv2;
static IIRCoefficients makeAllPass(double sampleRate, double frequency) noexcept
IIRCoefficients & operator=(const IIRCoefficients &) noexcept
static IIRCoefficients makeLowPass(double sampleRate, double frequency) noexcept
IIRCoefficients() noexcept
static IIRCoefficients makeNotchFilter(double sampleRate, double frequency) noexcept
static IIRCoefficients makePeakFilter(double sampleRate, double centreFrequency, double Q, float gainFactor) noexcept
~IIRCoefficients() noexcept
static IIRCoefficients makeBandPass(double sampleRate, double frequency) noexcept
static IIRCoefficients makeHighShelf(double sampleRate, double cutOffFrequency, double Q, float gainFactor) noexcept
static IIRCoefficients makeLowShelf(double sampleRate, double cutOffFrequency, double Q, float gainFactor) noexcept
static IIRCoefficients makeHighPass(double sampleRate, double frequency) noexcept
float processSingleSampleRaw(float sample) noexcept
void processSamples(float *samples, int numSamples) noexcept
void setCoefficients(const IIRCoefficients &newCoefficients) noexcept
void makeInactive() noexcept