aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <nimon@users.sourceforge.net>2012-11-01 11:33:39 +0000
committerN.N. <nimon@users.sourceforge.net>2012-11-01 11:33:39 +0000
commita06514061a0f3c36fa9f79adf9abe86e9e059cbd (patch)
tree94066c1888b3d4723ae9414b569392dd9eb2b500
parentde6aef19694a14a0b5dce0ea6ab9be54ab4d1239 (diff)
shmem : adding memclear message
svn path=/trunk/externals/share_mem/; revision=16506
-rw-r--r--shmem-help.pd62
1 files changed, 33 insertions, 29 deletions
diff --git a/shmem-help.pd b/shmem-help.pd
index a48e6aa..a6dac85 100644
--- a/shmem-help.pd
+++ b/shmem-help.pd
@@ -1,20 +1,20 @@
#N canvas 122 50 1009 468 10;
#N canvas 1 89 450 300 (subpatch) 0;
#X array array2 100 float 3;
-#A 0 -0.692856 -0.614285 -0.535714 -0.464285 -0.392857 -0.321428 -0.264286
--0.207143 -0.15 -0.0785718 -0.00714337 0.0309518 0.0690469 0.164285
-0.207142 0.22857 0.249999 0.307142 0.32857 0.349999 0.385713 0.421427
-0.449998 0.464284 0.492856 0.521427 0.535713 0.557141 0.57857 0.592855
-0.607141 0.635712 0.635712 0.649998 0.657141 0.664284 0.692855 0.699998
-0.707141 0.721426 0.721426 0.721426 0.728569 0.735712 0.749998 0.749998
-0.749998 0.749998 0.749998 0.749998 0.749998 0.749998 0.749998 0.735712
-0.735712 0.721426 0.707141 0.692855 0.685712 0.678569 0.671427 0.664284
-0.649998 0.635712 0.614284 0.592855 0.564284 0.535713 0.521427 0.507141
-0.485713 0.464284 0.449998 0.435713 0.37857 0.349999 0.321427 0.299999
-0.235713 0.207142 0.149999 0.121428 0.0928564 0.0357137 -0.00714338
--0.0357147 -0.0642861 -0.107143 -0.135715 -0.164286 -0.192857 -0.25
--0.307143 -0.364285 -0.407143 -0.464285 -0.535714 -0.607142 -0.735713
--0.992856;
+#A 0 -0.857141 -0.799998 -0.72857 -0.657141 -0.585713 -0.542856 -0.499999
+-0.457142 -0.414285 -0.342856 -0.271428 -0.228571 -0.171428 -0.0857141
+-0.0285714 0.0142857 0.0571427 0.0999998 0.171428 0.257142 0.314285
+0.342856 0.371428 0.399999 0.414285 0.442856 0.457142 0.485713 0.514285
+0.52857 0.542856 0.571427 0.585713 0.614284 0.657141 0.685713 0.714284
+0.72857 0.742856 0.771427 0.771427 0.771427 0.785713 0.799998 0.799998
+0.799998 0.799998 0.799998 0.799998 0.799998 0.799998 0.799998 0.799998
+0.799998 0.799998 0.799998 0.785713 0.785713 0.77857 0.771427 0.757141
+0.742856 0.72857 0.707141 0.685713 0.671427 0.657141 0.62857 0.607142
+0.585713 0.542856 0.521427 0.499999 0.457142 0.428571 0.357142 0.242857
+0.157143 0.0999998 0.0285714 -0.0285714 -0.0571427 -0.142857 -0.185714
+-0.242857 -0.285714 -0.342856 -0.371428 -0.428571 -0.485713 -0.52857
+-0.585713 -0.671427 -0.785713 -0.814284 -0.899998 -0.999998 -1.04285
+-1.02857 -1.04285;
#X coords 0 1 99 -1 200 140 1;
#X restore 680 26 graph;
#X msg 53 288 memset 0 1 1 1 1 1;
@@ -39,13 +39,12 @@ value is index \, other are data to store;
0.907141 0.921427 0.964284;
#X coords 0 1 99 -1 200 140 1;
#X restore 475 26 graph;
-#X msg 74 319 memset 100 5 5 5 1 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7;
#X text 136 223 set shared memory from index 0 with array1;
-#X msg 38 253 memset 0 array1 50;
-#X text 166 253 set shared memory from index 0 with array1 from index
+#X msg 38 245 memset 0 array1 50;
+#X text 166 245 set shared memory from index 0 with array1 from index
50;
-#X obj 22 375 shmem 1214 250;
-#X text 132 375 1st argument : Identifiant of the memory segment;
+#X obj 22 405 shmem 1214 250;
+#X text 132 405 1st argument : Identifiant of the memory segment;
#X text 21 15 shmem - shared memory manipulation;
#X text 22 37 The shmem object allow to use shared memory in Pd. It
is useful for example to exchange array between two instances of Pd.
@@ -60,18 +59,23 @@ the exisiting segment.;
;
#X msg 568 292 memdump 0 array2;
#X text 21 192 WRINTING INTO MEMORY;
-#X text 563 201 READING MEMORY;
+#X text 567 254 READING MEMORY;
#X floatatom 568 395 5 0 0 0 - - -;
#X text 688 292 dump shared memory from index 0 to array2;
#X text 21 146 Work only on Linux / and Unix.;
-#X text 132 391 2nd argument : size of the segment (number of float)
+#X text 132 421 2nd argument : size of the segment (number of float)
;
#X msg 584 343 memread \$1;
-#X connect 1 0 9 0;
-#X connect 3 0 9 0;
-#X connect 5 0 9 0;
-#X connect 7 0 9 0;
-#X connect 14 0 24 0;
-#X connect 15 0 20 0;
-#X connect 17 0 15 0;
-#X connect 24 0 15 0;
+#X msg 76 365 memclear;
+#X text 139 367 reset memory to 0;
+#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 connect 1 0 8 0;
+#X connect 3 0 8 0;
+#X connect 6 0 8 0;
+#X connect 13 0 23 0;
+#X connect 14 0 19 0;
+#X connect 16 0 14 0;
+#X connect 23 0 14 0;
+#X connect 24 0 8 0;
+#X connect 27 0 8 0;