Emulate Analog curcuit

This JUCE post might be helpful