Or you may create an abstraction similar to the attached one, which
mimics I think the behaviour of the [range] external included in (??)
pd-extended (??)

Left inlet is the value to be rescaled; inlets 2 to 5 are input range
min/max and output range min/max, respectively. Also, creation
arguments can be used to initialize them.

So in your example you would use 0,1,-4,4 as creation arguments (or
send them to the inlets starting from the second).

-- 
Matteo Sisti Sette
[EMAIL PROTECTED]
http://www.matteosistisette.com
#N canvas 403 65 462 585 12;
#X obj 92 229 inlet;
#X obj 92 263 - \$1;
#X obj 176 131 loadbang;
#X obj 176 197 f \$2;
#X obj 176 229 - \$1;
#X obj 92 292 /;
#X obj 176 167 t b b;
#X obj 211 301 f \$4;
#X obj 211 334 - \$3;
#X obj 92 323 *;
#X obj 92 397 + \$3;
#X obj 92 422 outlet;
#X obj 185 82 inlet;
#X obj 235 84 inlet;
#X obj 290 84 inlet;
#X obj 343 84 inlet;
#X obj 119 115 t b f;
#X obj 269 266 t b f;
#X connect 0 0 1 0;
#X connect 1 0 5 0;
#X connect 2 0 6 0;
#X connect 3 0 4 0;
#X connect 4 0 5 1;
#X connect 5 0 9 0;
#X connect 6 0 3 0;
#X connect 6 1 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 1;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 12 0 1 1;
#X connect 12 0 16 0;
#X connect 13 0 3 0;
#X connect 14 0 10 1;
#X connect 14 0 17 0;
#X connect 15 0 7 0;
#X connect 16 0 3 0;
#X connect 16 1 4 1;
#X connect 17 0 7 0;
#X connect 17 1 8 1;
_______________________________________________
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to