Envelope Estimation 

Estimate the envelope around a signal by computing the baselines of the original and negated data.

show complete Wolfram Language input
       
Click to play animation