This Code
.h
juce::AudioProcessorValueTreeState::ParameterLayout data();
juce::AudioProcessorValueTreeState plugIn{ *this, nullptr, “Parameter”, data() };
float freq{ 0.0 };
float q{ 0.0 };
float slope{ 12 };
void updateHigh();
private:
juce::dsp::ProcessorDuplicator<juce::dsp::FIR::Filter, juce::dsp::FIR::Coefficients> High;
.cpp
void ToneAudioProcessor::updateHigh()
{
*High.state = *juce::dsp::FilterDesign::designIIRLowpassHighOrderButterworthMethod(freq, getSampleRate(), slope);
}
error
Severity | Code | Description | Project | File | Line | Suppression State | Detail Description |
---|---|---|---|---|---|---|---|
Error (active) | E0349 | no operator * matches these operands | Tone_SharedCode | C:\Users\BJ\Desktop\Project\JUCE\JUCE\Tone\Source\PluginProcessor.cpp | 216 | operand types are: * juce::ReferenceCountedArray<juce::dsp::IIR::Coefficients, juce::DummyCriticalSection> |
thank you