aboutsummaryrefslogtreecommitdiff
path: root/pd/mapping2degrees.pd
blob: af40bca5ea42d424f8471402acf16652602c3397 (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
#N canvas 163 40 444 356 10;
#X obj 88 30 inlet;
#X obj 89 264 outlet;
#X obj 88 56 min 1;
#X obj 88 74 max 0;
#X text 133 63 its a [hid] object \, so limit input range;
#X text 232 311 released under the GNU GPL;
#X text 15 297 (C) Copyright 2005 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 19 9 [hid2deg];
#X text 129 28 input range: 0 to 1 \, 0 = east/right;
#X text 143 264 output range: 0 to 360 \, 0 = north/top;
#X obj 88 100 * 360;
#X text 162 189 % is an int operation;
#X text 169 207 this saves accuracy;
#X obj 88 148 abs;
#X obj 88 123 - 450;
#X text 131 122 <- rotate zero to north;
#X text 130 148 <- change direction of rotation;
#X obj 89 202 % 3.6e+07;
#X obj 89 223 / 100000;
#X obj 89 181 * 100000;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 10 0;
#X connect 10 0 14 0;
#X connect 13 0 19 0;
#X connect 14 0 13 0;
#X connect 17 0 18 0;
#X connect 18 0 1 0;
#X connect 19 0 17 0;