aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <nimon@users.sourceforge.net>2012-11-08 09:51:19 +0000
committerN.N. <nimon@users.sourceforge.net>2012-11-08 09:51:19 +0000
commitb78e6f4e143678b06aec719e640356c334c48a5c (patch)
tree7a728ad88061c5c0f82641b8def49aa645eabd9b
parenta86d36109abcdf80b6cb69d81ec07b14fecc5e1e (diff)
share_mem : updating examples
svn path=/trunk/externals/share_mem/; revision=16530
-rw-r--r--examples/1.basic_example.pd14
-rw-r--r--examples/2.lazy_synchro.pd (renamed from examples/2.lazy_syncro.pd)22
-rw-r--r--examples/3.synchro_jitter.pd (renamed from examples/3.syncro_jitter.pd)56
-rw-r--r--examples/4.table_fifo.pd28
-rw-r--r--examples/5.audio.pd10
-rw-r--r--examples/audio-subprocess.pd (renamed from examples/5.audio-subprocess.pd)0
-rw-r--r--examples/basic_example-subprocess.pd (renamed from examples/1.basic_example-subprocess.pd)0
-rw-r--r--examples/lazy_synchro-subprocess.pd (renamed from examples/2.lazy_syncro-subprocess.pd)4
-rw-r--r--examples/synchro_jitter-subprocess.pd (renamed from examples/3.syncro_jitter-subprocess.pd)0
-rw-r--r--examples/table_fifo-subprocess.pd (renamed from examples/4.table_fifo-subprocess.pd)0
10 files changed, 67 insertions, 67 deletions
diff --git a/examples/1.basic_example.pd b/examples/1.basic_example.pd
index d33e60e..5aa871a 100644
--- a/examples/1.basic_example.pd
+++ b/examples/1.basic_example.pd
@@ -11,7 +11,6 @@
#X msg 512 41 \; pd dsp 1;
#X text 44 116 launch subprocess;
#X obj 39 52 declare -path ..;
-#X msg 29 138 pd~ start 1.basic_example-subprocess.pd;
#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;
@@ -28,10 +27,11 @@
#X obj 373 218 shmem 1001 200;
#X obj 29 202 pd~ -ninsig 0 -noutsig 0 -fifo 20;
#X text 432 177 refresh rate;
-#X connect 2 0 16 0;
+#X msg 29 138 pd~ start basic_example-subprocess.pd;
+#X connect 2 0 15 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;
+#X connect 7 0 8 0;
+#X connect 8 0 13 0;
+#X connect 9 0 7 0;
+#X connect 13 0 14 0;
+#X connect 17 0 15 0;
diff --git a/examples/2.lazy_syncro.pd b/examples/2.lazy_synchro.pd
index 14b2549..826399d 100644
--- a/examples/2.lazy_syncro.pd
+++ b/examples/2.lazy_synchro.pd
@@ -1,25 +1,25 @@
-#N canvas 189 490 626 385 10;
+#N canvas 289 256 626 385 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 coords 0 1 99 0 200 140 1;
#X restore 374 162 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 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 39 52 declare -path ..;
-#X msg 29 136 pd~ start 2.lazy_syncro-subprocess.pd;
+#X obj 29 62 declare -path ..;
#X text 26 329 reading the shared memory is made maximum 20 audio block
(pd~ round trip fifo) after pd~ set the value.;
#X obj 29 284 shmem 1002 100;
#X obj 29 222 pd~ -ninsig 0 -noutsig 0 -fifo 20;
-#X connect 2 0 12 0;
-#X connect 4 0 11 0;
-#X connect 5 0 6 0;
-#X connect 9 0 12 0;
-#X connect 12 0 4 0;
+#X msg 29 136 pd~ start lazy_synchro-subprocess.pd;
+#X text 30 23 Basic synchronised sharing of memory data between two
+pd instances;
+#X connect 1 0 10 0;
+#X connect 3 0 9 0;
+#X connect 4 0 5 0;
+#X connect 10 0 3 0;
+#X connect 11 0 10 0;
diff --git a/examples/3.syncro_jitter.pd b/examples/3.synchro_jitter.pd
index 88b325b..7d5c0b5 100644
--- a/examples/3.syncro_jitter.pd
+++ b/examples/3.synchro_jitter.pd
@@ -4,14 +4,12 @@
#X array data 100 float 2;
#X coords 0 1 99 -1 200 140 1;
#X restore 374 160 graph;
-#X text 30 23 Basic sharing of memory data between two pd instances
-;
#X msg 48 160 pd~ stop;
#X obj 104 300 shmem 1003 100;
#X obj 512 20 loadbang;
#X msg 512 41 \; pd dsp 1;
#X text 44 116 launch subprocess;
-#X obj 39 52 declare -path ..;
+#X obj 29 62 declare -path ..;
#X obj 104 215 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 275 355 t f f;
@@ -19,7 +17,6 @@
#X obj 302 400 sel 1;
#X obj 104 194 loadbang;
#X obj 248 335 sel 0;
-#X msg 29 138 pd~ start 3.syncro_jitter-subprocess.pd;
#X obj 513 79 loadbang;
#X msg 513 98 memclear;
#X obj 513 117 shmem 1003 100;
@@ -46,29 +43,32 @@ pd~ \, (specially since metro is fast and round trip buffer is high).
is read and written in the table. After 100 values \, "data_history"
should be constant.;
#X msg 104 280 memdump 0 data \, memread 0;
+#X msg 29 138 pd~ start synchro_jitter-subprocess.pd;
+#X text 30 23 Synchronisation problem demonstration between two pd
+instances;
+#X connect 1 0 17 0;
#X connect 2 0 19 0;
-#X connect 3 0 21 0;
-#X connect 3 0 13 0;
-#X connect 4 0 5 0;
-#X connect 8 0 28 0;
-#X connect 9 0 10 1;
-#X connect 9 1 10 0;
-#X connect 10 0 11 0;
-#X connect 11 0 29 0;
-#X connect 12 0 8 0;
-#X connect 13 1 9 0;
-#X connect 14 0 19 0;
-#X connect 15 0 16 0;
+#X connect 2 0 12 0;
+#X connect 3 0 4 0;
+#X connect 7 0 26 0;
+#X connect 8 0 9 1;
+#X connect 8 1 9 0;
+#X connect 9 0 10 0;
+#X connect 10 0 27 0;
+#X connect 11 0 7 0;
+#X connect 12 1 8 0;
+#X connect 13 0 14 0;
+#X connect 14 0 15 0;
#X connect 16 0 17 0;
-#X connect 18 0 19 0;
-#X connect 20 0 33 0;
-#X connect 20 1 18 0;
-#X connect 21 0 31 0;
-#X connect 21 1 22 0;
-#X connect 22 0 23 0;
-#X connect 23 0 24 0;
-#X connect 24 0 22 1;
-#X connect 24 0 31 1;
-#X connect 25 0 28 1;
-#X connect 28 0 20 0;
-#X connect 33 0 3 0;
+#X connect 18 0 31 0;
+#X connect 18 1 16 0;
+#X connect 19 0 29 0;
+#X connect 19 1 20 0;
+#X connect 20 0 21 0;
+#X connect 21 0 22 0;
+#X connect 22 0 20 1;
+#X connect 22 0 29 1;
+#X connect 23 0 26 1;
+#X connect 26 0 18 0;
+#X connect 31 0 2 0;
+#X connect 32 0 17 0;
diff --git a/examples/4.table_fifo.pd b/examples/4.table_fifo.pd
index edf331b..a615ef1 100644
--- a/examples/4.table_fifo.pd
+++ b/examples/4.table_fifo.pd
@@ -23,7 +23,6 @@ problem;
= 25 bang;
#X text 28 208 So \, lets use a memory size of 2500;
#X obj 27 434 shmem 1004 2500;
-#X msg 27 279 pd~ start 4.table_fifo-subprocess.pd;
#X obj 27 374 route syncro;
#X obj 27 394 * 100;
#X obj 27 353 pd~ -ninsig 0 -noutsig 0 -fifo 50;
@@ -42,23 +41,24 @@ problem;
way \, we need a data fifo.;
#X text 29 103 Only the index of the written position is passed through
stdout of the pd~ \, in order to keep data syncronisation;
-#X connect 2 0 19 0;
+#X msg 27 279 pd~ start table_fifo-subprocess.pd;
+#X connect 2 0 18 0;
#X connect 3 0 4 0;
#X connect 7 0 8 1;
#X connect 7 1 8 0;
#X connect 8 0 9 0;
-#X connect 9 0 27 0;
+#X connect 9 0 26 0;
#X connect 10 1 7 0;
#X connect 15 0 10 0;
-#X connect 15 0 20 0;
-#X connect 16 0 19 0;
-#X connect 17 0 18 0;
-#X connect 18 0 24 0;
-#X connect 19 0 17 0;
-#X connect 20 0 26 0;
-#X connect 20 1 21 0;
+#X connect 15 0 19 0;
+#X connect 16 0 17 0;
+#X connect 17 0 23 0;
+#X connect 18 0 16 0;
+#X connect 19 0 25 0;
+#X connect 19 1 20 0;
+#X connect 20 0 21 0;
#X connect 21 0 22 0;
-#X connect 22 0 23 0;
-#X connect 23 0 21 1;
-#X connect 23 0 26 1;
-#X connect 24 0 15 0;
+#X connect 22 0 20 1;
+#X connect 22 0 25 1;
+#X connect 23 0 15 0;
+#X connect 29 0 18 0;
diff --git a/examples/5.audio.pd b/examples/5.audio.pd
index c67bf51..0af2088 100644
--- a/examples/5.audio.pd
+++ b/examples/5.audio.pd
@@ -1,4 +1,4 @@
-#N canvas 731 436 632 604 12;
+#N canvas 178 98 632 604 12;
#X declare -path ..;
#X msg 435 99 \; pd dsp 1;
#X msg 38 74 pd~ stop;
@@ -30,7 +30,7 @@
#X obj 19 263 tabwrite~ \$0-oscillo;
#X obj 111 151 cnv 1 300 1 empty empty empty 20 12 0 14 -195568 -66577
0;
-#N canvas 0 0 767 419 (subpatch) 0;
+#N canvas 0 22 767 419 (subpatch) 0;
#X array \$0-oscillo 3000 float 0;
#X coords 0 1 2999 -1 300 80 1;
#X restore 111 111 graph;
@@ -61,7 +61,7 @@
#X obj 118 21 moses 10;
#X obj 111 151 cnv 1 300 1 empty empty empty 20 12 0 14 -195568 -66577
0;
-#N canvas 0 0 767 419 (subpatch) 0;
+#N canvas 0 22 767 419 (subpatch) 0;
#X array \$0-oscillo2 3000 float 0;
#X coords 0 1 2999 -1 300 80 1;
#X restore 111 111 graph;
@@ -93,7 +93,7 @@
#X obj 118 21 moses 10;
#X obj 111 151 cnv 1 300 1 empty empty empty 20 12 0 14 -195568 -66577
0;
-#N canvas 0 0 767 419 (subpatch) 0;
+#N canvas 0 22 767 419 (subpatch) 0;
#X array \$0-oscillo3 3000 float 0;
#X coords 0 1 2999 -1 300 80 1;
#X restore 111 111 graph;
@@ -115,7 +115,7 @@
#X restore 276 426 pd oscillo;
#X text 36 527 using the object \, audio is delay by 1 bloc (64 samples)
;
-#X msg 29 51 pd~ start 5.audio-subprocess.pd;
+#X msg 29 51 pd~ start audio-subprocess.pd;
#X connect 1 0 10 0;
#X connect 2 0 0 0;
#X connect 3 0 10 0;
diff --git a/examples/5.audio-subprocess.pd b/examples/audio-subprocess.pd
index e0da616..e0da616 100644
--- a/examples/5.audio-subprocess.pd
+++ b/examples/audio-subprocess.pd
diff --git a/examples/1.basic_example-subprocess.pd b/examples/basic_example-subprocess.pd
index 7539a47..7539a47 100644
--- a/examples/1.basic_example-subprocess.pd
+++ b/examples/basic_example-subprocess.pd
diff --git a/examples/2.lazy_syncro-subprocess.pd b/examples/lazy_synchro-subprocess.pd
index 8ddbbbc..cf5d679 100644
--- a/examples/2.lazy_syncro-subprocess.pd
+++ b/examples/lazy_synchro-subprocess.pd
@@ -1,8 +1,8 @@
-#N canvas 837 240 758 599 10;
+#N canvas 432 108 578 560 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 coords 0 1 99 0 200 140 1;
#X restore 354 43 graph;
#X obj 60 415 loadbang;
#X msg 60 436 \; pd dsp 1;
diff --git a/examples/3.syncro_jitter-subprocess.pd b/examples/synchro_jitter-subprocess.pd
index cc87632..cc87632 100644
--- a/examples/3.syncro_jitter-subprocess.pd
+++ b/examples/synchro_jitter-subprocess.pd
diff --git a/examples/4.table_fifo-subprocess.pd b/examples/table_fifo-subprocess.pd
index 91c020b..91c020b 100644
--- a/examples/4.table_fifo-subprocess.pd
+++ b/examples/table_fifo-subprocess.pd