aboutsummaryrefslogtreecommitdiff
path: root/examples/1.basic_example.pd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/1.basic_example.pd')
-rw-r--r--examples/1.basic_example.pd39
1 files changed, 26 insertions, 13 deletions
diff --git a/examples/1.basic_example.pd b/examples/1.basic_example.pd
index e065bf8..dbb00dc 100644
--- a/examples/1.basic_example.pd
+++ b/examples/1.basic_example.pd
@@ -1,23 +1,36 @@
-#N canvas 212 155 626 385 10;
+#N canvas 557 101 630 649 10;
#X declare -path ..;
#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 coords 0 1 99 -1 200 140 1 0 0;
+#X restore 28 269 graph;
#X text 30 23 Basic sharing of memory data between two pd instances
;
-#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 msg 48 174 pd~ stop;
#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 obj 39 52 declare -path ..;
#X msg 29 138 pd~ start 1.basic_example-subprocess.pd;
-#X connect 2 0 9 0;
-#X connect 5 0 4 0;
-#X connect 6 0 7 0;
-#X connect 9 0 5 0;
-#X connect 11 0 9 0;
+#X obj 373 155 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
+1;
+#X obj 373 174 metro 50;
+#X obj 373 134 loadbang;
+#N canvas 0 22 450 300 (subpatch) 0;
+#X array data2 100 float 2;
+#X coords 0 1 99 -1 200 140 1 0 0;
+#X restore 29 479 graph;
+#X text 26 236 change this table \, see it moving in the subprocess
+;
+#X text 28 446 change data2 in the subprocess \, see it moving here
+;
+#X msg 373 194 memset 0 data \, memdump 100 data2;
+#X obj 373 218 shmem 1001 200;
+#X obj 29 202 pd~ -ninsig 0 -noutsig 0 -fifo 20;
+#X connect 2 0 16 0;
+#X connect 3 0 4 0;
+#X connect 7 0 16 0;
+#X connect 8 0 9 0;
+#X connect 9 0 14 0;
+#X connect 10 0 8 0;
+#X connect 14 0 15 0;