Function - slow attack and "next" message jump

jamesway's icon

If I have a slow attack and release a note before it reaches the sustain point, it jumps to the sustain point.
Is there an elegant way to have "next" point match current value on note off?
I like mc.function's visual editing but thinking I might need to switch to signal based. I'm also using zigzag instead of line. I'd like to figure out a multislider to envelope to speed up creating rhythmic envelopes.
love yall.

Source Audio's icon

adsr~ ramps down using release time from current value
if note gets released earlier than set decay time

jamesway's icon

Thanks source, I moved to function for the editor mainly and because adsr release seems very linear.
I tried gating the output of function with note on/off so the note on list is separate from note off and then grab the mc.zig value and replaced it with the first sustain value from second list. seems to work fine but still concerned with messages getting mixed up with key mashing,