OK, so I never tried this, but maybe can try it and confirm it:
What about having a Rectifier or half rectifier applied to and audio sample, and treat that as an Envelope? A slew can be applied to "round the lines" if necessary, or not.