diff options
-rw-r--r-- | examples/1.a.basic_example.pd | 21 | ||||
-rw-r--r-- | examples/1.b.basic_example.pd | 55 |
2 files changed, 76 insertions, 0 deletions
diff --git a/examples/1.a.basic_example.pd b/examples/1.a.basic_example.pd new file mode 100644 index 0000000..252c4f3 --- /dev/null +++ b/examples/1.a.basic_example.pd @@ -0,0 +1,21 @@ +#N canvas 299 96 626 385 10; +#N canvas 0 22 450 300 (subpatch) 0; +#X array data 100 float 2; +#X coords 0 1 99 0 200 140 1 0 0; +#X restore 374 162 graph; +#X text 30 23 Basic sharing of memory data between two pd instances +; +#X msg 29 138 pd~ start 1.b.basic_example.pd; +#X msg 48 194 pd~ stop; +#X text 133 262 synchronised reading; +#X obj 29 284 shmem 1003 100; +#X msg 29 260 memdump 0 data; +#X obj 512 20 loadbang; +#X msg 512 41 \; pd dsp 1; +#X text 44 116 launch subprocess; +#X obj 29 222 pd~ -ninsig 0 -noutsig 0 -fifo 20; +#X connect 2 0 10 0; +#X connect 3 0 10 0; +#X connect 6 0 5 0; +#X connect 7 0 8 0; +#X connect 10 0 6 0; diff --git a/examples/1.b.basic_example.pd b/examples/1.b.basic_example.pd new file mode 100644 index 0000000..504f474 --- /dev/null +++ b/examples/1.b.basic_example.pd @@ -0,0 +1,55 @@ +#N canvas 269 36 615 585 10; +#N canvas 0 22 450 300 (subpatch) 0; +#X array data2 100 float 2; +#X coords 0 1 99 0 200 140 1 0 0; +#X restore 354 43 graph; +#X obj 60 415 loadbang; +#X msg 60 436 \; pd dsp 1; +#X obj 245 208 f 0; +#X obj 276 209 + 1; +#X obj 275 231 % 100; +#X obj 245 254 t f f; +#X obj 290 319 metro 20000; +#X obj 290 370 line; +#X obj 246 393 *; +#X obj 246 420 t f f; +#X obj 271 443 int; +#X obj 246 465 -; +#X obj 246 290 / 100; +#X msg 290 343 1 \, 10 20000; +#X obj 290 290 loadbang; +#X obj 67 85 metro 100; +#X text 63 207 writing to the shared memory; +#X obj 86 264 shmem 1003 100; +#X obj 67 50 loadbang; +#X obj 139 51 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X obj 246 496 tabwrite data2; +#X msg 86 230 memset 0 data2; +#X obj 67 110 t b b b; +#X obj 67 315 stdout; +#X text 326 232 writing evolving data to array; +#X connect 1 0 2 0; +#X connect 3 0 4 0; +#X connect 3 0 6 0; +#X connect 4 0 5 0; +#X connect 5 0 3 1; +#X connect 6 0 13 0; +#X connect 6 1 21 1; +#X connect 7 0 14 0; +#X connect 8 0 9 1; +#X connect 9 0 10 0; +#X connect 10 0 12 0; +#X connect 10 1 11 0; +#X connect 11 0 12 1; +#X connect 12 0 21 0; +#X connect 13 0 9 0; +#X connect 14 0 8 0; +#X connect 15 0 7 0; +#X connect 16 0 23 0; +#X connect 19 0 16 0; +#X connect 20 0 16 0; +#X connect 22 0 18 0; +#X connect 23 0 24 0; +#X connect 23 1 22 0; +#X connect 23 2 3 0; |