From 533a75a9f57f73711e7e3c5afef0ce83f632ca4c Mon Sep 17 00:00:00 2001 From: Cyrille Henry Date: Fri, 2 Nov 2012 20:48:39 +0000 Subject: more examples... svn path=/trunk/externals/share_mem/; revision=16522 --- examples/1.basic_example-subprocess.pd | 72 ++++++++++------------------------ 1 file changed, 20 insertions(+), 52 deletions(-) (limited to 'examples/1.basic_example-subprocess.pd') diff --git a/examples/1.basic_example-subprocess.pd b/examples/1.basic_example-subprocess.pd index 2e29022..7539a47 100644 --- a/examples/1.basic_example-subprocess.pd +++ b/examples/1.basic_example-subprocess.pd @@ -1,57 +1,25 @@ -#N canvas 845 216 758 599 10; +#N canvas 1203 206 570 408 10; #X declare -path ..; #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 obj 66 16 declare -path ..; +#X coords 0 1 99 -1 200 140 1 0 0; +#X restore 326 209 graph; +#X obj 210 22 loadbang; +#X msg 210 43 \; pd dsp 1; +#X obj 33 19 declare -path ..; +#X obj 33 96 metro 50; +#X obj 33 57 loadbang; +#X obj 33 77 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1 +; +#N canvas 0 22 450 300 (subpatch) 0; +#X array data 100 float 2; +#X coords 0 1 99 -1 200 140 1 0 0; +#X restore 325 38 graph; +#X text 51 138 read and write to the shared memory; +#X msg 33 156 memdump 0 data \, memset 100 data2; +#X obj 33 176 shmem 1001 200; #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 4 0 9 0; +#X connect 5 0 6 0; +#X connect 6 0 4 0; #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; -- cgit v1.2.1