BTW, you need not use [env~], you can use [*~] of the signal on itself, then [lop~] it with the level that you want, and then do [sqrt~] or [powtodb~]. Half of the time, I want a smooth continuous output, and that's what it gives.

But [sqrt~] is broken in pd-extended 43, so you might need [expr~ sqrt($v1)] or [expr~ pow($v1,0.5)] instead.