Update of /cvsroot/pure-data/externals/grill/py/pd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3088/pd
Modified Files: buffer-1.pd Log Message: more buffer functionality (support sequence and number protocols) more examples preset sys.argv for module loading support for buffer objects (preliminary)
Index: buffer-1.pd =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/pd/buffer-1.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** buffer-1.pd 9 Mar 2005 04:58:10 -0000 1.1 --- buffer-1.pd 10 Mar 2005 04:58:59 -0000 1.2 *************** *** 1,3 **** ! #N canvas 123 58 692 472 12; #X obj 37 240 print; #X obj 107 241 print A; --- 1,3 ---- ! #N canvas 123 58 712 492 12; #X obj 37 240 print; #X obj 107 241 print A; *************** *** 5,38 **** #N canvas 0 0 450 300 graph1 0; #X array array1 100 float 3; ! #A 0 0 0 0 0 0 0 0 0 0 0 0.0285713 0.042857 0.042857 0.042857 0.042857 ! 0.042857 0.0142857 0.0142857 0.0142857 -0.0285713 -0.0571427 -0.0999997 ! -0.171428 -0.185714 -0.199999 -0.271428 -0.342856 -0.385713 -0.385713 ! -0.385713 -0.385713 -0.385713 -0.385713 -0.385713 -0.385713 -0.357142 ! -0.357142 -0.357142 -0.335713 -0.314285 -0.299999 -0.285713 -0.271428 ! -0.257142 -0.242856 -0.228571 -0.214285 -0.185714 -0.157142 -0.128571 ! -0.0999997 -0.085714 -0.0714283 -0.042857 -0.0142857 0.0142857 0.042857 ! 0.0523808 0.0619046 0.0714283 0.114285 0.15 0.214285 0.257142 0.228571 ! 0.207142 0.185714 0.157142 0.085714 0.0142857 0.0142857 0.0142857 -0.0571427 ! -0.0571427 -0.0999997 -0.0999997 -0.0999997 -0.171428 -0.171428 -0.158646 ! -0.142105 -0.125564 -0.109022 -0.092481 -0.0759397 -0.0593984 -0.042857 ! -0.0175824 0.00769227 0.0329669 0.0582416 0.0835162 0.108791 0.134065 ! 0.15934 0.184615 0.209889 0.235164 0.260439 0.32857; #X coords 0 1 99 -1 200 140 1; #X restore 421 156 graph; #N canvas 0 0 450 300 graph2 0; #X array array2 100 float 3; ! #A 0 0 0 0 0 0 0 0.0285712 0.0428568 0.0571424 0.0999993 0.114285 0.128571 ! 0.142856 0.157142 0.171427 0.185713 0.199999 0.242855 0.257141 0.271426 ! 0.314283 0.342854 0.385711 0.421425 0.485711 0.557139 0.599995 0.671424 ! 0.680947 0.690471 0.699995 0.742852 0.752375 0.761899 0.771423 0.771423 ! 0.771423 0.81428 0.81428 0.81428 0.81428 0.828565 0.842851 0.842851 ! 0.842851 0.842851 0.842851 0.842851 0.864279 0.885708 0.885708 0.885708 ! 0.885708 0.876184 0.86666 0.857136 0.857136 0.857137 0.842851 0.828565 ! 0.81428 0.799994 0.785708 0.76428 0.742852 0.728566 0.71428 0.671424 ! 0.599995 0.428568 0.40714 -0.328569 -0.428569 -0.428569 -0.471425 -0.471425 ! -0.471425 -0.442854 -0.442854 -0.399997 -0.385712 -0.371426 -0.335712 ! -0.299998 -0.257141 -0.242856 -0.22857 -0.157142 -0.114285 -0.0857139 ! -0.0857139 -0.042857 -0.042857 0.028571 0.0571425 0.0571425 0.0999993 ! 0.128571 0.128571 0.128571; #X coords 0 1 99 -1 200 140 1; #X restore 421 305 graph; --- 5,39 ---- #N canvas 0 0 450 300 graph1 0; #X array array1 100 float 3; ! #A 0 0 0 0 0 0 0 0 0 0 0 0.00285713 0.00471427 0.00514284 0.00557141 ! 0.00599998 0.00642855 0.00228571 0.00242857 0.00257143 -0.00542855 ! -0.0114285 -0.0209999 -0.0377142 -0.0427142 -0.0479998 -0.067857 -0.0891426 ! -0.104143 -0.108 -0.111857 -0.115714 -0.119571 -0.123428 -0.127285 ! -0.131142 -0.125 -0.128571 -0.132143 -0.127571 -0.122571 -0.12 -0.117142 ! -0.114 -0.110571 -0.106857 -0.102857 -0.0985711 -0.0872856 -0.0754282 ! -0.0629998 -0.0499999 -0.0437141 -0.0371427 -0.0227142 -0.00771428 ! 0.00785714 0.0239999 0.0298571 0.0359047 0.0421427 0.068571 0.0915 ! 0.132857 0.161999 0.146285 0.134642 0.122571 0.105285 0.0582855 0.00985713 ! 0.00999999 0.0101428 -0.0411427 -0.0417142 -0.0739998 -0.0749998 -0.0759998 ! -0.132 -0.133714 -0.12533 -0.113684 -0.101707 -0.089398 -0.0767592 ! -0.0637893 -0.0504886 -0.036857 -0.0152967 0.0067692 0.0293405 0.0524174 ! 0.0759997 0.100088 0.12468 0.14978 0.175384 0.201493 0.228109 0.25523 ! 0.325284; #X coords 0 1 99 -1 200 140 1; #X restore 421 156 graph; #N canvas 0 0 450 300 graph2 0; #X array array2 100 float 3; ! #A 0 0 0 0 0 0 0 0.0285712 0.0428568 0.0571424 0.12857 0.171427 0.185712 ! 0.199998 0.242854 0.342853 0.342853 0.364281 0.41428 0.41428 0.357138 ! 0.314282 0.278568 0.314282 0.328567 0.342853 0.378567 0.41428 0.457137 ! 0.49285 0.528564 0.54285 0.557135 0.599992 0.614277 0.671419 0.671419 ! 0.599992 0.614276 0.59999 0.585705 0.571419 0.499991 0.482135 0.464278 ! 0.446421 0.428564 0.408564 0.388565 0.368565 0.348565 0.328566 0.305709 ! 0.282852 0.259995 0.237138 0.214282 0.194282 0.174282 0.154282 0.134283 ! 0.114283 0.0914263 0.0685695 0.0457127 0.0228559 8.84384e-007 0.0142864 ! 0.0285719 0.0428574 0.0571429 0.0714284 0.096428 0.121428 0.146427 ! 0.171427 0.181631 0.191835 0.202039 0.212243 0.222446 0.23265 0.242854 ! 0.25714 0.271425 0.285711 0.299996 0.314282 0.33571 0.357138 0.385709 ! 0.407138 0.428566 0.457137 0.457137 0.12857 0.514279 0.557135 0.604754 ! 0.652372 0.814274; #X coords 0 1 99 -1 200 140 1; #X restore 421 305 graph; *************** *** 42,47 **** #X restore 65 301 graph; #X obj 36 199 py buffer @detach 1; ! #X msg 123 127 mul array3 array1 array2; ! #X msg 123 149 add array3 array1 array2; #X obj 16 13 cnv 15 650 40 empty empty py/pyext 10 22 0 24 -260818 -1 0; --- 43,48 ---- #X restore 65 301 graph; #X obj 36 199 py buffer @detach 1; ! #X msg 192 127 mul array3 array1 array2; ! #X msg 192 149 add array3 array1 array2; #X obj 16 13 cnv 15 650 40 empty empty py/pyext 10 22 0 24 -260818 -1 0; *************** *** 50,53 **** --- 51,56 ---- #X text 17 67 This demonstrates the usage of buffers. See the buffer.py script.; + #X msg 193 176 fadein array1; + #X msg 191 200 neg array2; #X connect 2 0 6 0; #X connect 6 0 0 0; *************** *** 55,56 **** --- 58,61 ---- #X connect 7 0 6 1; #X connect 8 0 6 1; + #X connect 13 0 6 1; + #X connect 14 0 6 1;