/usr/lib/pd/extra/hcs/autoscale.pd is in pd-hcs 0.1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #N canvas 206 226 773 542 10;
#X obj 45 30 inlet;
#X obj 175 453 outlet;
#X obj 235 268 f;
#X text 262 268 min;
#X text 360 269 max;
#X obj 454 167 f \$1;
#X obj 652 167 f \$2;
#X obj 235 245 moses 0;
#X obj 320 245 moses 0;
#X obj 175 102 trigger float float float bang bang;
#X obj 175 390 expr (($f1 - $f2) * (($f5 - $f4) / ($f3 - $f2))) + $f4
;
#X obj 326 205 oneshot;
#X obj 364 226 f;
#X obj 320 178 t f b f;
#X obj 241 205 oneshot;
#X obj 279 226 f;
#X obj 235 178 t f b f;
#X obj 384 269 + 1e-09;
#X obj 478 213 ==;
#X obj 478 233 sel 1;
#X obj 545 77 loadbang;
#X obj 478 299 print [autoscale];
#X floatatom 472 189 5 0 0 0 - - -;
#X obj 545 100 t b b;
#X obj 454 329 expr if ($f1 == $f2 \, 0 \, $f1) \; if ($f1 == $f2 \,
127 \, $f2);
#X msg 478 278 using default range (0-127);
#X obj 478 256 oneshot;
#X text 2 476 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 219 491 released under the GNU GPL;
#X text 417 475 $Revision: 1.5 $$Date: 2004-11-28 20:50:14 $;
#X text 417 488 $Author: eighthave $;
#X obj 45 62 route reset;
#X obj 45 81 bang;
#X msg 45 129 0;
#X msg 114 102 clear;
#X text 172 47 these [oneshot] bits are just here to get the max/min
tracking started;
#X text 8 3 [autoscale];
#X connect 0 0 31 0;
#X connect 2 0 7 1;
#X connect 2 0 10 1;
#X connect 5 0 18 0;
#X connect 5 0 22 0;
#X connect 5 0 24 0;
#X connect 6 0 18 1;
#X connect 6 0 24 1;
#X connect 7 0 2 0;
#X connect 8 1 17 0;
#X connect 9 0 10 0;
#X connect 9 1 16 0;
#X connect 9 2 13 0;
#X connect 9 3 5 0;
#X connect 9 4 6 0;
#X connect 10 0 1 0;
#X connect 11 0 12 0;
#X connect 12 0 8 1;
#X connect 13 0 8 0;
#X connect 13 1 11 0;
#X connect 13 2 12 1;
#X connect 14 0 15 0;
#X connect 15 0 7 1;
#X connect 16 0 7 0;
#X connect 16 1 14 0;
#X connect 16 2 15 1;
#X connect 17 0 8 1;
#X connect 17 0 10 2;
#X connect 18 0 19 0;
#X connect 19 0 26 0;
#X connect 20 0 23 0;
#X connect 23 0 5 0;
#X connect 23 1 6 0;
#X connect 24 0 10 3;
#X connect 24 1 10 4;
#X connect 25 0 21 0;
#X connect 26 0 25 0;
#X connect 31 0 32 0;
#X connect 31 1 9 0;
#X connect 32 0 33 0;
#X connect 32 0 34 0;
#X connect 33 0 2 0;
#X connect 33 0 12 0;
#X connect 34 0 14 0;
#X connect 34 0 11 0;
|