#N canvas 572 80 557 515 10;
#X obj 0 0 cnv 15 552 40 empty empty history 3 12 0 18 -204280 -1 0
;
#X obj 0 317 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#X obj 0 440 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 0 501 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X obj 79 449 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 79 328 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 0 549 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#N canvas 238 349 428 75 Related_objects 0;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 Related Objects;
#X restore 206 551 pd Related_objects;
#N canvas 624 553 379 261 META 0;
#X text 12 199 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42. Updated by Fred Jan Kraan 2016-02.;
#X text 12 158 AUTHOR Olaf Matthes;
#X text 12 25 LICENSE GPL v2;
#X text 12 100 INLET_1 float;
#X text 12 5 KEYWORDS control analysis;
#X text 12 45 DESCRIPTION calculates the average of the floats that
came in within the last N milliseconds;
#X text 12 80 INLET_0 float reset linear geometric weight;
#X text 12 120 OUTLET_0 float;
#X text 12 140 OUTLET_1 float;
#X text 12 178 MAINTAINER Fred Jan Kraan <fjkraan@xs4all.nl>;
#X restore 502 553 pd META;
#X obj 79 412 cnv 17 3 17 empty empty 1 5 9 0 16 -228856 -162280 0
;
#X text 107 411 float;
#X text 107 449 float;
#X text 85 514 reference time. i.e. time in ms expected to be the duration
of the shortest note (also setable via rightmost inlet);
#X text 8 23 calculates the average of the floats received the last
N milliseconds, f 70;
#X floatatom 87 51 5 0 0 0 - - -, f 5;
#X floatatom 87 288 5 0 0 0 - - -, f 5;
#X floatatom 192 166 5 0 0 0 - - -, f 5;
#X floatatom 192 288 5 0 0 0 - - -, f 5;
#X msg 140 72 reset;
#X msg 152 93 linear;
#X msg 153 114 geometric;
#X msg 154 135 weight;
#X text 269 42 within the last N milliseconds;
#X obj 87 231 maxlib/history 250;
#X text 162 411 - buffer size in milliseconds;
#X text 107 327 float;
#X text 162 327 - input value;
#X text 107 344 geometric;
#X text 107 361 linear;
#X text 107 379 weight;
#X text 107 395 reset;
#X text 162 344 - geometric average;
#X text 162 361 - linear average (default);
#X text 162 379 - weighted average (giving newer items higher weight)
;
#X text 162 396 - forget everything;
#X text 161 449 - average over last N milliseconds;
#X obj 79 472 cnv 17 3 17 empty empty 1 5 9 0 16 -228856 -162280 0
;
#X text 107 472 float;
#X text 161 472 - tendency (up = 1 \, down = -1);
#N canvas 736 439 450 300 biased 0;
#X obj 179 92 metro 100;
#X obj 179 62 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 179 32 inlet;
#X obj 179 234 outlet;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 Biased randomizer;
#X floatatom 224 217 5 0 0 0 - - -, f 5;
#X obj 156 126 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X floatatom 226 186 5 0 0 0 - - -, f 5;
#X obj 179 126 random 100;
#X obj 179 156 / 100;
#X obj 179 186 + 9;
#X connect 0 0 7 0;
#X connect 0 0 9 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 9 0 10 0;
#X connect 10 0 8 0;
#X connect 10 0 11 0;
#X connect 11 0 3 0;
#X connect 11 0 6 0;
#X restore 264 91 pd biased randomizer;
#X obj 264 68 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 264 121 5 0 0 0 - - -, f 5;
#X obj 345 142 vsl 15 128 9 10 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X obj 328 142 vsl 15 128 9 10 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X msg 212 200 250;
#X text 318 259 9;
#X text 312 137 10;
#X obj 500 4 history;
#X connect 14 0 23 0;
#X connect 16 0 23 1;
#X connect 18 0 23 0;
#X connect 19 0 23 0;
#X connect 20 0 23 0;
#X connect 21 0 23 0;
#X connect 23 0 15 0;
#X connect 23 0 43 0;
#X connect 23 1 17 0;
#X connect 39 0 23 0;
#X connect 39 0 41 0;
#X connect 40 0 39 0;
#X connect 41 0 42 0;
#X connect 44 0 23 1;
