How to detect a sufficient decay from Input?

Hi!

I would like to play the FX when the input from SoundIn.ar reaches a certain volume after the attack of the input. I am so confused right now after learning Onsets or DetectSilence!

Thanks.