diff examples/08-PureData/digital/_main.pd @ 480:4ff80956c27a prerelease

heavy supports digitals at message rate
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 21 Jun 2016 05:44:21 +0100
parents examples/08-PureData/digital/digital_example.pd@8fcfbfb32aa0
children 4d5edf7ee953
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/08-PureData/digital/_main.pd	Tue Jun 21 05:44:21 2016 +0100
@@ -0,0 +1,105 @@
+#N canvas 279 78 857 690 10;
+#X obj 18 477 osc~ 200;
+#X obj 57 522 *~;
+#X obj 112 405 line~ 1;
+#X msg 116 372 1 \, 0 200;
+#X obj 205 472 line~ 1;
+#X msg 209 439 1 \, 0 200;
+#X obj 210 405 select 1;
+#X obj 140 531 *~;
+#X obj 484 552 s bela_setDigital;
+#X obj 484 483 loadbang;
+#X msg 65 445 0;
+#X obj 116 332 r bela_digitalIn12;
+#X obj 422 217 r bela_digitalIn14;
+#X obj 422 243 s bela_digitalOut13;
+#X obj 285 218 r bela_digitalIn12;
+#X obj 285 243 s bela_digitalOut11;
+#X obj 374 339 timer;
+#X msg 404 304 bang;
+#X msg 368 304 bang;
+#X obj 556 160 metro 1000;
+#X obj 575 304 s bela_digitalOut15;
+#X obj 354 380 print sourceto12;
+#X obj 488 351 timer;
+#X msg 518 316 bang;
+#X msg 482 316 bang;
+#X obj 487 380 print sourceto14;
+#X obj 650 146 r bela_digitalIn16;
+#X msg 553 265 1;
+#X obj 577 214 delay 500;
+#X obj 480 275 select 1;
+#X obj 346 268 select 1;
+#X msg 584 281 0;
+#X obj 637 221 select 1 0;
+#X obj 80 663 dac~ 3 4;
+#X msg 388 503 disable 12;
+#X obj 158 595 *~ 0.5;
+#X obj 157 622 +~ 0.5;
+#X obj 53 584 *~ 0.5;
+#X obj 52 611 +~ 0.5;
+#X text 183 37 This is just a stub ...;
+#X obj 308 643 dac~ 1 2;
+#X obj 311 606 *~ 0.1;
+#X obj 303 576 osc~ 120;
+#X msg 585 438 0;
+#X obj 649 185 print digitalIn16;
+#X obj 672 373 print digitalIn14;
+#X text 185 103 This section requires some hardware loopback between
+15 and 14 \, 13 and 12 Have fun figuring out the pins on P8 (or P9
+???) If you do it properly \, you can measure roundtrip latency with
+multiple digital/analog feed-forward networs;
+#X msg 484 514 out 11 \, in 12 \, out 13 \, in 14 \, out 15 \, in 16
+\, in 17 ~;
+#X obj 552 112 loadbang;
+#X obj 206 291 print digitalIn12;
+#X text 548 130 connect a switch to digitalIn16 or turn on the metro
+here;
+#X connect 0 0 1 0;
+#X connect 0 0 7 0;
+#X connect 1 0 37 0;
+#X connect 2 0 1 1;
+#X connect 3 0 2 0;
+#X connect 4 0 7 1;
+#X connect 5 0 4 0;
+#X connect 6 0 5 0;
+#X connect 6 0 10 0;
+#X connect 7 0 35 0;
+#X connect 9 0 47 0;
+#X connect 10 0 0 1;
+#X connect 11 0 3 0;
+#X connect 12 0 13 0;
+#X connect 12 0 29 0;
+#X connect 12 0 45 0;
+#X connect 14 0 15 0;
+#X connect 14 0 30 0;
+#X connect 14 0 49 0;
+#X connect 16 0 21 0;
+#X connect 17 0 16 1;
+#X connect 18 0 16 0;
+#X connect 19 0 27 0;
+#X connect 19 0 28 0;
+#X connect 22 0 25 0;
+#X connect 23 0 22 1;
+#X connect 24 0 22 0;
+#X connect 26 0 32 0;
+#X connect 26 0 43 0;
+#X connect 26 0 44 0;
+#X connect 27 0 20 0;
+#X connect 27 0 24 0;
+#X connect 27 0 18 0;
+#X connect 28 0 31 0;
+#X connect 29 0 23 0;
+#X connect 30 0 17 0;
+#X connect 31 0 20 0;
+#X connect 32 0 27 0;
+#X connect 32 1 31 0;
+#X connect 34 0 8 0;
+#X connect 35 0 36 0;
+#X connect 36 0 33 1;
+#X connect 37 0 38 0;
+#X connect 38 0 33 0;
+#X connect 41 0 40 0;
+#X connect 42 0 41 0;
+#X connect 43 0 42 1;
+#X connect 47 0 8 0;