aboutsummaryrefslogtreecommitdiff
path: root/hid_polar.pd
blob: 0a3a424af272d2fbb011eb1dd1fccf99adeada2a (plain)
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
#N canvas 328 234 468 411 10;
#X obj 30 58 inlet;
#X obj 25 313 outlet;
#X text 73 313 output range: 0 to 1;
#X text 72 57 input range: 0 to 1;
#X text 11 5 [hid_polar];
#X obj 232 312 outlet;
#X obj 224 56 inlet;
#X text 264 57 input range: 0 to 1;
#X text 29 29 x-axis value;
#X text 221 26 y-axis value;
#X obj 25 282 / 1.41421;
#X text 92 282 (sqrt 2);
#X obj 104 220 cart2pol;
#X obj 223 85 t b f;
#X obj 29 180 f;
#X obj 252 140 - 1;
#X obj 252 120 * 2;
#X obj 29 140 - 1;
#X obj 29 120 * 2;
#X text 61 125 convert range to -1 to 1;
#X text 280 312 output range: 0 to 1;
#X text 245 371 released under the GNU GPL;
#X text 28 357 (C) Copyright 2005 Hans-Christoph Steiner <hans@at.or.at>
;
#X obj 231 280 rad2hid;
#X text 23 331 radius;
#X text 230 332 angle;
#X connect 0 0 18 0;
#X connect 6 0 13 0;
#X connect 10 0 1 0;
#X connect 12 0 10 0;
#X connect 12 1 23 0;
#X connect 13 0 14 0;
#X connect 13 1 16 0;
#X connect 14 0 12 0;
#X connect 15 0 12 1;
#X connect 16 0 15 0;
#X connect 17 0 14 0;
#X connect 18 0 17 0;
#X connect 23 0 5 0;