-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patharduino.pat
780 lines (779 loc) · 21.9 KB
/
arduino.pat
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
max v2;
#N vpatcher 117 158 647 693;
#P window setfont "Sans Serif" 9.;
#P newex 226 140 48 196617 loadbang;
#P toggle 187 141 15 0;
#P newex 187 162 54 196617 qmetro 1;
#P window setfont "Sans Serif" 10.;
#P comment 108 408 210 196618 released under the GNU GPL;
#N comlet processed input;
#P inlet 138 73 15 0;
#P outlet 138 351 15 0;
#N vpatcher 104 299 759 671;
#P window setfont "Sans Serif" 10.;
#N vpatcher 47 245 735 652;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#N vpatcher 20 74 638 549;
#P outlet 92 391 16 0;
#P window setfont "Sans Serif" 10.;
#P newex 334 328 27 196618 i;
#P window linecount 1;
#P newex 157 284 27 196618 -;
#P window linecount 0;
#P newex 190 259 27 196618 &;
#P newex 280 258 27 196618 |;
#P window linecount 1;
#P newex 157 259 27 196618 i;
#P window linecount 0;
#P newex 157 226 27 196618 t b i;
#P newex 157 198 168 196618 route 0 1;
#P window linecount 1;
#P message 454 123 43 196618 \$1 128;
#P newex 454 96 40 196618 change;
#P inlet 454 72 15 0;
#P message 400 123 37 196618 \$1 64;
#P newex 400 96 40 196618 change;
#P inlet 400 72 15 0;
#P message 348 123 37 196618 \$1 32;
#P newex 348 96 40 196618 change;
#P inlet 348 72 15 0;
#P message 294 123 37 196618 \$1 16;
#P newex 294 96 40 196618 change;
#P inlet 294 72 15 0;
#P message 242 123 31 196618 \$1 8;
#P newex 242 96 40 196618 change;
#P inlet 242 72 15 0;
#P message 188 123 31 196618 \$1 4;
#P newex 188 96 40 196618 change;
#P inlet 188 72 15 0;
#P message 136 123 31 196618 \$1 2;
#P newex 136 96 40 196618 change;
#P inlet 136 72 15 0;
#P window linecount 0;
#P message 82 123 31 196618 \$1 1;
#P newex 82 96 40 196618 change;
#P inlet 82 72 15 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P fasten 30 0 31 0 339 371 97 371;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P fasten 2 0 24 0 87 169 162 169;
#P fasten 5 0 24 0 141 169 162 169;
#P fasten 8 0 24 0 193 169 162 169;
#P fasten 11 0 24 0 247 169 162 169;
#P fasten 14 0 24 0 299 169 162 169;
#P fasten 17 0 24 0 353 169 162 169;
#P fasten 20 0 24 0 405 169 162 169;
#P fasten 23 0 24 0 459 169 162 169;
#P connect 24 0 25 0;
#P connect 25 0 26 0;
#P connect 26 0 29 0;
#P connect 30 0 26 1;
#P connect 28 0 29 1;
#P connect 6 0 7 0;
#P connect 7 0 8 0;
#P fasten 25 1 28 0 179 249 195 249;
#P connect 30 0 28 1;
#P connect 9 0 10 0;
#P connect 10 0 11 0;
#P fasten 24 1 27 0 241 223 285 223;
#P connect 12 0 13 0;
#P connect 13 0 14 0;
#P connect 30 0 27 1;
#P fasten 29 0 30 0 162 313 339 313;
#P fasten 27 0 30 0 285 313 339 313;
#P connect 15 0 16 0;
#P connect 16 0 17 0;
#P connect 18 0 19 0;
#P connect 19 0 20 0;
#P connect 21 0 22 0;
#P connect 22 0 23 0;
#P pop;
#P newobj 325 161 141 196618 p bytemask;
#P window linecount 0;
#P message 514 144 26 196618 144;
#P window linecount 1;
#P newex 325 232 27 196618 i;
#P newex 159 233 27 196618 i;
#P newex 325 190 30 196618 t i b;
#P window linecount 0;
#P newex 159 190 27 196618 t b i;
#N vpatcher 20 74 638 549;
#P outlet 92 391 16 0;
#P window setfont "Sans Serif" 10.;
#P newex 334 328 27 196618 i;
#P window linecount 1;
#P newex 157 284 27 196618 -;
#P window linecount 0;
#P newex 190 259 27 196618 &;
#P newex 280 258 27 196618 |;
#P window linecount 1;
#P newex 157 259 27 196618 i;
#P window linecount 0;
#P newex 157 226 27 196618 t b i;
#P newex 157 198 168 196618 route 0 1;
#P window linecount 1;
#P message 454 123 43 196618 \$1 128;
#P newex 454 96 40 196618 change;
#P inlet 454 72 15 0;
#P message 400 123 37 196618 \$1 64;
#P newex 400 96 40 196618 change;
#P inlet 400 72 15 0;
#P message 348 123 37 196618 \$1 32;
#P newex 348 96 40 196618 change;
#P inlet 348 72 15 0;
#P message 294 123 37 196618 \$1 16;
#P newex 294 96 40 196618 change;
#P inlet 294 72 15 0;
#P message 242 123 31 196618 \$1 8;
#P newex 242 96 40 196618 change;
#P inlet 242 72 15 0;
#P message 188 123 31 196618 \$1 4;
#P newex 188 96 40 196618 change;
#P inlet 188 72 15 0;
#P message 136 123 31 196618 \$1 2;
#P newex 136 96 40 196618 change;
#P inlet 136 72 15 0;
#P window linecount 0;
#P message 82 123 31 196618 \$1 1;
#P newex 82 96 40 196618 change;
#P inlet 82 72 15 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P fasten 30 0 31 0 339 371 97 371;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P fasten 23 0 24 0 459 169 162 169;
#P fasten 20 0 24 0 405 169 162 169;
#P fasten 17 0 24 0 353 169 162 169;
#P fasten 14 0 24 0 299 169 162 169;
#P fasten 11 0 24 0 247 169 162 169;
#P fasten 8 0 24 0 193 169 162 169;
#P fasten 5 0 24 0 141 169 162 169;
#P fasten 2 0 24 0 87 169 162 169;
#P connect 24 0 25 0;
#P connect 25 0 26 0;
#P connect 26 0 29 0;
#P connect 30 0 26 1;
#P connect 28 0 29 1;
#P connect 6 0 7 0;
#P connect 7 0 8 0;
#P fasten 25 1 28 0 179 249 195 249;
#P connect 30 0 28 1;
#P connect 9 0 10 0;
#P connect 10 0 11 0;
#P fasten 24 1 27 0 241 223 285 223;
#P connect 12 0 13 0;
#P connect 13 0 14 0;
#P connect 30 0 27 1;
#P fasten 27 0 30 0 285 313 339 313;
#P fasten 29 0 30 0 162 313 339 313;
#P connect 15 0 16 0;
#P connect 16 0 17 0;
#P connect 18 0 19 0;
#P connect 19 0 20 0;
#P connect 21 0 22 0;
#P connect 22 0 23 0;
#P pop;
#P newobj 159 162 141 196618 p bytemask;
#P newex 159 118 307 196618 route 0 1 2 3 4 5 6 7 8 9 10 11 12 13;
#P newex 159 88 27 196618 t l b;
#P outlet 159 312 15 0;
#P inlet 159 57 15 0;
#P comment 200 90 100 196618 (orig t a b);
#P connect 1 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 8 0;
#P connect 7 0 8 0;
#P fasten 10 0 2 0 519 292 164 292;
#P fasten 9 0 2 0 330 292 164 292;
#P connect 8 0 2 0;
#P connect 4 1 5 1;
#P connect 4 2 5 2;
#P connect 4 3 5 3;
#P connect 4 4 5 4;
#P connect 4 5 5 5;
#P connect 4 6 5 6;
#P connect 4 7 11 0;
#P connect 11 0 7 0;
#P connect 6 1 9 0;
#P connect 7 1 9 0;
#P connect 4 8 11 1;
#P connect 4 9 11 2;
#P connect 4 10 11 3;
#P connect 4 11 11 4;
#P connect 4 12 11 5;
#P connect 4 13 11 6;
#P fasten 3 1 10 0 181 110 519 110;
#P pop;
#P newobj 406 134 74 196618 p digatal-out;
#P inlet 39 47 15 0;
#P outlet 242 320 15 0;
#N vpatcher 94 476 572 882;
#P window setfont "Sans Serif" 9.;
#P number 173 259 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#N vpatcher 266 177 624 523;
#P outlet 156 252 15 0;
#P outlet 128 252 15 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P newex 128 192 27 196618 + 1;
#P newex 128 220 38 196618 gate 2;
#P newex 128 169 42 196618 >= 128;
#P window linecount 0;
#P newex 129 138 27 196618 t i i;
#P inlet 129 119 15 0;
#P comment 138 78 117 196618 that's how the moses object works in Pd;
#P connect 2 1 3 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 6 0;
#P connect 1 0 2 0;
#P connect 2 0 4 1;
#P connect 4 1 7 0;
#P pop;
#P newobj 82 175 77 196618 p moses_128;
#P inlet 212 41 15 0;
#P outlet 309 339 15 0;
#P window linecount 0;
#P newex 82 121 58 196618 unpack i i;
#P comment 37 123 36 196618 pin#;
#P comment 158 123 50 196618 mode;
#P newex 187 175 50 196618 select 0;
#P message 187 197 23 196618 0;
#P message 227 197 21 196618 1;
#P comment 36 154 153 196618 do bounds checking to be safe;
#P newex 212 65 30 196618 t l b;
#P message 309 186 50 196618 244;
#P newex 82 248 27 196618 int;
#P newex 82 208 30 196618 t b i;
#P fasten 3 0 10 0 217 102 87 102;
#P connect 10 0 13 0;
#P connect 13 0 0 0;
#P connect 0 0 1 0;
#P fasten 5 0 1 1 232 231 104 231;
#P fasten 6 0 1 1 192 231 104 231;
#P connect 13 0 14 0;
#P fasten 10 1 7 0 135 148 192 148;
#P connect 7 0 6 0;
#P connect 12 0 3 0;
#P connect 7 1 5 0;
#P fasten 3 1 2 0 237 135 314 135;
#P fasten 1 0 11 0 87 303 314 303;
#P fasten 2 0 11 0 314 242 314 242;
#P fasten 0 1 11 0 107 303 314 303;
#P pop;
#P newobj 274 134 59 196618 p pinMode;
#N vpatcher 145 99 471 498;
#P window setfont "Sans Serif" 10.;
#P newex 149 135 27 196618 int;
#P inlet 44 49 15 0;
#P outlet 44 312 15 0;
#P newex 44 79 58 196618 unpack i f;
#P newex 44 124 50 196618 + 224;
#P comment 64 108 50 196618 0XE0;
#P message 44 251 112 196618 \$1 \, \$2 \, \$3;
#P newex 44 212 53 196618 pack i i i;
#P newex 149 112 44 196618 * 255.;
#P newex 173 165 50 196618 >> 7;
#P newex 108 165 50 196618 & 127;
#P connect 9 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 8 0;
#P fasten 0 0 3 1 113 198 70 198;
#P fasten 1 0 3 2 178 204 91 204;
#P fasten 10 0 0 0 154 159 113 159;
#P fasten 7 1 2 0 97 105 154 105;
#P connect 2 0 10 0;
#P fasten 10 0 1 0 154 159 178 159;
#P pop;
#P newobj 39 134 42 196618 p pwm;
#P message 345 134 50 196618 info;
#P newex 39 91 527 196618 route pwm analog analogIns digitalIns pinMode info digital version;
#P message 487 134 50 196618 249;
#N vpatcher 140 197 507 587;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#N vpatcher 266 177 624 523;
#P outlet 174 243 15 0;
#P outlet 146 243 15 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P newex 146 187 27 196618 + 1;
#P newex 146 211 38 196618 gate 2;
#P newex 146 164 39 196618 >= 16;
#P window linecount 0;
#P newex 129 138 27 196618 t i i;
#P inlet 129 119 15 0;
#P comment 138 78 117 196618 that's how the moses object works in Pd;
#P connect 1 0 2 0;
#P connect 2 1 3 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 6 0;
#P connect 2 0 4 1;
#P connect 4 1 7 0;
#P pop;
#P newobj 82 137 69 196618 p moses_16;
#P inlet 82 43 15 0;
#P outlet 82 296 15 0;
#P window linecount 0;
#P newex 82 101 58 196618 unpack i i;
#P newex 82 215 46 196618 pack i i;
#P message 82 247 50 196618 \$1 \, \$2;
#P newex 187 142 50 196618 select 0;
#P message 240 175 50 196618 1;
#P message 187 175 50 196618 0;
#P newex 82 176 50 196618 + 192;
#P comment 94 159 50 196618 0XC0;
#P connect 9 0 7 0;
#P connect 7 0 10 0;
#P connect 10 0 1 0;
#P connect 1 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 8 0;
#P fasten 3 0 6 1 245 203 123 203;
#P fasten 2 0 6 1 192 203 123 203;
#P fasten 7 1 4 0 135 125 192 125;
#P connect 4 0 2 0;
#P fasten 4 1 3 0 232 168 245 168;
#P pop;
#P newobj 119 134 64 196618 p analogIns;
#N vpatcher 72 203 437 565;
#P inlet 98 64 15 0;
#P outlet 98 264 15 0;
#P window setfont "Sans Serif" 10.;
#P newex 98 112 50 196618 select 0;
#P message 98 149 50 196618 0;
#P message 151 149 50 196618 1;
#P message 98 202 50 196618 208 \, \$1;
#P connect 5 0 3 0;
#P connect 3 0 2 0;
#P fasten 1 0 0 0 156 184 103 184;
#P connect 2 0 0 0;
#P connect 0 0 4 0;
#P fasten 3 1 1 0 143 140 156 140;
#P pop;
#P newobj 200 134 65 196618 p digitalIns;
#P connect 8 0 3 0;
#P connect 3 0 5 0;
#P fasten 3 1 5 0 108 122 44 122;
#P fasten 3 2 1 0 172 122 124 122;
#P fasten 3 3 0 0 236 122 205 122;
#P fasten 9 0 7 0 411 236 247 236;
#P fasten 3 8 7 0 556 236 247 236;
#P fasten 2 0 7 0 492 236 247 236;
#P fasten 4 0 7 0 350 236 247 236;
#P fasten 6 0 7 0 279 236 247 236;
#P fasten 0 0 7 0 205 236 247 236;
#P fasten 1 0 7 0 124 236 247 236;
#P fasten 5 0 7 0 44 236 247 236;
#P fasten 3 4 6 0 300 122 279 122;
#P fasten 3 5 4 0 364 122 350 122;
#P fasten 3 6 9 0 428 122 411 122;
#P fasten 3 7 2 0 492 122 492 122;
#P pop;
#P newobj 138 106 118 196618 p command processing;
#P comment 138 55 93 196618 processed input;
#P newex 359 270 50 196618 loadbang;
#N vpatcher 483 407 735 656;
#P inlet 62 85 15 0;
#P window setfont "Sans Serif" 10.;
#P newex 62 149 90 196618 print [arduino];
#P message 62 121 77 196618 version_0.3;
#P connect 2 0 0 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 359 294 51 196618 p report;
#N vpatcher 288 233 662 696;
#P button 44 325 15 0;
#P window setfont "Sans Serif" 10.;
#P newex 71 295 46 196618 zl group;
#P newex 79 218 27 196618 t f f;
#N vpatcher 266 177 624 523;
#P outlet 157 243 15 0;
#P outlet 129 243 15 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P newex 129 187 27 196618 + 1;
#P newex 129 211 38 196618 gate 2;
#P newex 129 164 42 196618 >= 128;
#P window linecount 0;
#P newex 129 138 27 196618 t i i;
#P inlet 129 119 15 0;
#P comment 138 78 117 196618 that's how the moses object works in Pd;
#P connect 1 0 2 0;
#P connect 2 1 3 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 6 0;
#P connect 2 0 4 1;
#P connect 4 1 7 0;
#P pop;
#P newobj 79 64 77 196618 p moses_128;
#P inlet 79 33 15 0;
#P outlet 71 373 15 0;
#P newex 139 93 27 196618 t i i;
#N vpatcher 624 270 1409 775;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P message 367 243 14 196618 2;
#P message 321 243 14 196618 2;
#P message 225 243 14 196618 2;
#P message 195 243 14 196618 1;
#P message 165 243 14 196618 1;
#P message 135 243 26 196618 176;
#P message 105 243 26 196618 160;
#P window linecount 0;
#P message 75 243 14 196618 2;
#P window linecount 1;
#N vpatcher 266 177 624 523;
#P outlet 157 243 15 0;
#P outlet 129 243 15 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P newex 146 187 27 196618 + 1;
#P newex 129 211 38 196618 gate 2;
#P newex 146 164 42 196618 >= 240;
#P window linecount 0;
#P newex 129 138 27 196618 t i i;
#P inlet 129 119 15 0;
#P comment 136 70 121 196618 that's how the moses object works in Pd;
#P connect 1 0 2 0;
#P connect 5 0 4 0;
#P connect 4 0 6 0;
#P connect 2 1 3 0;
#P connect 3 0 5 0;
#P connect 2 0 4 1;
#P connect 4 1 7 0;
#P pop;
#P newobj 75 125 81 196618 p moses_240;
#P inlet 75 90 15 0;
#P outlet 75 399 15 0;
#P window linecount 0;
#P comment 169 127 50 196618 0xFO;
#P comment 101 398 125 196618 length in byte count;
#P newex 480 373 115 196618 select 240 247;
#P comment 607 375 50 196618 SysEx;
#P newex 75 159 50 196618 & 240;
#P newex 75 210 190 196618 select 144 160 176 192 208 224;
#P comment 82 187 230 196618 0X90 0XA0 0XB0 0XC0 0XD0 0XE0;
#P comment 353 189 99 196618 0XF4 0XF9;
#P newex 321 210 103 196618 select 244 249;
#P newex 409 318 272 196618 print [arduino]_WARNING_currently_unsupported;
#P connect 11 0 12 0;
#P connect 12 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 13 0;
#P connect 13 0 10 0;
#P fasten 16 0 10 0 170 324 80 324;
#P fasten 17 0 10 0 200 324 80 324;
#P fasten 18 0 10 0 230 324 80 324;
#P fasten 19 0 10 0 326 324 80 324;
#P fasten 20 0 10 0 372 324 80 324;
#P connect 4 1 14 0;
#P connect 4 2 15 0;
#P connect 4 3 16 0;
#P connect 4 4 17 0;
#P connect 4 5 18 0;
#P fasten 12 1 1 0 151 176 326 176;
#P connect 1 0 19 0;
#P connect 1 1 20 0;
#P fasten 14 0 0 0 110 288 414 288;
#P fasten 15 0 0 0 140 288 414 288;
#P pop;
#P newobj 156 119 108 196618 p set message length;
#P newex 79 243 34 196618 sel 0;
#P newex 79 188 27 196618 int;
#P newex 110 188 30 196618 - 1.;
#P newex 79 128 30 196618 t b i;
#P comment 160 65 167 196618 only process command bytes;
#N vpatcher 666 328 1270 713;
#P window setfont "Sans Serif" 10.;
#P message 85 133 78 196618 version \$2 \$1;
#P outlet 142 242 15 0;
#P newex 257 242 190 196618 print UNKNOWN_INPUT_COMMAND;
#N vpatcher 543 225 1199 612;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P message 545 173 37 196618 13 \$1;
#P message 506 173 37 196618 12 \$1;
#P message 467 173 37 196618 11 \$1;
#P message 428 173 37 196618 10 \$1;
#P message 395 173 31 196618 9 \$1;
#P message 362 173 31 196618 8 \$1;
#P message 329 173 31 196618 7 \$1;
#N vpatcher 531 419 1071 727;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P newex 414 167 43 196618 == 128;
#P newex 369 167 37 196618 == 64;
#P newex 323 167 37 196618 == 32;
#P newex 278 167 37 196618 == 16;
#P newex 232 167 31 196618 == 8;
#P newex 187 167 31 196618 == 4;
#P newex 141 167 31 196618 == 2;
#P outlet 414 201 15 0;
#P outlet 369 201 15 0;
#P outlet 323 201 15 0;
#P outlet 278 201 15 0;
#P outlet 232 201 15 0;
#P outlet 187 201 15 0;
#P outlet 141 201 15 0;
#P outlet 96 201 15 0;
#P newex 414 141 40 196618 change;
#P newex 369 141 40 196618 change;
#P newex 414 106 39 196618 & 128;
#P newex 369 106 33 196618 & 64;
#P newex 323 141 40 196618 change;
#P newex 278 141 40 196618 change;
#P newex 323 106 33 196618 & 32;
#P newex 278 106 33 196618 & 16;
#P newex 232 141 40 196618 change;
#P newex 187 141 40 196618 change;
#P newex 232 106 27 196618 & 8;
#P newex 187 106 27 196618 & 4;
#P newex 141 141 40 196618 change;
#P newex 96 141 40 196618 change;
#P newex 141 106 27 196618 & 2;
#P window linecount 0;
#P newex 96 106 27 196618 & 1;
#P inlet 148 51 15 0;
#P connect 0 0 1 0;
#P connect 1 0 3 0;
#P connect 3 0 17 0;
#P connect 0 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 25 0;
#P connect 25 0 18 0;
#P connect 0 0 5 0;
#P connect 5 0 7 0;
#P connect 7 0 26 0;
#P connect 26 0 19 0;
#P connect 0 0 6 0;
#P connect 6 0 8 0;
#P connect 8 0 27 0;
#P connect 27 0 20 0;
#P connect 0 0 9 0;
#P connect 9 0 11 0;
#P connect 11 0 28 0;
#P connect 28 0 21 0;
#P connect 0 0 10 0;
#P connect 10 0 12 0;
#P connect 12 0 29 0;
#P connect 29 0 22 0;
#P connect 0 0 13 0;
#P connect 13 0 15 0;
#P connect 15 0 30 0;
#P connect 30 0 23 0;
#P connect 0 0 14 0;
#P connect 14 0 16 0;
#P connect 16 0 31 0;
#P connect 31 0 24 0;
#P pop;
#P newobj 329 136 234 196618 p debytemask;
#P message 275 173 31 196618 6 \$1;
#P message 242 173 31 196618 5 \$1;
#P message 209 173 31 196618 4 \$1;
#P message 176 173 31 196618 3 \$1;
#P message 143 173 31 196618 2 \$1;
#P message 110 173 31 196618 1 \$1;
#P window linecount 0;
#P message 77 173 31 196618 0 \$1;
#N vpatcher 531 419 1071 727;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P newex 414 167 43 196618 == 128;
#P newex 369 167 37 196618 == 64;
#P newex 323 167 37 196618 == 32;
#P newex 278 167 37 196618 == 16;
#P newex 232 167 31 196618 == 8;
#P newex 187 167 31 196618 == 4;
#P newex 141 167 31 196618 == 2;
#P outlet 414 201 15 0;
#P outlet 369 201 15 0;
#P outlet 323 201 15 0;
#P outlet 278 201 15 0;
#P outlet 232 201 15 0;
#P outlet 187 201 15 0;
#P outlet 141 201 15 0;
#P outlet 96 201 15 0;
#P newex 414 141 40 196618 change;
#P newex 369 141 40 196618 change;
#P newex 414 106 39 196618 & 128;
#P newex 369 106 33 196618 & 64;
#P newex 323 141 40 196618 change;
#P newex 278 141 40 196618 change;
#P newex 323 106 33 196618 & 32;
#P newex 278 106 33 196618 & 16;
#P newex 232 141 40 196618 change;
#P newex 187 141 40 196618 change;
#P newex 232 106 27 196618 & 8;
#P newex 187 106 27 196618 & 4;
#P newex 141 141 40 196618 change;
#P newex 96 141 40 196618 change;
#P newex 141 106 27 196618 & 2;
#P window linecount 0;
#P newex 96 106 27 196618 & 1;
#P inlet 148 51 15 0;
#P connect 0 0 1 0;
#P connect 1 0 3 0;
#P connect 3 0 17 0;
#P connect 0 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 25 0;
#P connect 25 0 18 0;
#P connect 0 0 5 0;
#P connect 5 0 7 0;
#P connect 7 0 26 0;
#P connect 26 0 19 0;
#P connect 0 0 6 0;
#P connect 6 0 8 0;
#P connect 8 0 27 0;
#P connect 27 0 20 0;
#P connect 0 0 9 0;
#P connect 9 0 11 0;
#P connect 11 0 28 0;
#P connect 28 0 21 0;
#P connect 0 0 10 0;
#P connect 10 0 12 0;
#P connect 12 0 29 0;
#P connect 29 0 22 0;
#P connect 0 0 13 0;
#P connect 13 0 15 0;
#P connect 15 0 30 0;
#P connect 30 0 23 0;
#P connect 0 0 14 0;
#P connect 14 0 16 0;
#P connect 16 0 31 0;
#P connect 31 0 24 0;
#P pop;
#P newobj 77 136 234 196618 p debytemask;
#P inlet 202 69 15 0;
#P outlet 291 308 15 0;
#P newex 202 95 58 196618 unpack i i;
#P message 291 282 99 196618 digital \$1 \$2;
#P fasten 1 0 4 0 207 125 82 125;
#P connect 4 0 5 0;
#P connect 4 1 6 0;
#P connect 4 2 7 0;
#P connect 4 3 8 0;
#P connect 3 0 1 0;
#P connect 4 4 9 0;
#P connect 4 5 10 0;
#P connect 4 6 11 0;
#P fasten 5 0 0 0 82 235 296 235;
#P fasten 6 0 0 0 115 235 296 235;
#P fasten 7 0 0 0 148 235 296 235;
#P fasten 8 0 0 0 181 235 296 235;
#P fasten 9 0 0 0 214 235 296 235;
#P fasten 10 0 0 0 247 235 296 235;
#P fasten 11 0 0 0 280 235 296 235;
#P fasten 13 0 0 0 334 235 296 235;
#P fasten 14 0 0 0 367 235 296 235;
#P fasten 15 0 0 0 400 235 296 235;
#P fasten 16 0 0 0 433 235 296 235;
#P fasten 17 0 0 0 472 235 296 235;
#P fasten 18 0 0 0 511 235 296 235;
#P fasten 19 0 0 0 550 235 296 235;
#P connect 0 0 2 0;
#P fasten 1 1 12 0 255 125 334 125;
#P connect 12 0 13 0;
#P connect 12 1 14 0;
#P connect 12 2 15 0;
#P connect 12 3 16 0;
#P connect 12 4 17 0;
#P connect 12 5 18 0;
#P connect 12 6 19 0;
#P pop;
#P newobj 167 132 97 196618 p digital messages;
#N vpatcher 539 149 909 498;
#P inlet 66 55 15 0;
#P outlet 66 252 15 0;
#P window setfont "Sans Serif" 10.;
#P message 66 229 136 196618 analog \$1 \$2;
#P newex 66 204 46 196618 pack i f;
#P newex 66 82 65 196618 unpack i i i;
#P newex 159 137 27 196618 +;
#P newex 159 162 50 196618 / 1023.;
#P comment 224 164 83 196618 scale to 0-1;
#P newex 199 112 50 196618 << 7;
#P newex 66 127 50 196618 & 15;
#P connect 9 0 5 0;
#P connect 5 0 0 0;
#P connect 0 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 8 0;
#P fasten 3 0 6 1 164 192 107 192;
#P fasten 5 1 4 0 98 110 164 110;
#P connect 4 0 3 0;
#P connect 1 0 4 1;
#P fasten 5 2 1 0 125 106 204 106;
#P pop;
#P newobj 297 132 96 196618 p analog messages;
#P inlet 85 37 15 0;
#P newex 85 89 104 196618 route 249 144;
#P comment 103 68 84 196618 0XF9 0X90;
#P connect 2 0 1 0;
#P connect 1 0 7 0;
#P fasten 3 0 6 0 302 196 147 196;
#P fasten 4 0 6 0 172 196 147 196;
#P fasten 7 0 6 0 90 196 147 196;
#P fasten 1 1 4 0 137 120 172 120;
#P fasten 1 2 3 0 184 120 302 120;
#P pop;
#P newobj 71 330 167 196618 p convert to symbolic commands;
#P fasten 12 0 13 0 76 318 49 318;
#P fasten 2 1 12 0 104 155 76 155;
#P fasten 5 0 12 0 84 278 76 278;
#P connect 12 0 0 0;
#P connect 0 0 8 0;
#P connect 9 0 10 0;
#P connect 10 0 2 0;
#P fasten 7 0 2 0 144 120 84 120;
#P connect 2 0 4 0;
#P connect 4 0 11 0;
#P connect 11 0 5 0;
#P connect 3 0 4 1;
#P fasten 6 0 4 1 161 163 101 163;
#P connect 11 1 3 0;
#P connect 10 1 7 0;
#P connect 7 1 6 0;
#P pop;
#P newobj 138 253 69 196618 p make lists;
#N vpatcher 234 274 830 592;
#P inlet 47 62 15 0;
#P window setfont "Sans Serif" 10.;
#P newex 47 88 81 196618 route version;
#P newex 87 119 58 196618 unpack i i;
#P newex 127 165 336 196618 print [arduino]_WARNING_INCOMPATIBLE_FIRMWARE_VERSION;
#P newex 87 141 50 196618 select 1;
#P comment 150 144 336 196618 <-- this sets the firmware version this is compatible with;
#P newex 47 192 182 196618 print Arduino/Firmata_version;
#P connect 6 0 5 0;
#P connect 5 0 0 0;
#P connect 5 0 4 0;
#P connect 4 0 2 0;
#P connect 2 1 3 0;
#P pop;
#P newobj 168 296 46 196618 p check;
#P comment 87 391 261 196618 (C) Copyright 2006 Free Software Foundation;
#P newex 138 190 96 196618 serial $1 57600;
#P connect 9 0 7 0;
#P connect 11 0 0 0;
#P connect 7 0 0 0;
#P connect 0 0 3 0;
#P connect 3 0 8 0;
#P fasten 3 0 2 0 143 284 173 284;
#P connect 13 0 12 0;
#P connect 12 0 11 0;
#P connect 5 0 4 0;
#P pop;