From 9973e13610585d3f6a5b5d733caa1d15c74a3051 Mon Sep 17 00:00:00 2001 From: Cyrille Henry Date: Tue, 26 Mar 2013 22:17:19 +0000 Subject: code simplificatoin and "size" parametter addition. svn path=/trunk/externals/share_mem/; revision=17067 --- shmem-help.pd | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'shmem-help.pd') diff --git a/shmem-help.pd b/shmem-help.pd index d8d3572..7999463 100644 --- a/shmem-help.pd +++ b/shmem-help.pd @@ -1,4 +1,4 @@ -#N canvas 122 50 1064 468 10; +#N canvas 120 82 1232 469 10; #N canvas 1 89 450 300 (subpatch) 0; #X array array2 100 float 3; #A 0 -0.857141 -0.799998 -0.72857 -0.657141 -0.585713 -0.542856 -0.499999 @@ -21,7 +21,7 @@ #X text 185 282 write a list (or a float) to the shared memory : 1st value is index \, other are data to store; #X msg 22 223 memset 0 array1; -#N canvas 0 22 450 300 (subpatch) 0; +#N canvas 0 50 450 300 (subpatch) 0; #X array array1 100 float 3; #A 0 -0.87857 -0.864284 -0.849998 -0.835713 -0.835713 -0.807141 -0.792856 -0.77857 -0.749998 -0.749998 -0.735713 -0.707141 -0.692856 -0.67857 @@ -70,9 +70,12 @@ the exisiting segment.; #X text 475 168 array1 and array 2 are size 100; #X msg 69 318 memset 50 5 5 5 1 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7; #X text 21 192 WRITING INTO MEMORY; -#X msg 588 282 memdump 0 array2 50; -#X text 708 282 dump shared memory from index 0 to array2 from index +#X msg 578 274 memdump 0 array2 50; +#X text 698 274 dump shared memory from index 0 to array2 from index 50; +#X msg 588 294 memdump 0 array2 50 10; +#X text 738 294 dump shared memory from index 0 to array2 from index +50 to index 60 (50 + 10); #X connect 1 0 8 0; #X connect 3 0 8 0; #X connect 6 0 8 0; @@ -83,3 +86,4 @@ the exisiting segment.; #X connect 23 0 8 0; #X connect 26 0 8 0; #X connect 28 0 14 0; +#X connect 30 0 14 0; -- cgit v1.2.1