b = Buffer.read(s, "/Users/lcoogan/snd/samples/freesound/vocals/ymaaela/333264__ymaaela__female-vocal-cut-ups-collage.wav");

(
{
    var sig = PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 0);

    // Hilbert transform
    var imag = HilbertH.ar(sig);

    // Envelope
    var envelope = (sig.squared + imag.squared).sqrt;

    // Listen to the extracted envelope (amplified to be audible)

	// envelope = RLPF.ar(envelope, 1200, 0.3);

    envelope * 0.5
}.play;
)
