envelope_correlation function

Measure amplitude envelope correlation