Sharing is fun, and so i am just starting this thread to share gen code among OWL users. Post your own Max compressed code below, if you like.
Here’s a code snipped to generate a pseudo trigger (1) from comparing peak and rms levels of an audio signal.
Good to trigger an envelope for instance, or a change in delay time, or a filter change, however, good to trigger all kinds of things from audio levels. Includes just one control: Threshold.
Same code is shared also here.
*Enjoy and share your own snippets, if you may.
----------begin_max5_patcher----------
2846.3oc4bs0bhiiE94jeEZ7SjzIDKYrA1T8VcW0r0LyCaMW5G6LUJis.b2F
YZYAILSM8u8UxxF7MYKS.BcuODGPWrN56bQeGKK96KuvXRzy3XCv+B7QvEW7
2WdwEIEIJ3hzuegwB2m8BciSZlgWzhEXBy3FYcL7yrjx+ILAScYXfKfQClMC
SASoQK.OPVhc+LXMlFuJF7G+2O.Bwqwgw8ef7.4mh7i.rns8vk.d+O9g+3FP
j3yaXyCHy.7FiATraX3la.OMOvaNffw9whNNAKuc.e7RLwmKXI22+C4SQa5C
9j6FZzR7Cjeq+G5C9EeraLvMbQTLCvaY.EGtALIhRidB6Kk1oADe9XFChHbI
2aiWH+aCGz2STWDc0h39fecN3IbXX+LHf2DrWzJRBN.sRKkrZQzJVHlk.alo
ktzk4IlTORwdLIriFMpu4M.z.wUns7eif8MA+YZmB7SP3nIe51QYCZLaSHNo
XicCX.Ia7fhx9mKuTb4FM0rrnYy32yZkeXZoxhXaVhkBuQfXZ+mML6flISng
C1MIEWqaxMzX68g5t.yvzGwD2Ix4o4wahyuASvzulc+lFQXwA+Uxf.Q8MqEP
Pp.j3fYD2Pia.FSCibyANKh7w46YMfEbnUBXMHAyrcR.KTNvheySvhsBkPVI
brJYd7dZfXjqfqNaKivwz071HDic2jVfTTtwZpqmTarOvL9ItzTIvwRZhqK3
8czxqEyNn.7FMVb0wtBPlCcrOhtTgAqw88yoUV6R2ptpTolVX0XaoFAjdbCj
WGVOBLnI+NXsXQFj4tF6+nKiG+dxJFd2mhSAkTTQLwCWgillUbV44GyvHxLk
fSgVFOOhtyrmMmh4kD5WWSyvMyZpa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