PageRenderTime 478ms CodeModel.GetById 468ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/cobaia.pd

http://github.com/glerm/conSerto
Unknown | 369 lines | 369 code | 0 blank | 0 comment | 0 complexity | 5e093bdc5113ed86f9080239e70f7acf MD5 | raw file
  1#N canvas 9 101 1009 634 10;
  2#X floatatom 27 439 5 0 0 0 - - -;
  3#X floatatom 83 439 5 0 0 0 - - -;
  4#X floatatom 778 578 6 0 0 0 - - -;
  5#X obj 133 76 tgl 35 0 empty empty empty 0 -6 0 8 -24198 -1 -1 25 25
  6;
  7#X floatatom 571 340 12 0 0 1 value - -;
  8#X symbolatom 531 356 15 0 0 1 event_code - -;
  9#X symbolatom 492 372 15 0 0 1 event_type - -;
 10#X text 274 332 outlet message format:;
 11#X floatatom 138 343 5 0 0 1 ev_syn - -;
 12#X obj 111 342 +;
 13#X msg 111 322 1;
 14#X obj 16 291 route key rel abs syn;
 15#X obj 244 584 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 161;
 17#X floatatom 140 439 5 0 0 0 - - -;
 18#X obj 421 394 route abs_hat0x abs_hat0y abs_hat1x abs_hat1y;
 19#X floatatom 551 579 7 0 0 0 - - -;
 20#X obj 304 250 hid 0;
 21#X text 9 212 Any non-zero value starts polling \,;
 22#X text 8 225 0 stops the polling. If the number;
 23#X text 9 238 is greater than 1 \, then the poll;
 24#X text 9 251 delay is set to that number.;
 25#X obj 27 419 route rel_x rel_y rel_z rel_wheel;
 26#X floatatom 196 439 5 0 0 0 - - -;
 27#X obj 492 321 unpack s s f;
 28#X text 298 346 event_type event_code value;
 29#X obj 63 374 route abs_x abs_y abs_z abs_rx abs_ry abs_rz abs_throttle
 30;
 31#X floatatom 605 575 7 0 0 0 - - -;
 32#X floatatom 113 395 6 0 0 0 - - -;
 33#X floatatom 727 580 6 0 0 0 - - -;
 34#X floatatom 681 583 6 0 0 0 - - -;
 35#X floatatom 263 395 6 0 0 0 - - -;
 36#X floatatom 313 395 6 0 0 0 - - -;
 37#X floatatom 363 395 6 0 0 0 - - -;
 38#X obj 354 581 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 391;
 40#X obj 326 585 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 411;
 42#X obj 299 584 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 431;
 44#X obj 188 584 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 451;
 46#X obj 271 584 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 471;
 48#X obj 159 584 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 491;
 50#X obj 216 584 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 511;
 52#X obj 471 555 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 531;
 54#X obj 443 557 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 551;
 56#X obj 309 502 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 571;
 58#X obj 339 502 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 591;
 60#X obj 369 502 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 611;
 62#X obj 399 502 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 631;
 64#X obj 9 460 route btn_0 btn_1 btn_2 btn_3 btn_4 btn_5 btn_6 btn_7
 65btn_8 btn_9 btn_10 btn_11 btn_12 btn_13 btn_14 btn_15;
 66#X obj 429 502 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 671;
 68#X obj 459 502 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
 691;
 70#X msg 25 155 debug 0;
 71#N canvas 752 103 411 235 see 0;
 72#N canvas 108 318 543 264 route 0;
 73#X obj 27 14 inlet;
 74#X obj 72 226 outlet;
 75#X obj 19 226 outlet;
 76#X obj 172 226 outlet;
 77#X obj 222 204 symbol;
 78#X obj 222 226 outlet;
 79#X obj 272 204 symbol;
 80#X obj 272 226 outlet;
 81#X obj 322 204 symbol;
 82#X obj 322 226 outlet;
 83#X obj 372 204 symbol;
 84#X obj 372 226 outlet;
 85#X obj 122 225 outlet;
 86#X obj 422 204 symbol;
 87#X obj 422 226 outlet;
 88#X obj 472 204 symbol;
 89#X obj 472 226 outlet;
 90#X obj 26 63 route open device poll total product manufacturer transport
 91type vendorID productID;
 92#X connect 0 0 17 0;
 93#X connect 4 0 5 0;
 94#X connect 6 0 7 0;
 95#X connect 8 0 9 0;
 96#X connect 10 0 11 0;
 97#X connect 13 0 14 0;
 98#X connect 15 0 16 0;
 99#X connect 17 0 2 0;
