/
unit-joystick_.pd
40 lines (40 loc) · 1.09 KB
/
unit-joystick_.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
#N canvas 404 538 403 268 10;
#X obj 28 189 outlet;
#X obj 19 56 inlet;
#X obj 105 193 outlet;
#X text 16 21 parses incoming OSC data for OSC from unit_joysticks
;
#X text 115 56 incoming OSC messages;
#X text 132 102 creation arg : address for the device;
#X text 188 154 strip out axis and button events;
#X text 30 210 axis;
#X text 195 194 events are sent out in lists;
#X text 224 239 button # 0 is down aka '1';
#X text 197 216 ex: /button "0 1";
#X text 104 217 buttons;
#X obj 19 152 routeOSC /axis /button;
#X text 217 122 ex: /joy1;
#X obj 19 239 s \$1/axis;
#X obj 83 239 s \$1/button;
#N canvas 4 48 450 300 creation 0;
#X obj 49 23 loadbang;
#X obj 49 49 symbol \$1;
#X obj 49 100 route bang;
#X msg 106 125 set \$1;
#X obj 49 73 s2l;
#X obj 106 156 outlet;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 2 1 3 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X restore 56 81 pd creation arg;
#X obj 19 109 routeOSC /REPLACE;
#X connect 1 0 17 0;
#X connect 12 0 0 0;
#X connect 12 0 14 0;
#X connect 12 1 2 0;
#X connect 12 1 15 0;
#X connect 16 0 17 0;
#X connect 17 0 12 0;
#X coords 0 0 1 1 130 75 0;