Here’s envelope B from the Hordijk Dual Envelope generator, updated as with envelope A, as a little standalone module.
The repeat mode makes for some interesting rhythmic possibilities: On its own, without an incoming gate but with modulation on the attack or release, irregularly fluctuating rhythms can easily be set up. Alternatively, when used in conjunction with incoming gate pulses, slight anticipations or ‘off’ beats that don’t exactly fit the clock grid can be created.
I’ve uploaded a demo patch to the Audulus forum. Toggle the master clock in the patch to get an idea of how it works.