#N canvas 229 80 470 526 10; #X floatatom 26 76 5 0 0 0 - - -; #X floatatom 26 140 0 0 0 0 - - -; #X obj 2 -10 cnv 15 450 20 empty empty [autoscale] 2 11 1 18 -233017 -66577 0; #X text 18 23 [autoscale] scales a stream of numbers based on an output range set as arguments \, and an input range which is set dynamically. ; #X floatatom 177 244 5 0 0 1 min - -; #X obj 161 301 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X text 221 465 released under the GNU GPL; #X floatatom 150 140 0 0 0 0 - - -; #X floatatom 297 140 0 0 0 0 - - -; #X obj 213 71 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X text 4 484 $Revision: 1.4 $$Date: 2006-12-23 06:24:59 $; #X text 316 484 $Author: eighthave $; #X floatatom 136 363 5 0 0 0 - - -; #X obj 161 416 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 9358 1; #X msg 186 361 reset; #X text 13 181 If you use [autoscale] with no arguments \, then the output range defaults to 0-1.; #X msg 239 361 bang; #X obj 158 393 autoscale; #X text 14 211 You can also set the output min and max using the 2nd and 3rd inlets:; #X floatatom 195 260 5 0 0 1 max - -; #X floatatom 117 250 5 0 0 0 - - -; #X obj 295 361 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X obj 26 110 autoscale; #X obj 158 278 autoscale; #X obj 150 110 autoscale -0.01 0.01; #X obj 297 110 autoscale -4095 4095; #X text 4 451 (C) Copyright 2006 Hans-Christoph Steiner ; #X text 14 322 The [reset( message or banging the 4th inlet resets the stored max and min to zero. 0 disables the auto-tracking \, 1 re-enables it:; #X connect 0 0 22 0; #X connect 4 0 23 1; #X connect 9 0 24 0; #X connect 9 0 25 0; #X connect 12 0 17 0; #X connect 14 0 17 0; #X connect 16 0 17 3; #X connect 17 0 13 0; #X connect 19 0 23 2; #X connect 20 0 23 0; #X connect 21 0 17 3; #X connect 22 0 1 0; #X connect 23 0 5 0; #X connect 24 0 7 0; #X connect 25 0 8 0;