Hi,
I took a shot at making an analog-style adsr envelope generator. Rather than using straight line segments, it uses ones that are curved such that the rate of change in 'voltage' decreases as it approaches the target voltage. Also, the attack begins at the current output value rather than zero for nice legato sequences. I've attached it along with a test patch in case anyone might find it useful.
Ben