hello,
i have been test running DSP module and building Reverbs, Compressors etc. All works well bar one specific thing, dragging the slider in a DAW causes slight crackling. I thought it may have something to do with sample rate so i ensured my DAW and my plugin used the same (48,000) sample rate. This unfortunately did not fix the issue.
I have been searching and found that the juce framework has a “SmoothedValue” that can be used to fix this issue, i just don’t know how to actually implement it correctly.
here is how i am updating my values in processBlock:
compressor.setThreshold(*apvts.getRawParameterValue("Threshold"));
compressor.setAttack(*apvts.getRawParameterValue("Attack"));
compressor.setRelease(*apvts.getRawParameterValue("Release"));
compressor.setRatio(*apvts.getRawParameterValue("Ratio"));
juce::dsp::AudioBlock<float> block(buffer);
juce::dsp::ProcessContextReplacing<float> replaced(block);
compressor.process(replaced);
if for example i use:
juce::SmoothedValue<float, juce::ValueSmoothingTypes::Linear> smoothing;
then how to i implement this into my compressor.setPARAM() function?