[Sharing is fun] Peak over RMS, pseudo trigger generator
Here's a bit of gen code comparing peak versus RMS levels and constructing a pseudo trigger (1) at signal rate for use with all kinds of subsequent action, ADSRs, any kind of audio level dependent change, filters, pitch, delay times, you imagine it yourself.
*Enjoy. (Open for improvement)
Max Patch
Copy patch and select New From Clipboard in Max.
Super useful, thanks!