On Wed, 2007-11-28 at 02:57 +0200, Chuckk Hubbard wrote:
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.
if you want to measure each sample, why converting the signal to messages then? why not staying in the audio domain? (staying in the audio domain is actually what [rcomp] does).
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de