mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
dsp::IIRFilter: Allow computing filter coefficients without allocating
This commit is contained in:
parent
ba2cd6cc34
commit
22d935ad3e
5 changed files with 364 additions and 152 deletions
|
|
@ -116,9 +116,9 @@ struct SIMDRegisterDemoDSP
|
|||
|
||||
switch (typeParam.getCurrentSelectedID())
|
||||
{
|
||||
case 1: *iirCoefficients = *IIR::Coefficients<float>::makeLowPass (sampleRate, cutoff, qVal); break;
|
||||
case 2: *iirCoefficients = *IIR::Coefficients<float>::makeHighPass (sampleRate, cutoff, qVal); break;
|
||||
case 3: *iirCoefficients = *IIR::Coefficients<float>::makeBandPass (sampleRate, cutoff, qVal); break;
|
||||
case 1: *iirCoefficients = IIR::ArrayCoefficients<float>::makeLowPass (sampleRate, cutoff, qVal); break;
|
||||
case 2: *iirCoefficients = IIR::ArrayCoefficients<float>::makeHighPass (sampleRate, cutoff, qVal); break;
|
||||
case 3: *iirCoefficients = IIR::ArrayCoefficients<float>::makeBandPass (sampleRate, cutoff, qVal); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue