aboutsummaryrefslogtreecommitdiff
path: root/examples/polar-joystick.pd
blob: c1df190bca2d2f72ea3f55737aee7247ce08b5a2 (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
42
43
44
45
46
47
48
49
#N canvas 233 112 468 474 10;
#X obj 164 172 joystick 3;
#X obj 201 204 hid_invert;
#X obj 163 119 tgl 25 0 empty empty start 1 12 1 9 -225271 -1 -1 0
1;
#X msg 226 138 open \$1;
#X obj 226 118 hradio 15 1 1 8 \$0-device-number empty choose_a_device
0 -6 1 9 -225271 -1 -1 3;
#X obj 200 118 nbx 1 14 -1e+37 1e+37 0 0 empty \$0-device-number empty
0 -6 0 14 -166441 -1 -1 3 256;
#X msg 112 119 print;
#X obj 201 288 mtof;
#X obj 201 308 osc~;
#X obj 142 345 *~;
#X obj 142 391 dac~;
#X obj 101 295 line~;
#X msg 101 273 \$1 5;
#X obj 101 254 hid_cube;
#X obj 201 268 notescale 40 90;
#X text 25 38 This patch uses the angle of the joystick to control
pitch and the distance from the centerpoint to control amplitude. The
joystick Z/twist is mapped to pan.;
#X obj 142 369 pan~;
#X obj 143 226 hid_polar;
#X text 254 444 released under the GNU GPL;
#X text 40 429 (C) Copyright 2005 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 14 9 polar_joystick;
#X obj 201 248 hid_log;
#X connect 0 0 17 0;
#X connect 0 1 1 0;
#X connect 0 2 16 1;
#X connect 1 0 17 1;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 3 0;
#X connect 6 0 0 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 16 0;
#X connect 11 0 9 1;
#X connect 12 0 11 0;
#X connect 13 0 12 0;
#X connect 14 0 7 0;
#X connect 16 0 10 0;
#X connect 16 1 10 1;
#X connect 17 0 13 0;
#X connect 17 1 21 0;
#X connect 21 0 14 0;