i made one called [scalenum] that i use all the time. -josh
I think a handly abstraction would be one that scales the incoming range to
a specified range automatically... has 4 args, the min and max of the input
and the desired min and max. if no one else has bothered I'll patch on up
myself.
B.
--
____________________________________________________
independent u.s. drum'n'bass --
http://vitriolix.com
#N canvas 141 178 799 461 8;
#X obj 22 376 outlet;
#X floatatom 72 297 5 0 0 0 - - -;
#X obj 22 18 inlet;
#X floatatom 85 25 5 0 0 0 - - -;
#X obj 71 96 $1;
#X obj 44 56 t f b;
#X obj 101 96 $2;
#X obj 130 96 $3;
#X obj 160 96 $4;
#X obj 44 238 expr ((( $f1 - $f2 ) / ( $f3 - $f2 ) ) * ( $f5 - $f4
)) + $f4;
#X connect 2 0 5 0;
#X connect 3 0 5 0;
#X connect 4 0 9 1;
#X connect 5 0 9 0;
#X connect 5 1 4 0;
#X connect 5 1 6 0;
#X connect 5 1 7 0;
#X connect 5 1 8 0;
#X connect 6 0 9 2;
#X connect 7 0 9 3;
#X connect 8 0 9 4;
#X connect 9 0 1 0;
#X connect 9 0 0 0;