#N canvas 493 24 546 593 12;
#X floatatom 47 347 8 0 0 0 - - - 0;
#X obj 18 11 env~;
#X text 58 12 - envelope follower;
#X obj 47 211 osc~ 400;
#X obj 47 268 *~;
#X floatatom 132 196 5 0 100 0 - - - 0;
#X obj 132 237 dbtorms;
#X obj 47 303 env~ 16384 8192;
#X text 164 279 creation arguments:;
#X text 30 92 The analysis is "Hanning" (raised cosine) windowed., f 67;
#X text 30 114 The optional creation arguments are the analysis window size in samples \, and the period (the number of samples between analyses). The latter should normally be a multiple of the DSP block size \, although this isn't enforced., f 67;
#X msg 368 221 \; pd dsp \$1;
#X obj 48 415 vu 15 120 empty empty -1 -8 0 10 #404040 #000000 1 0;
#X obj 47 382 - 100;
#X obj 5 42 cnv 1 535 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#N canvas 782 192 516 228 reference 0;
#X obj 11 47 cnv 5 480 5 empty empty INLET: 8 18 0 13 #202020 #000000 0;
#X obj 11 93 cnv 2 480 2 empty empty OUTLET: 8 12 0 13 #202020 #000000 0;
#X obj 10 200 cnv 5 480 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X obj 11 131 cnv 2 480 2 empty empty ARGUMENTS: 8 12 0 13 #202020 #000000 0;
#X text 140 62 signal -;
#X obj 28 16 env~;
#X text 71 17 - envelope follower;
#X text 203 62 signal to be analyzed., f 27;
#X text 147 103 float - RMS envelope in dB., f 35;
#X text 109 141 1) float - window size in samples (default 1024).;
#X text 109 160 2) float -;
#X text 186 159 period in samples per analysis (default halft the window size)., f 38;
#X restore 369 11 pd reference;
#X text 463 11 <= click;
#X text 162 295 - window size in samples (1024 default);
#X text 162 313 - period in samples per analysis (window/2 default);
#X obj 5 552 cnv 1 535 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X text 176 195 <-- set peak-to-peak amplitude here in dB., f 21;
#X text 114 347 <-- the output is RMS amplitude which (for a sinusoid) is about 3 dB below peak-to-peak amplitude., f 54;
#X text 105 427 <-- see also [vu];
#X text 321 563 updated for Pd version 0.4;
#X obj 368 185 set-dsp-tgl;
#X text 399 189 DSP on/off;
#X text 30 56 The [env~] object takes a signal and outputs its RMS amplitude in dB (with 1 normalized to 100 dB.) Output is bounded below by zero., f 67;
#X text 16 564 see also:;
#X obj 94 563 sigmund~;
#X connect 0 0 13 0;
#X connect 3 0 4 0;
#X connect 4 0 7 0;
#X connect 5 0 6 0;
#X connect 6 0 4 1;
#X connect 7 0 0 0;
#X connect 13 0 12 0;
#X connect 24 0 11 0;
