On Nov 28, 2007 2:08 AM, Vreahli the Audio Bandit vreahli@gmail.com wrote:
Heya - I'm just curious - is it even possible to build a compressor in PD without coding it in C? The only way I can think of getting the overall loudness of a signal is by checking audio rate stuff - which won't work with control rate values. Just a curiosity. :)
[env~] gives such a level at control rate. It's also possible to re-block~ a subpatch to 1, calculate whatever average or level you like there, and pass it out; then [bang~] in the containing patch will grab a value from it once per block. It wouldn't be hard to have an audio-rate rms or peak calculator, then use [bang~] and [snapshot~] to read it, if [env~] isn't good enough for you.
-Chuckk