Mercurial > hg > beaglert
diff 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 |
line wrap: on
line diff
--- a/examples/08-PureData/digital/_main.pd Tue Jun 21 14:26:33 2016 +0100 +++ b/examples/08-PureData/digital/_main.pd Tue Jun 21 14:27:26 2016 +0100 @@ -1,4 +1,4 @@ -#N canvas 279 78 857 690 10; +#N canvas 272 16 857 690 10; #X obj 18 477 osc~ 200; #X obj 57 522 *~; #X obj 112 405 line~ 1; @@ -7,8 +7,8 @@ #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 obj 534 622 s bela_setDigital; +#X obj 534 553 loadbang; #X msg 65 445 0; #X obj 116 332 r bela_digitalIn12; #X obj 422 217 r bela_digitalIn14; @@ -33,7 +33,7 @@ #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 msg 458 576 disable 12; #X obj 158 595 *~ 0.5; #X obj 157 622 +~ 0.5; #X obj 53 584 *~ 0.5; @@ -41,7 +41,7 @@ #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 obj 337 550 osc~ 120; #X msg 585 438 0; #X obj 649 185 print digitalIn16; #X obj 672 373 print digitalIn14; @@ -49,12 +49,20 @@ 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 obj 287 449 adc~ 17; +#X obj 299 506 phasor~ 300; +#X obj 293 539 *~; +#X obj 409 622 dac~ 26; +#X msg 534 584 out 11 \, in 12 \, out 13 \, in 14 \, out 15 \, in 16 +\, in 17 ~ \, out 26 ~; +#X obj 378 427 phasor~ 0.2; +#X obj 373 455 *~ 1000; +#X obj 620 524 dac~ 27 28 29 30; +#X obj 621 466 osc~ 30; #X connect 0 0 1 0; #X connect 0 0 7 0; #X connect 1 0 37 0; @@ -65,7 +73,7 @@ #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 9 0 54 0; #X connect 10 0 0 1; #X connect 11 0 3 0; #X connect 12 0 13 0; @@ -73,7 +81,7 @@ #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 14 0 48 0; #X connect 16 0 21 0; #X connect 17 0 16 1; #X connect 18 0 16 0; @@ -101,5 +109,13 @@ #X connect 38 0 33 0; #X connect 41 0 40 0; #X connect 42 0 41 0; +#X connect 42 0 53 0; +#X connect 42 0 57 3; #X connect 43 0 42 1; -#X connect 47 0 8 0; +#X connect 50 0 52 0; +#X connect 51 0 52 1; +#X connect 52 0 40 1; +#X connect 54 0 8 0; +#X connect 55 0 56 0; +#X connect 56 0 42 0; +#X connect 58 0 57 0;