ProcessorChain of IIR Filters: How to set coefficients?


beginner question. I understand this example and I really like it

        juce::dsp::ProcessorChain<juce::dsp::Gain<double>, juce::dsp::Gain<double> > chain1;


now if I want to build a ProcessorChain with IIR Filters. How do I set the coefficients?

juce::dsp::ProcessorChain<juce::dsp::IIR::Filter<float>, juce::dsp::IIR::Filter<float>> chain;

//how to set coeffs for chain1.get<0> ?

Thanks so much in advance for your help!

Got it!

chain.get<0>().coefficients = juce::dsp::IIR::Coefficients<float>::makePeakFilter(sampleRate, Frequency, Q, gainFactor);