100#X connect 17 1 1 0;
101#X connect 17 2 12 0;
102#X connect 17 3 3 0;
103#X connect 17 4 4 0;
104#X connect 17 5 6 0;
105#X connect 17 6 8 0;
106#X connect 17 7 10 0;
107#X connect 17 8 13 0;
108#X connect 17 9 15 0;
109#X restore 117 70 pd route info;
110#X obj 81 96 tgl 15 0 empty empty open 0 -6 0 8 -262144 -1 -1 1 1;
111#X obj 110 22 inlet;
112#X obj 123 43 print info;
113#X symbolatom 304 93 0 0 0 0 productID - -;
114#X symbolatom 304 112 0 0 0 0 vendorID - -;
115#X symbolatom 304 151 0 0 0 0 transport - -;
116#X symbolatom 304 171 0 0 0 0 manufacturer - -;
117#X symbolatom 186 192 0 0 0 0 product - -;
118#X floatatom 97 140 5 0 0 0 device - -;
119#X floatatom 97 162 5 0 0 0 poll - -;
120#X symbolatom 304 131 0 0 0 0 type - -;
121#X floatatom 97 182 5 0 0 0 total - -;
122#X connect 0 0 1 0;
123#X connect 0 1 9 0;
124#X connect 0 2 10 0;
125#X connect 0 3 12 0;
126#X connect 0 4 8 0;
127#X connect 0 5 7 0;
128#X connect 0 6 6 0;
129#X connect 0 7 11 0;
130#X connect 0 8 5 0;
131#X connect 0 9 4 0;
132#X connect 2 0 0 0;
133#X connect 2 0 3 0;
134#X restore 420 271 pd see device info;
135#N canvas 553 77 380 450 open 0;
136#X obj 77 61 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1
137-1 0;
138#X msg 78 81 open mouse \$1;
139#X obj 121 201 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1
140-1 0;
141#X msg 130 221 open keyboard \$1;
142#X obj 50 13 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1
143-1 0;
144#X obj 55 417 outlet;
145#X obj 85 108 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1
146-1 0;
147#X msg 94 128 open joystick \$1;
148#X msg 59 33 open pointer \$1;
149#X obj 101 155 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1
150-1 0;
151#X msg 110 175 open gamepad \$1;
152#X obj 137 244 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1
153-1 0;
154#X msg 146 264 open keypad \$1;
155#X obj 141 291 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1
156-1 0;
157#X msg 150 311 open multiaxiscontroller \$1;
158#X text 155 342 or just open the first one:;
159#X msg 138 363 open mouse;
160#X msg 159 381 open joystick;
161#X connect 0 0 1 0;
162#X connect 1 0 5 0;
163#X connect 2 0 3 0;
164#X connect 3 0 5 0;
165#X connect 4 0 8 0;
166#X connect 6 0 7 0;
167#X connect 7 0 5 0;
168#X connect 8 0 5 0;
169#X connect 9 0 10 0;
170#X connect 10 0 5 0;
171#X connect 11 0 12 0;
172#X connect 12 0 5 0;
173#X connect 13 0 14 0;
174#X connect 14 0 5 0;
175#X connect 16 0 5 0;
176#X connect 17 0 5 0;
177#X restore 203 59 pd open by device type;
178#N canvas 796 51 470 320 open 0;
179#X text 217 82 Gravis/Destroyer Tiltpad;
180#X msg 76 81 open 0x047D 0x4008;
181#X msg 73 53 open 0x046d 0xc01d;
182#X text 211 53 Logitech USB-PS/2 Optical Mouse;
183#X obj 10 277 outlet;
184#X text 9 12 You can use the hex values of the USB vendor and product
185IDs (it is not case sensitive):;
186#X text 221 111 Overtone CUI v1.0;
187#X msg 80 110 open 0x1043 0x0015;
188#X msg 83 136 open 0x06a3 0xff12;
189#X text 221 134 Saitek Cyborgforce;
190#X connect 1 0 4 0;
191#X connect 2 0 4 0;
192#X connect 7 0 4 0;
193#X connect 8 0 4 0;
194#X restore 174 37 pd open by vendor/product ID;
195#N canvas 114 93 467 346 test 0;
196#X obj 144 45 inlet;
197#X obj 88 104 route DESKTOP;
198#X obj 87 158 route DESKTOP57;
199#X obj 70 207 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
200-1;
201#X floatatom 95 212 5 0 0 0 - - -;
202#X obj 148 215 spigot;
203#X obj 146 256 print test;
204#X obj 189 192 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
2051;
206#X obj 292 122 spigot;
207#X obj 290 163 print test;
208#X obj 333 99 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
209;
210#X connect 0 0 1 0;
211#X connect 0 0 8 0;
212#X connect 1 0 2 0;
213#X connect 2 0 3 0;
214#X connect 2 0 4 0;
215#X connect 2 0 5 0;
216#X connect 5 0 6 0;
217#X connect 7 0 5 1;
218#X connect 8 0 9 0;
219#X connect 10 0 8 1;
220#X restore 197 303 pd test;
221#N canvas 162 133 570 420 serin 0;
222#X obj 209 61 cnv 15 15 15 empty \$0-debug-canvas 0 4 8 0 14 -233017
223-1 0;
224#X obj 60 61 hradio 15 1 1 10 empty empty empty 0 -6 0 8 -261689 -1
225-1 0;
226#X obj 60 13 inlet;
227#X msg 200 202 label \$1;
228#X obj 200 180 makefilename %d;
229#X obj 59 108 int;
230#X obj 59 337 outlet;
231#X msg 201 306 set \$1 \$2;
232#X obj 59 266 trigger bang anything;
233#X obj 201 286 list;
234#X msg 60 210 debug \$1;
235#X obj 200 225 send \$0-debug-canvas;
236#X connect 1 0 5 0;
237#X connect 2 0 1 0;
238#X connect 3 0 11 0;
239#X connect 4 0 3 0;
240#X connect 5 0 4 0;
241#X connect 5 0 10 0;
242#X connect 7 0 6 0;
243#X connect 8 0 6 0;
244#X connect 8 1 9 0;
245#X connect 9 0 7 0;
246#X connect 10 0 8 0;
247#X coords 0 -1 1 1 165 17 1 60 60;
248#X restore 25 134 pd serin;
249#X msg 262 114 open 13;
250#X obj 249 300 pddp/print;
251#N canvas 162 133 570 420 serin 0;
252#X obj 286 61 cnv 15 30 15 empty \$0-open-canvas 13 4 8 0 14 -233017
253-1 0;
254#X obj 60 61 hradio 15 1 1 15 empty empty empty 0 -6 0 8 -225271 -1
255-1 13;
256#X obj 60 13 inlet;
257#X msg 200 202 label \$1;
258#X obj 200 180 makefilename %d;
259#X obj 59 108 int;
260#X obj 59 337 outlet;
261#X msg 201 306 set \$1 \$2;
262#X obj 59 266 trigger bang anything;
263#X obj 201 286 list;
264#X msg 60 210 open \$1;
265#X obj 200 225 send \$0-open-canvas;
266#X connect 1 0 5 0;
267#X connect 2 0 1 0;
268#X connect 3 0 11 0;
269#X connect 4 0 3 0;
270#X connect 5 0 4 0;
271#X connect 5 0 10 0;
272#X connect 7 0 6 0;
273#X connect 8 0 6 0;
274#X connect 8 1 9 0;
275#X connect 9 0 7 0;
276#X connect 10 0 8 0;
277#X coords 0 -1 1 1 257 17 1 60 60;
278#X restore 262 92 pd serin;
279#X msg 326 199 open 13;
280#X obj 452 693 outlet;
281#X obj 498 694 outlet;
282#X obj 552 622 outlet;
283#X obj 602 617 outlet;
284#X obj 364 699 outlet;
285#X obj 135 618 * 1;
286#X obj 171 629 * 2;
287#X obj 206 627 * 3;
288#X obj 247 634 * 4;
289#X obj 301 640 * 5;
290#X obj 338 648 * 6;
291#X obj 350 622 * 7;
292#X obj 418 616 * 8;
293#X obj 656 614 s cima1;
294#X obj 716 614 s cima2;
295#X connect 3 0 16 0;
296#X connect 8 0 9 1;
297#X connect 9 0 8 0;
298#X connect 10 0 9 0;
299#X connect 11 0 46 0;
300#X connect 11 1 21 0;
301#X connect 11 2 25 0;
302#X connect 11 3 10 0;
303#X connect 12 0 67 0;
304#X connect 14 0 15 0;
305#X connect 14 1 26 0;
306#X connect 15 0 61 0;
307#X connect 16 0 11 0;
308#X connect 16 0 23 0;
309#X connect 16 0 53 0;
310#X connect 16 0 56 0;
311#X connect 16 1 50 0;
312#X connect 21 0 0 0;
313#X connect 21 1 1 0;
314#X connect 21 2 13 0;
315#X connect 21 3 22 0;
316#X connect 23 0 6 0;
317#X connect 23 1 5 0;
318#X connect 23 2 4 0;
319#X connect 25 0 2 0;
320#X connect 25 1 27 0;
321#X connect 25 2 28 0;
322#X connect 25 3 29 0;
323#X connect 25 4 30 0;
324#X connect 25 5 31 0;
325#X connect 25 6 32 0;
326#X connect 25 7 14 0;
327#X connect 26 0 62 0;
328#X connect 28 0 73 0;
329#X connect 29 0 72 0;
330#X connect 33 0 71 0;
331#X connect 34 0 70 0;
332#X connect 35 0 69 0;
333#X connect 36 0 65 0;
334#X connect 37 0 68 0;
335#X connect 38 0 64 0;
336#X connect 39 0 66 0;
337#X connect 40 0 60 0;
338#X connect 41 0 59 0;
339#X connect 46 0 12 0;
340#X connect 46 1 33 0;
341#X connect 46 2 34 0;
342#X connect 46 3 35 0;
343#X connect 46 4 36 0;
344#X connect 46 5 37 0;
345#X connect 46 6 38 0;
346#X connect 46 7 39 0;
347#X connect 46 8 40 0;
348#X connect 46 9 41 0;
349#X connect 46 10 42 0;
350#X connect 46 11 43 0;
351#X connect 46 12 44 0;
352#X connect 46 13 45 0;
353#X connect 46 14 47 0;
354#X connect 46 15 48 0;
355#X connect 49 0 16 0;
356#X connect 51 0 16 0;
357#X connect 52 0 16 0;
358#X connect 54 0 49 0;
359#X connect 55 0 16 0;
360#X connect 57 0 55 0;
361#X connect 58 0 16 0;
362#X connect 64 0 63 0;
363#X connect 65 0 63 0;
364#X connect 66 0 63 0;
365#X connect 67 0 63 0;
366#X connect 68 0 63 0;
367#X connect 69 0 63 0;
368#X connect 70 0 63 0;
369#X connect 71 0 63 0;