#N canvas 631 132 494 476 10;
#X obj 29 391 outlet;
#X obj 29 77 inlet;
#X text 29 22 Smooths a value so its changes variate less.;
#X text 29 35 Creation argument indicates the buffer size.;
#X text 30 7 KM SMOOTH;
#X obj 188 87 array define \$0-smooth \$1;
#X obj 29 269 array sum \$0-smooth;
#X obj 103 138 i 0;
#X obj 48 191 array set \$0-smooth;
#X obj 136 139 + 1;
#X obj 136 163 mod \$1;
#X obj 29 108 t b f b;
#X text 188 108 Creates buffer (click to view);
#X text 50 213 Write new value in array;
#X obj 29 295 t a b;
#X obj 56 324 array size \$0-smooth;
#X obj 29 357 /;
#X text 43 248 Sum all values;
#X text 75 304 Divide to get average;
#X connect 1 0 11 0;
#X connect 6 0 14 0;
#X connect 7 0 9 0;
#X connect 7 0 8 1;
#X connect 9 0 10 0;
#X connect 10 0 7 1;
#X connect 11 0 6 0;
#X connect 11 1 8 0;
#X connect 11 2 7 0;
#X connect 14 0 16 0;
#X connect 14 1 15 0;
#X connect 15 0 16 1;
#X connect 16 0 0 0;
