-
Notifications
You must be signed in to change notification settings - Fork 2
/
map-help.pd
50 lines (50 loc) · 1.78 KB
/
map-help.pd
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
#N canvas 321 243 798 478 10;
#X floatatom 33 63 5 0 1023 0 - - -, f 5;
#X obj 33 82 map 0 1023 0 1;
#X floatatom 33 104 5 0 0 0 - - -, f 5;
#X obj 32 13 cnv 15 340 40 empty empty empty 20 12 0 14 -204786 -66577
0;
#X text 42 21 map: number stream scaling abstraction \, inspired by
Arduino's map function;
#X floatatom 33 143 5 -20 10 0 - - -, f 5;
#X floatatom 33 184 5 0 0 0 - - -, f 5;
#X obj 33 162 map 10 -20 30 40;
#X floatatom 33 223 5 -35 12 0 - - -, f 5;
#X floatatom 33 264 5 0 0 0 - - -, f 5;
#X obj 33 242 map -35 12 27 -89;
#X text 424 21 Arguments:;
#X text 482 72 3rd: Lowest value of output stream;
#X text 482 88 4th: Highest value of output stream;
#X text 482 40 1st: Lowest value of input stream;
#X text 482 56 2nd: Highest value of input stream;
#X text 442 129 Inlets:;
#X text 436 254 Outlets:;
#X text 482 273 1st: scalled output stream;
#X text 79 62 <- scroll numbers to see the output;
#X floatatom 33 374 5 0 0 0 - - -, f 5;
#X obj 33 352 map 0 100 0 1;
#X floatatom 78 303 5 0 0 0 - - -, f 5;
#X floatatom 118 303 5 0 0 0 - - -, f 5;
#X floatatom 158 303 5 0 0 0 - - -, f 5;
#X floatatom 198 303 5 0 0 0 - - -, f 5;
#X floatatom 33 302 5 0 0 0 - - -, f 5;
#X text 134 348 you can replace all arguments with numbers sent to
the respective inlets;
#X text 35 426 made by Alexandros Drymonitis;
#X text 482 147 1st: input number stream;
#X text 482 163 2nd: Lowest value of input stream;
#X text 482 179 3rd: Highest value of input stream;
#X text 482 195 4th: Lowest value of output stream;
#X text 482 211 5th: Highest value of output stream;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 5 0 7 0;
#X connect 7 0 6 0;
#X connect 8 0 10 0;
#X connect 10 0 9 0;
#X connect 21 0 20 0;
#X connect 22 0 21 1;
#X connect 23 0 21 2;
#X connect 24 0 21 3;
#X connect 25 0 21 4;
#X connect 26 0 21 0;