I've been trying to work out how to engineer something like this, but haven't got very far.
I'd like to create an envelope (simple attack, sustain, release) that can also go up to audio spectrum rates, and where I can control the curve of the line.
To go into the audio spectrum without glitchiness it'll need to be signal input. Also I want to ensure that the attack segment completes before the release is allowed to kick in.
The way I thought of doing it is using slide~ to turn an incoming "gate" signal (either 1 or 0) into a ramp/curve. This is fine so far as it goes, but if the incoming gate signal goes back to 0 before slide reaches 1, then slide begins its descent regardless.
Any ideas on something I could put between the gate signal and the slide input such that once the gate input leaves 0, it is not allowed to fall back down to 0 again until the slide~ output has reached 1?
If the slide output reaches 1 and the gate input is still at 1 it should then hold at 1 until the gate input falls
I've tried a few things with the bitwise operators but I can't figure out anything that works.