aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/pd
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-03-13 04:59:47 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-03-13 04:59:47 +0000
commit3ce0fb7e8ad57909fadcd4072817d69bc54e3a66 (patch)
treef4d4478420cc9f34bf26835f2edc5bd03f95a86b /externals/grill/py/pd
parent0e0bfeecb60ffa25d997830553685482c666b7ba (diff)
pydsp: share dsp buffer objects at inplace operation
DSP support for py/pyext: new objects pyext~,pyx~,pyext.~,pyx.~ new base class for py and pyext classes preset sys.argv for module loading support for buffer objects (preliminary) py: bang in left inlet now really triggers without arguments fixes for detached operation and single-threaded version little restructuring adjust pd and py files for correct argument passing more optimizations update for new flext callback naming use lock count instead of message queuing to avoid py->py messaging deadlock pyext: fix for inlet count svn path=/trunk/; revision=2624
Diffstat (limited to 'externals/grill/py/pd')
-rw-r--r--externals/grill/py/pd/script-1.pd13
-rw-r--r--externals/grill/py/pd/sig-1.pd28
-rw-r--r--externals/grill/py/pd/sig-2.pd23
3 files changed, 58 insertions, 6 deletions
diff --git a/externals/grill/py/pd/script-1.pd b/externals/grill/py/pd/script-1.pd
index b748857d..27b63d43 100644
--- a/externals/grill/py/pd/script-1.pd
+++ b/externals/grill/py/pd/script-1.pd
@@ -1,4 +1,4 @@
-#N canvas 297 17 688 530 12;
+#N canvas 297 17 692 534 12;
#X obj 39 278 print;
#X obj 345 251 print;
#X msg 499 149 freakhole;
@@ -8,16 +8,16 @@
#X msg 102 367 0 1 2 3 4;
#X msg 197 367 5 67 3;
#X obj 350 456 print;
-#X obj 326 365 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
+#X obj 316 358 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
-1;
#X obj 515 455 print;
-#X obj 514 386 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
+#X obj 484 381 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
-1;
#X msg 188 204 1 3;
#X msg 345 155 help;
-#X msg 360 327 set ret1;
-#X msg 379 351 set ret2;
-#X text 434 326 functions can be set;
+#X msg 350 320 set ret1;
+#X msg 369 344 set ret2;
+#X text 424 319 functions can be set;
#X msg 421 120 somewhere_past_mars;
#X text 152 101 reload with new arguments;
#X msg 40 104 reload 1 2 3;
@@ -37,6 +37,7 @@ file.;
#X text 235 32 http://grrrr.org/ext;
#X msg 509 178 a b c;
#X text 556 181 too many args;
+#X text 505 372 just trigger without arguments;
#X connect 2 0 25 1;
#X connect 3 0 21 1;
#X connect 4 0 21 1;
diff --git a/externals/grill/py/pd/sig-1.pd b/externals/grill/py/pd/sig-1.pd
new file mode 100644
index 00000000..aaba2fc7
--- /dev/null
+++ b/externals/grill/py/pd/sig-1.pd
@@ -0,0 +1,28 @@
+#N canvas 56 67 651 303 12;
+#X obj 56 234 dac~;
+#X msg 523 211 \; pd dsp 1;
+#X obj 524 184 loadbang;
+#X obj 194 114 hsl 128 15 0.01 1 1 1 empty empty gain -2 -6 0 8 -225271
+-1 -1 4400 1;
+#X obj 89 116 noise~;
+#X msg 28 117 reload;
+#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818
+-1 0;
+#X text 213 32 http://grrrr.org/ext;
+#X text 213 16 Python script objects \, (C)2003-2005 Thomas Grill;
+#X text 17 66 This demonstrates signal support. See the sig.py file.
+;
+#X obj 191 131 nbx 5 14 0.001 1 1 0 empty empty empty 0 -6 0 10 -225271
+-1 -1 0.0493075 256;
+#X obj 67 181 pyext~ 0 0 1 1 sig gain;
+#X msg 192 148 set gain \$1;
+#X text 123 202 message inlets \, outlets;
+#X text 123 217 signal inlets \, outlets;
+#X connect 2 0 1 0;
+#X connect 3 0 10 0;
+#X connect 4 0 11 0;
+#X connect 5 0 11 0;
+#X connect 10 0 12 0;
+#X connect 11 0 0 0;
+#X connect 11 0 0 1;
+#X connect 12 0 11 0;
diff --git a/externals/grill/py/pd/sig-2.pd b/externals/grill/py/pd/sig-2.pd
new file mode 100644
index 00000000..0e641600
--- /dev/null
+++ b/externals/grill/py/pd/sig-2.pd
@@ -0,0 +1,23 @@
+#N canvas 56 67 659 311 12;
+#X obj 121 246 dac~;
+#X msg 523 211 \; pd dsp 1;
+#X obj 524 184 loadbang;
+#X obj 266 134 hsl 128 15 0 1 0 1 empty empty pan -2 -6 0 8 -225271
+-1 -1 6500 1;
+#X obj 92 126 noise~;
+#X msg 31 127 reload;
+#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818
+-1 0;
+#X text 213 32 http://grrrr.org/ext;
+#X text 213 16 Python script objects \, (C)2003-2005 Thomas Grill;
+#X text 17 66 This demonstrates signal support. See the sig.py file.
+;
+#X obj 92 179 pyext~ 1 0 1 2 sig pan;
+#X text 185 202 message inlets \, outlets;
+#X text 183 218 signal inlets \, outlets;
+#X connect 2 0 1 0;
+#X connect 3 0 10 1;
+#X connect 4 0 10 0;
+#X connect 5 0 10 0;
+#X connect 10 0 0 0;
+#X connect 10 1 0 1;