LinearSmoothedValue example

Hi everyone,
I’m pretty new to audio programming and I’m stuck on how to do a cross fade on a delayed signal.

I have seen people recommending using the LinearSmoothedValue class for this but I can’t find any examples of it being used.
Could someone possibly show me a quick example?
Cheers.

You can search JUCE’s examples directory for “LinearSmoothedValue”:

examples/Audio/MPEDemo.h
examples/BLOCKS/BlocksSynthDemo.h
examples/Plugins/SamplerPluginDemo.h

1 Like

Also the Reverb class in the JUCE code

Rail