From e728a5bc3db296b4b67c2d3e5b56558c42c566a8 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 21 Jun 2004 14:08:57 +0000 Subject: "" svn path=/trunk/; revision=1826 --- externals/grill/py/pd/attr-1.pd | 66 ++++++++++++++++---------------- externals/grill/py/pd/script-1.pd | 52 +++++++++++++------------ externals/grill/py/pd/sendrecv-1.pd | 54 ++++++++++++++------------ externals/grill/py/pd/sendrecv-2.pd | 20 ++++++---- externals/grill/py/pd/sendrecv-3.pd | 14 ++++--- externals/grill/py/pd/simple-1.pd | 14 ++++--- externals/grill/py/pd/simple-2.pd | 76 +++++++++++++++++++------------------ externals/grill/py/pd/simple-3.pd | 56 ++++++++++++++------------- externals/grill/py/pd/thread-1.pd | 52 +++++++++++++------------ 9 files changed, 214 insertions(+), 190 deletions(-) (limited to 'externals/grill/py/pd') diff --git a/externals/grill/py/pd/attr-1.pd b/externals/grill/py/pd/attr-1.pd index f302db7e..bf797c70 100644 --- a/externals/grill/py/pd/attr-1.pd +++ b/externals/grill/py/pd/attr-1.pd @@ -1,32 +1,34 @@ -#N canvas 114 127 687 417 12; -#X obj 224 370 pyext simple ex3; -#X obj 392 371 print A; -#X msg 252 180 get tmp; -#X msg 369 210 get _inlets; -#X msg 253 204 set tmp 3; -#X msg 368 234 set _inlets 4; -#X msg 18 179 dir; -#X msg 15 282 getattributes; -#X msg 15 309 getmethods; -#X msg 18 207 dir+; -#X text 15 48 This demonstrates the usage of attributes. See the simple.py -file.; -#X text 252 161 access a class variable; -#X text 368 191 try to get/set internal stuff; -#X text 479 234 (NOT allowed!); -#X text 16 15 py/pyext - Python script objects \, (C)2003 Thomas Grill -; -#X text 16 261 get attributes and methods; -#X text 51 178 Python module dict; -#X text 59 208 Python class dict; -#X text 17 101 All attribute-related methods dump eventual output to -the attribute outlet (which is the right-most one); -#X connect 0 1 1 0; -#X connect 2 0 0 0; -#X connect 3 0 0 0; -#X connect 4 0 0 0; -#X connect 5 0 0 0; -#X connect 6 0 0 0; -#X connect 7 0 0 0; -#X connect 8 0 0 0; -#X connect 9 0 0 0; +#N canvas 114 127 693 451 12; +#X obj 224 397 pyext simple ex3; +#X obj 392 398 print A; +#X msg 252 207 get tmp; +#X msg 369 237 get _inlets; +#X msg 253 231 set tmp 3; +#X msg 368 261 set _inlets 4; +#X msg 18 206 dir; +#X msg 15 312 getattributes; +#X msg 15 336 getmethods; +#X msg 18 234 dir+; +#X text 15 75 This demonstrates the usage of attributes. See the simple.py +file.; +#X text 252 188 access a class variable; +#X text 368 218 try to get/set internal stuff; +#X text 479 261 (NOT allowed!); +#X text 16 288 get attributes and methods; +#X text 51 205 Python module dict; +#X text 59 235 Python class dict; +#X text 17 128 All attribute-related methods dump eventual output to +the attribute outlet (which is the right-most one); +#X obj 16 13 cnv 15 650 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 235 32 http://www.parasitaere-kapazitaeten.net; +#X text 235 16 Python script objects \, (C)2003-2004 Thomas Grill; +#X connect 0 1 1 0; +#X connect 2 0 0 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 5 0 0 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X connect 8 0 0 0; +#X connect 9 0 0 0; diff --git a/externals/grill/py/pd/script-1.pd b/externals/grill/py/pd/script-1.pd index 4ac23971..d0d7e5b2 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 676 527 12; +#N canvas 297 17 680 522 12; #X obj 39 278 print; #X obj 345 251 print; #X msg 499 149 freakhole; @@ -21,9 +21,7 @@ #X msg 421 120 somewhere_past_mars; #X text 152 101 reload with new arguments; #X msg 40 104 reload 1 2 3; -#X text 23 13 py/pyext - Python script objects \, (C)2002 Thomas Grill -; -#X text 21 42 This demonstrates simple scripting. See the script.py +#X text 21 69 This demonstrates simple scripting. See the script.py file.; #X obj 39 241 py script strcat; #X obj 43 424 py script addall; @@ -33,24 +31,28 @@ file.; #X msg 21 159 dir; #X obj 146 279 print A; #X msg 58 160 dir+; -#X connect 2 0 26 1; -#X connect 3 0 22 1; -#X connect 4 0 22 1; -#X connect 6 0 23 1; -#X connect 7 0 23 1; -#X connect 9 0 24 0; -#X connect 11 0 25 0; -#X connect 12 0 22 1; -#X connect 13 0 26 0; -#X connect 14 0 24 0; -#X connect 15 0 24 0; -#X connect 17 0 26 1; -#X connect 19 0 22 0; -#X connect 22 0 0 0; -#X connect 22 1 28 0; -#X connect 23 0 5 0; -#X connect 24 0 8 0; -#X connect 25 0 10 0; -#X connect 26 0 1 0; -#X connect 27 0 22 0; -#X connect 29 0 22 0; +#X obj 16 13 cnv 15 630 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 235 32 http://www.parasitaere-kapazitaeten.net; +#X text 235 16 Python script objects \, (C)2003-2004 Thomas Grill; +#X connect 2 0 25 1; +#X connect 3 0 21 1; +#X connect 4 0 21 1; +#X connect 6 0 22 1; +#X connect 7 0 22 1; +#X connect 9 0 23 0; +#X connect 11 0 24 0; +#X connect 12 0 21 1; +#X connect 13 0 25 0; +#X connect 14 0 23 0; +#X connect 15 0 23 0; +#X connect 17 0 25 1; +#X connect 19 0 21 0; +#X connect 21 0 0 0; +#X connect 21 1 27 0; +#X connect 22 0 5 0; +#X connect 23 0 8 0; +#X connect 24 0 10 0; +#X connect 25 0 1 0; +#X connect 26 0 21 0; +#X connect 28 0 21 0; diff --git a/externals/grill/py/pd/sendrecv-1.pd b/externals/grill/py/pd/sendrecv-1.pd index d2d4b50a..56810c74 100644 --- a/externals/grill/py/pd/sendrecv-1.pd +++ b/externals/grill/py/pd/sendrecv-1.pd @@ -1,25 +1,29 @@ -#N canvas 343 246 466 316 12; -#X msg 125 52 reload mi ma; -#X floatatom 48 173 5 0 0; -#X floatatom 181 174 5 0 0; -#X obj 181 198 s mi; -#X floatatom 49 265 5 0 0; -#X floatatom 181 266 5 0 0; -#X obj 181 239 r ma; -#X obj 48 197 s he; -#X obj 49 238 r hu; -#X text 233 51 reload with different args; -#X msg 20 17 help; -#X msg 19 49 doc; -#X msg 58 49 doc+; -#X obj 49 100 pyext sendrecv ex1 he hu; -#X text 28 151 scroll here; -#X text 176 152 or here; -#X connect 0 0 13 0; -#X connect 1 0 7 0; -#X connect 2 0 3 0; -#X connect 6 0 5 0; -#X connect 8 0 4 0; -#X connect 10 0 13 0; -#X connect 11 0 13 0; -#X connect 12 0 13 0; +#N canvas 145 126 642 317 12; +#X msg 125 117 reload mi ma; +#X floatatom 48 238 5 0 0 0 - - -; +#X floatatom 297 239 5 0 0 0 - - -; +#X obj 297 263 s mi; +#X floatatom 143 265 5 0 0 0 - - -; +#X floatatom 382 267 5 0 0 0 - - -; +#X obj 382 240 r ma; +#X obj 48 262 s he; +#X obj 143 238 r hu; +#X text 233 116 reload with different args; +#X msg 20 82 help; +#X msg 19 114 doc; +#X msg 58 114 doc+; +#X obj 49 165 pyext sendrecv ex1 he hu; +#X text 30 218 scroll here; +#X text 292 219 or here; +#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 213 32 http://www.parasitaere-kapazitaeten.net; +#X text 213 16 Python script objects \, (C)2003-2004 Thomas Grill; +#X connect 0 0 13 0; +#X connect 1 0 7 0; +#X connect 2 0 3 0; +#X connect 6 0 5 0; +#X connect 8 0 4 0; +#X connect 10 0 13 0; +#X connect 11 0 13 0; +#X connect 12 0 13 0; diff --git a/externals/grill/py/pd/sendrecv-2.pd b/externals/grill/py/pd/sendrecv-2.pd index 9f015b4c..a257d5e8 100644 --- a/externals/grill/py/pd/sendrecv-2.pd +++ b/externals/grill/py/pd/sendrecv-2.pd @@ -1,8 +1,12 @@ -#N canvas 133 322 454 304 12; -#X obj 36 135 pyext sendrecv ex2 huha; -#X floatatom 36 165 5 0 0; -#X floatatom 35 38 5 0 0; -#X obj 34 65 s huha; -#X text 22 19 scroll here; -#X connect 0 0 1 0; -#X connect 2 0 3 0; +#N canvas 133 322 643 185 12; +#X obj 152 98 pyext sendrecv ex2 huha; +#X floatatom 152 128 5 0 0 0 - - -; +#X floatatom 33 96 5 0 0 0 - - -; +#X obj 32 123 s huha; +#X text 20 77 scroll here; +#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 213 32 http://www.parasitaere-kapazitaeten.net; +#X text 213 16 Python script objects \, (C)2003-2004 Thomas Grill; +#X connect 0 0 1 0; +#X connect 2 0 3 0; diff --git a/externals/grill/py/pd/sendrecv-3.pd b/externals/grill/py/pd/sendrecv-3.pd index 0f42edfc..037895fb 100644 --- a/externals/grill/py/pd/sendrecv-3.pd +++ b/externals/grill/py/pd/sendrecv-3.pd @@ -1,5 +1,9 @@ -#N canvas 294 237 484 334 12; -#X obj 283 258 pyext sendrecv ex3; -#X obj 437 255 bng 25 250 50 0 empty ugh empty 0 -6 64 8 -258699 -1 --1; -#X connect 1 0 0 1; +#N canvas 294 237 640 319 12; +#X obj 410 265 pyext sendrecv ex3; +#X obj 564 262 bng 25 250 50 0 empty ugh empty 0 -6 0 8 -258699 -1 +-1; +#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 213 32 http://www.parasitaere-kapazitaeten.net; +#X text 213 16 Python script objects \, (C)2003-2004 Thomas Grill; +#X connect 1 0 0 1; diff --git a/externals/grill/py/pd/simple-1.pd b/externals/grill/py/pd/simple-1.pd index 2d60db5b..f4b10cae 100644 --- a/externals/grill/py/pd/simple-1.pd +++ b/externals/grill/py/pd/simple-1.pd @@ -1,7 +1,7 @@ -#N canvas 156 192 650 389 12; +#N canvas 156 192 662 389 12; #X obj 53 123 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X floatatom 52 155 5 0 0; +#X floatatom 52 155 5 0 0 0 - - -; #X text 388 337 watch the console output!; #X msg 52 186 2 3 4; #X msg 277 131 ho; @@ -16,13 +16,15 @@ #X msg 447 140 twoargs 41 15; #X msg 453 239 twoargs 1 2 3; #X msg 71 299 help; -#X text 16 15 py/pyext - Python script objects \, (C)2002 Thomas Grill -; -#X text 15 57 This demonstrates message handling. See the simple.py +#X text 16 69 This demonstrates message handling. See the simple.py file.; #X text 232 322 file class; #X msg 70 324 doc; #X msg 106 325 doc+; +#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 213 32 http://www.parasitaere-kapazitaeten.net; +#X text 213 16 Python script objects \, (C)2003-2004 Thomas Grill; #X connect 0 0 9 1; #X connect 1 0 9 1; #X connect 3 0 9 1; @@ -37,5 +39,5 @@ file.; #X connect 13 0 9 3; #X connect 14 0 9 3; #X connect 15 0 9 0; +#X connect 18 0 9 0; #X connect 19 0 9 0; -#X connect 20 0 9 0; diff --git a/externals/grill/py/pd/simple-2.pd b/externals/grill/py/pd/simple-2.pd index e20be506..31680d87 100644 --- a/externals/grill/py/pd/simple-2.pd +++ b/externals/grill/py/pd/simple-2.pd @@ -1,37 +1,39 @@ -#N canvas 225 210 689 411 12; -#X floatatom 251 106 5 0 0; -#X text 409 291 watch the console output!; -#X msg 55 213 help; -#X text 15 57 This demonstrates message handling. See the simple.py -file.; -#X msg 54 238 doc; -#X msg 90 239 doc+; -#X floatatom 308 106 5 0 0; -#X msg 218 228 msg 2; -#X obj 172 282 pyext simple ex2; -#X floatatom 172 327 5 0 0; -#X floatatom 289 328 5 0 0; -#X text 17 22 py/pyext - Python script objects \, (C)2002 Thomas Grill -; -#X msg 149 197 msg 1 3; -#X msg 283 213 msg a b; -#X msg 169 167 hello; -#X msg 242 173 hello; -#X msg 315 172 msg; -#X msg 374 147 hello 3; -#X text 418 172 special case: 'hello' handler doesn't like args \, -so _anything_ is called!; -#X connect 0 0 8 1; -#X connect 2 0 8 0; -#X connect 4 0 8 0; -#X connect 5 0 8 0; -#X connect 6 0 8 2; -#X connect 7 0 8 2; -#X connect 8 0 9 0; -#X connect 8 1 10 0; -#X connect 12 0 8 1; -#X connect 13 0 8 3; -#X connect 14 0 8 1; -#X connect 15 0 8 3; -#X connect 16 0 8 2; -#X connect 17 0 8 3; +#N canvas 95 223 650 390 12; +#X floatatom 202 113 5 0 0 0 - - -; +#X text 338 286 watch the console output!; +#X msg 20 115 help; +#X text 16 69 This demonstrates message handling. See the simple.py +file.; +#X msg 19 140 doc; +#X msg 55 141 doc+; +#X floatatom 259 113 5 0 0 0 - - -; +#X msg 169 235 msg 2; +#X obj 123 289 pyext simple ex2; +#X floatatom 123 334 5 0 0 0 - - -; +#X floatatom 240 335 5 0 0 0 - - -; +#X msg 100 204 msg 1 3; +#X msg 234 220 msg a b; +#X msg 120 174 hello; +#X msg 193 180 hello; +#X msg 266 179 msg; +#X msg 325 154 hello 3; +#X text 338 189 special case: 'hello' handler doesn't like args \, +so _anything_ is called!; +#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 213 32 http://www.parasitaere-kapazitaeten.net; +#X text 213 16 Python script objects \, (C)2003-2004 Thomas Grill; +#X connect 0 0 8 1; +#X connect 2 0 8 0; +#X connect 4 0 8 0; +#X connect 5 0 8 0; +#X connect 6 0 8 2; +#X connect 7 0 8 2; +#X connect 8 0 9 0; +#X connect 8 1 10 0; +#X connect 11 0 8 1; +#X connect 12 0 8 3; +#X connect 13 0 8 1; +#X connect 14 0 8 3; +#X connect 15 0 8 2; +#X connect 16 0 8 3; diff --git a/externals/grill/py/pd/simple-3.pd b/externals/grill/py/pd/simple-3.pd index 450a3ec9..9cdb3f1b 100644 --- a/externals/grill/py/pd/simple-3.pd +++ b/externals/grill/py/pd/simple-3.pd @@ -1,27 +1,29 @@ -#N canvas 384 270 546 386 12; -#X msg 88 279 help; -#X text 15 50 This demonstrates message handling. See the simple.py -file.; -#X msg 87 304 doc; -#X msg 123 305 doc+; -#X floatatom 288 345 5 0 0 0 - - -; -#X text 17 22 py/pyext - Python script objects \, (C)2002 Thomas Grill -; -#X floatatom 316 119 5 0 0 0 - - -; -#X floatatom 399 119 5 0 0 0 - - -; -#X obj 225 279 pyext simple ex3 1; -#X msg 39 195 reload.; -#X msg 39 223 reload -10; -#X text 110 194 reload script and keep arguments; -#X text 128 224 reload script with new arguments; -#X text 281 140 triggers; -#X text 340 344 result; -#X text 410 140 sets argument; -#X connect 0 0 8 0; -#X connect 2 0 8 0; -#X connect 3 0 8 0; -#X connect 6 0 8 1; -#X connect 7 0 8 2; -#X connect 8 0 4 0; -#X connect 9 0 8 0; -#X connect 10 0 8 0; +#N canvas 136 275 649 361 12; +#X msg 73 266 help; +#X text 17 80 This demonstrates message handling. See the simple.py +file.; +#X msg 72 291 doc; +#X msg 108 292 doc+; +#X floatatom 258 305 5 0 0 0 - - -; +#X floatatom 316 119 5 0 0 0 - - -; +#X floatatom 399 119 5 0 0 0 - - -; +#X obj 210 266 pyext simple ex3 1; +#X msg 24 182 reload.; +#X msg 24 210 reload -10; +#X text 95 181 reload script and keep arguments; +#X text 113 211 reload script with new arguments; +#X text 281 140 triggers; +#X text 310 304 result; +#X text 410 140 sets argument; +#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 213 32 http://www.parasitaere-kapazitaeten.net; +#X text 213 16 Python script objects \, (C)2003-2004 Thomas Grill; +#X connect 0 0 7 0; +#X connect 2 0 7 0; +#X connect 3 0 7 0; +#X connect 5 0 7 1; +#X connect 6 0 7 2; +#X connect 7 0 4 0; +#X connect 8 0 7 0; +#X connect 9 0 7 0; diff --git a/externals/grill/py/pd/thread-1.pd b/externals/grill/py/pd/thread-1.pd index be775852..b2daa5f0 100644 --- a/externals/grill/py/pd/thread-1.pd +++ b/externals/grill/py/pd/thread-1.pd @@ -1,32 +1,34 @@ -#N canvas 440 61 590 402 12; -#X msg 38 265 help; -#X msg 37 290 doc; -#X msg 73 291 doc+; -#X floatatom 145 323 5 0 0 0 - - -; -#X text 14 44 This demonstrates threading. See the threads.py file. +#N canvas 135 178 644 401 12; +#X msg 35 292 help; +#X msg 34 317 doc; +#X msg 70 318 doc+; +#X floatatom 142 340 5 0 0 0 - - -; +#X text 17 66 This demonstrates threading. See the threads.py file. ; -#X obj 140 216 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 +#X obj 137 243 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; -#X msg 140 236 detach \$1; -#X floatatom 253 324 5 0 0 0 - - -; -#X obj 275 123 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1 +#X msg 137 263 detach \$1; +#X floatatom 250 341 5 0 0 0 - - -; +#X obj 272 150 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1 -1; -#X obj 146 127 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1 +#X obj 143 154 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1 -1; -#X obj 146 154 t b b b; -#X obj 275 150 t b b b; -#X obj 289 179 1; -#X obj 160 181 0; -#X text 87 87 without threads; -#X text 251 85 with threads; -#X text 252 102 non-blocking; -#X text 178 345 watch that!; -#X msg 414 127 stop; -#X text 384 106 you can even stop it; -#X obj 145 279 pyext threads ex1; -#X text 93 101 - blocking!! -; -#X text 16 14 py/pyext - Python script objects \, (C)2002 \, 2003 Thomas -Grill; +#X obj 143 181 t b b b; +#X obj 272 177 t b b b; +#X obj 286 206 1; +#X obj 157 208 0; +#X text 84 114 without threads; +#X text 248 112 with threads; +#X text 249 129 non-blocking; +#X text 175 362 watch that!; +#X msg 411 154 stop; +#X text 381 133 you can even stop it; +#X obj 142 306 pyext threads ex1; +#X text 90 128 - blocking!! -; +#X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818 +-1 0; +#X text 213 32 http://www.parasitaere-kapazitaeten.net; +#X text 213 16 Python script objects \, (C)2003-2004 Thomas Grill; #X connect 0 0 20 0; #X connect 1 0 20 0; #X connect 2 0 20 0; -- cgit v1.2.1