Builda ADSR envelope

I’m a newbie, and I want to build an ADSR envelope using the code from AudioSynthesiserDemo in the JUCE example. There are no instructional videos, articles or Github code dedicated to the ADSR envelope. Thank you very much.

https://docs.juce.com/master/classADSR.html

have you tried this class yet?