#N canvas 236 224 830 538 10; #X obj 166 328 expr ($f1-$f2)*($f4-$f5)/($f2-$f3)+$f4; #X obj 252 286 f \$1; #X obj 402 288 f \$4; #X obj 352 284 f \$3; #X obj 302 284 f \$2; #X obj 252 197 inlet; #X obj 302 197 inlet; #X obj 352 197 inlet; #X obj 402 197 inlet; #X obj 166 129 inlet; #X obj 166 369 outlet; #X text 510 173 ARGS; #X text 520 197 1: input_low_border; #X text 520 219 2: input_high_border; #X text 520 245 3: output_low_border; #X text 520 267 4: output_high_border; #X obj 273 243 t b; #X obj 298 171 loadbang; #X obj 166 156 t f b; #N canvas 586 431 389 352 once 0; #X obj 139 41 inlet; #X obj 169 200 outlet; #X obj 169 164 spigot 1; #X obj 139 69 t b a; #X obj 220 140 0; #X connect 0 0 3 0; #X connect 2 0 1 0; #X connect 3 0 4 0; #X connect 3 1 2 0; #X connect 4 0 2 1; #X restore 196 186 pd once; #X text 229 132 scale linearily [from_low \, from_hi] to [to_low \, to_hi]; #X text 165 412 [pc once] is only used \, because autogenerated objects don't receive loadbangs \, and I needed to initialise this object even when using internal message generation.; #X connect 0 0 10 0; #X connect 1 0 0 1; #X connect 2 0 0 4; #X connect 3 0 0 3; #X connect 4 0 0 2; #X connect 5 0 1 0; #X connect 6 0 4 0; #X connect 7 0 3 0; #X connect 8 0 2 0; #X connect 9 0 18 0; #X connect 16 0 1 0; #X connect 16 0 3 0; #X connect 16 0 4 0; #X connect 16 0 2 0; #X connect 17 0 16 0; #X connect 18 0 0 0; #X connect 18 1 19 0; #X connect 19 0 16 0;