comparison examples/08-PureData/digital/_main.pd @ 482:4d5edf7ee953 prerelease

heavy: support for signal-rate digitals and Scope.
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 21 Jun 2016 14:27:26 +0100
parents 4ff80956c27a
children ddb86944e138
comparison
equal deleted inserted replaced
481:def3b8cf9749 482:4d5edf7ee953
1 #N canvas 279 78 857 690 10; 1 #N canvas 272 16 857 690 10;
2 #X obj 18 477 osc~ 200; 2 #X obj 18 477 osc~ 200;
3 #X obj 57 522 *~; 3 #X obj 57 522 *~;
4 #X obj 112 405 line~ 1; 4 #X obj 112 405 line~ 1;
5 #X msg 116 372 1 \, 0 200; 5 #X msg 116 372 1 \, 0 200;
6 #X obj 205 472 line~ 1; 6 #X obj 205 472 line~ 1;
7 #X msg 209 439 1 \, 0 200; 7 #X msg 209 439 1 \, 0 200;
8 #X obj 210 405 select 1; 8 #X obj 210 405 select 1;
9 #X obj 140 531 *~; 9 #X obj 140 531 *~;
10 #X obj 484 552 s bela_setDigital; 10 #X obj 534 622 s bela_setDigital;
11 #X obj 484 483 loadbang; 11 #X obj 534 553 loadbang;
12 #X msg 65 445 0; 12 #X msg 65 445 0;
13 #X obj 116 332 r bela_digitalIn12; 13 #X obj 116 332 r bela_digitalIn12;
14 #X obj 422 217 r bela_digitalIn14; 14 #X obj 422 217 r bela_digitalIn14;
15 #X obj 422 243 s bela_digitalOut13; 15 #X obj 422 243 s bela_digitalOut13;
16 #X obj 285 218 r bela_digitalIn12; 16 #X obj 285 218 r bela_digitalIn12;
31 #X obj 480 275 select 1; 31 #X obj 480 275 select 1;
32 #X obj 346 268 select 1; 32 #X obj 346 268 select 1;
33 #X msg 584 281 0; 33 #X msg 584 281 0;
34 #X obj 637 221 select 1 0; 34 #X obj 637 221 select 1 0;
35 #X obj 80 663 dac~ 3 4; 35 #X obj 80 663 dac~ 3 4;
36 #X msg 388 503 disable 12; 36 #X msg 458 576 disable 12;
37 #X obj 158 595 *~ 0.5; 37 #X obj 158 595 *~ 0.5;
38 #X obj 157 622 +~ 0.5; 38 #X obj 157 622 +~ 0.5;
39 #X obj 53 584 *~ 0.5; 39 #X obj 53 584 *~ 0.5;
40 #X obj 52 611 +~ 0.5; 40 #X obj 52 611 +~ 0.5;
41 #X text 183 37 This is just a stub ...; 41 #X text 183 37 This is just a stub ...;
42 #X obj 308 643 dac~ 1 2; 42 #X obj 308 643 dac~ 1 2;
43 #X obj 311 606 *~ 0.1; 43 #X obj 311 606 *~ 0.1;
44 #X obj 303 576 osc~ 120; 44 #X obj 337 550 osc~ 120;
45 #X msg 585 438 0; 45 #X msg 585 438 0;
46 #X obj 649 185 print digitalIn16; 46 #X obj 649 185 print digitalIn16;
47 #X obj 672 373 print digitalIn14; 47 #X obj 672 373 print digitalIn14;
48 #X text 185 103 This section requires some hardware loopback between 48 #X text 185 103 This section requires some hardware loopback between
49 15 and 14 \, 13 and 12 Have fun figuring out the pins on P8 (or P9 49 15 and 14 \, 13 and 12 Have fun figuring out the pins on P8 (or P9
50 ???) If you do it properly \, you can measure roundtrip latency with 50 ???) If you do it properly \, you can measure roundtrip latency with
51 multiple digital/analog feed-forward networs; 51 multiple digital/analog feed-forward networs;
52 #X msg 484 514 out 11 \, in 12 \, out 13 \, in 14 \, out 15 \, in 16
53 \, in 17 ~;
54 #X obj 552 112 loadbang; 52 #X obj 552 112 loadbang;
55 #X obj 206 291 print digitalIn12; 53 #X obj 206 291 print digitalIn12;
56 #X text 548 130 connect a switch to digitalIn16 or turn on the metro 54 #X text 548 130 connect a switch to digitalIn16 or turn on the metro
57 here; 55 here;
56 #X obj 287 449 adc~ 17;
57 #X obj 299 506 phasor~ 300;
58 #X obj 293 539 *~;
59 #X obj 409 622 dac~ 26;
60 #X msg 534 584 out 11 \, in 12 \, out 13 \, in 14 \, out 15 \, in 16
61 \, in 17 ~ \, out 26 ~;
62 #X obj 378 427 phasor~ 0.2;
63 #X obj 373 455 *~ 1000;
64 #X obj 620 524 dac~ 27 28 29 30;
65 #X obj 621 466 osc~ 30;
58 #X connect 0 0 1 0; 66 #X connect 0 0 1 0;
59 #X connect 0 0 7 0; 67 #X connect 0 0 7 0;
60 #X connect 1 0 37 0; 68 #X connect 1 0 37 0;
61 #X connect 2 0 1 1; 69 #X connect 2 0 1 1;
62 #X connect 3 0 2 0; 70 #X connect 3 0 2 0;
63 #X connect 4 0 7 1; 71 #X connect 4 0 7 1;
64 #X connect 5 0 4 0; 72 #X connect 5 0 4 0;
65 #X connect 6 0 5 0; 73 #X connect 6 0 5 0;
66 #X connect 6 0 10 0; 74 #X connect 6 0 10 0;
67 #X connect 7 0 35 0; 75 #X connect 7 0 35 0;
68 #X connect 9 0 47 0; 76 #X connect 9 0 54 0;
69 #X connect 10 0 0 1; 77 #X connect 10 0 0 1;
70 #X connect 11 0 3 0; 78 #X connect 11 0 3 0;
71 #X connect 12 0 13 0; 79 #X connect 12 0 13 0;
72 #X connect 12 0 29 0; 80 #X connect 12 0 29 0;
73 #X connect 12 0 45 0; 81 #X connect 12 0 45 0;
74 #X connect 14 0 15 0; 82 #X connect 14 0 15 0;
75 #X connect 14 0 30 0; 83 #X connect 14 0 30 0;
76 #X connect 14 0 49 0; 84 #X connect 14 0 48 0;
77 #X connect 16 0 21 0; 85 #X connect 16 0 21 0;
78 #X connect 17 0 16 1; 86 #X connect 17 0 16 1;
79 #X connect 18 0 16 0; 87 #X connect 18 0 16 0;
80 #X connect 19 0 27 0; 88 #X connect 19 0 27 0;
81 #X connect 19 0 28 0; 89 #X connect 19 0 28 0;
99 #X connect 36 0 33 1; 107 #X connect 36 0 33 1;
100 #X connect 37 0 38 0; 108 #X connect 37 0 38 0;
101 #X connect 38 0 33 0; 109 #X connect 38 0 33 0;
102 #X connect 41 0 40 0; 110 #X connect 41 0 40 0;
103 #X connect 42 0 41 0; 111 #X connect 42 0 41 0;
112 #X connect 42 0 53 0;
113 #X connect 42 0 57 3;
104 #X connect 43 0 42 1; 114 #X connect 43 0 42 1;
105 #X connect 47 0 8 0; 115 #X connect 50 0 52 0;
116 #X connect 51 0 52 1;
117 #X connect 52 0 40 1;
118 #X connect 54 0 8 0;
119 #X connect 55 0 56 0;
120 #X connect 56 0 42 0;
121 #X connect 58 0 57 0;