aboutsummaryrefslogtreecommitdiff
path: root/mouse-help.pd
blob: a7a1e5473cea3b06b62149e5589cf0ba7f9f1260 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#N canvas 0 31 660 430 10;
#X symbolatom 211 280 6 0 0 1 code - -;
#X obj 130 118 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0
1;
#X floatatom 339 280 5 0 0 1 value - -;
#X floatatom 140 280 5 0 0 3 wheel - -;
#X floatatom 85 280 7 0 0 3 Y - -;
#X floatatom 31 280 7 0 0 3 X - -;
#X obj 193 347 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 232 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 271 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X msg 175 95 open 0;
#X msg 180 114 open 1;
#X msg 185 133 open 2;
#N canvas 94 191 532 519 mouse-noise 0;
#X obj 26 18 inlet;
#X obj 199 314 noise~;
#X obj 155 336 osc~;
#X obj 113 387 *~;
#X msg 167 65 \; pd dsp 1;
#X obj 139 488 dac~;
#X obj 386 13 inlet;
#X text 448 14 open msgs;
#X text 340 169 get button value only;
#X obj 199 336 *~;
#X obj 312 207 / 2;
#X obj 113 448 pan/linear_pan~;
#X obj 276 426 line;
#X msg 276 403 \$1 20;
#X obj 276 318 +;
#X msg 313 294 0;
#X obj 155 242 abs;
#X obj 201 169 unpack symbol float;
#X obj 110 335 line~;
#X msg 110 312 \$1 3;
#X obj 155 314 * 20;
#X obj 276 339 min 20;
#X obj 276 358 max 0;
#X obj 276 294 int;
#X obj 276 379 / 20;
#X obj 155 287 mtof;
#X obj 155 203 hid/hid_rel2abs 0 1;
#X obj 155 223 - 1;
#X obj 155 267 mapping/notescale 30 60;
#X obj 200 403 loadbang;
#X msg 200 424 0.5;
#X obj 26 250 select 0;
#X msg 26 272 0;
#X text 11 224 mute on finish;
#X obj 26 43 trigger float float bang;
#X obj 312 318 float;
#X obj 132 149 hid/mouse;
#X connect 0 0 34 0;
#X connect 1 0 9 0;
#X connect 2 0 3 1;
#X connect 3 0 11 0;
#X connect 6 0 36 0;
#X connect 9 0 3 1;
#X connect 10 0 9 1;
#X connect 11 0 5 0;
#X connect 11 1 5 1;
#X connect 12 0 11 1;
#X connect 13 0 12 0;
#X connect 14 0 21 0;
#X connect 15 0 14 1;
#X connect 15 0 35 1;
#X connect 16 0 28 0;
#X connect 17 1 10 0;
#X connect 18 0 3 0;
#X connect 19 0 18 0;
#X connect 20 0 2 0;
#X connect 21 0 22 0;
#X connect 22 0 24 0;
#X connect 22 0 35 0;
#X connect 23 0 14 0;
#X connect 24 0 13 0;
#X connect 25 0 20 0;
#X connect 26 0 27 0;
#X connect 27 0 16 0;
#X connect 28 0 25 0;
#X connect 29 0 30 0;
#X connect 30 0 11 1;
#X connect 31 0 32 0;
#X connect 32 0 19 0;
#X connect 34 0 31 0;
#X connect 34 1 36 0;
#X connect 34 2 4 0;
#X connect 35 0 14 1;
#X connect 36 0 19 0;
#X connect 36 1 26 0;
#X connect 36 2 23 0;
#X connect 36 3 17 0;
#X restore 407 188 pd mouse-noise;
#X obj 407 131 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0
1;
#X text 354 107 turn this on to make some noise with the mouse;
#X obj 211 253 unpack symbol float;
#X text 282 296 buttons;
#X obj 310 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 349 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 388 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 427 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 466 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 2 2 cnv 15 650 20 empty empty mouse 2 11 1 18 -233017 -66577
0;
#X obj 505 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 496 396 pddp/pddplink ../all_about_hid.pd -text all_about_hid
;
#X text 387 397 For more info:;
#X obj 544 346 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 193 326 route btn_0 btn_1 btn_2 btn_3 btn_4 btn_5 btn_6 btn_7
btn_8;
#X text 12 36 Use a mouse device with Pd. This object auto-calibrates
the output of axis data. Move the device around as fast as possible
in each axis to calibrate it.;
#X text 13 123 turn on polling:;
#X msg 180 158 refresh;
#X obj 619 3 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X msg 500 160 open \$1;
#X obj 500 140 hradio 15 1 1 8 \$0-device-number empty choose_a_device
0 -6 1 9 -262144 -1 -1 1;
#X obj 474 140 nbx 1 14 -1e+37 1e+37 0 0 empty \$0-device-number empty
0 -6 0 14 -166441 -1 -1 0 256;
#X msg 76 154 print;
#X obj 130 183 hid/mouse 1;
#N canvas 472 31 494 344 META 0;
#X text 12 185 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL;
#X text 12 165 AUTHOR Hans-Christoph Steiner;
#X text 12 45 DESCRIPTION use a mouse device with Pd;
#X text 12 65 INLET_0 float print open refresh;
#X text 12 85 OUTLET_0 float;
#X text 12 105 OUTLET_1 float;
#X text 12 125 OUTLET_2 float;
#X text 12 145 OUTLET_3 list;
#X text 12 5 KEYWORDS control user_input abstraction;
#X restore 604 400 pd META;
#X connect 1 0 36 0;
#X connect 9 0 36 0;
#X connect 10 0 36 0;
#X connect 11 0 36 0;
#X connect 13 0 12 0;
#X connect 15 0 0 0;
#X connect 15 1 2 0;
#X connect 27 0 6 0;
#X connect 27 1 7 0;
#X connect 27 2 8 0;
#X connect 27 3 17 0;
#X connect 27 4 18 0;
#X connect 27 5 19 0;
#X connect 27 6 20 0;
#X connect 27 7 21 0;
#X connect 27 8 23 0;
#X connect 27 9 26 0;
#X connect 30 0 36 0;
#X connect 32 0 12 1;
#X connect 33 0 32 0;
#X connect 35 0 36 0;
#X connect 36 0 5 0;
#X connect 36 1 4 0;
#X connect 36 2 3 0;
#X connect 36 3 15 0;
#X connect 36 3 27 0;