File: expr_scale.pd

package info (click to toggle)
pd-jmmmp 0.61-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,060 kB
  • sloc: makefile: 12
file content (63 lines) | stat: -rw-r--r-- 1,595 bytes parent folder | download
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
#N canvas 580 191 720 509 10;
#X obj 32 340 expr ($f1-$f2)*($f4-$f5)/($f2-$f3)+$f4;
#X obj 118 298 f \$1;
#X obj 268 300 f \$4;
#X obj 218 296 f \$3;
#X obj 168 296 f \$2;
#X obj 118 209 inlet;
#X obj 168 209 inlet;
#X obj 218 209 inlet;
#X obj 268 209 inlet;
#X obj 32 71 inlet;
#X obj 32 381 outlet;
#X text 376 185 ARGS;
#X text 386 209 1: input_low_border;
#X text 386 231 2: input_high_border;
#X text 386 257 3: output_low_border;
#X text 386 279 4: output_high_border;
#X text 95 161 scale [from_low \, from_hi] to [to_low \, to_hi];
#X obj 139 255 t b;
#X obj 164 183 loadbang;
#X obj 32 168 t f b;
#N canvas 0 0 1090 704 once 0;
#X obj 86 53 inlet;
#X obj 92 185 outlet;
#X obj 81 146 spigot 1;
#X obj 112 91 t b a;
#X msg 131 123 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 62 198 pd once;
#X text 40 403 [pc once] is only used \, because autogenerated objects
don't receive loadbangs;
#X text 59 30 jmmmp copied from somewhere;
#X obj 32 91 route float list;
#X obj 92 122 unpack f f f f f;
#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 23 0;
#X connect 17 0 1 0;
#X connect 17 0 3 0;
#X connect 17 0 4 0;
#X connect 17 0 2 0;
#X connect 18 0 17 0;
#X connect 19 0 0 0;
#X connect 19 1 20 0;
#X connect 20 0 17 0;
#X connect 23 0 19 0;
#X connect 23 1 24 0;
#X connect 24 0 19 0;
#X connect 24 1 0 1;
#X connect 24 2 0 2;
#X connect 24 3 0 3;
#X connect 24 4 0 4;