aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/tutorial')
-rw-r--r--externals/grill/flext/tutorial/config-pd-linux.txt4
-rw-r--r--externals/grill/flext/tutorial/makefile.pd-darwin4
-rw-r--r--externals/grill/flext/tutorial/makefile.pd-linux4
-rw-r--r--externals/grill/flext/tutorial/pd/ex-adv1.pd46
-rw-r--r--externals/grill/flext/tutorial/pd/ex-adv2.pd6
-rw-r--r--externals/grill/flext/tutorial/pd/ex-bind1.pd110
-rw-r--r--externals/grill/flext/tutorial/pd/ex-buffer1.pd198
7 files changed, 208 insertions, 164 deletions
diff --git a/externals/grill/flext/tutorial/config-pd-linux.txt b/externals/grill/flext/tutorial/config-pd-linux.txt
index bd16411a..0f4bd065 100644
--- a/externals/grill/flext/tutorial/config-pd-linux.txt
+++ b/externals/grill/flext/tutorial/config-pd-linux.txt
@@ -33,5 +33,5 @@ INSTPATH=${FLEXTPATH}/tutorial
# additional compiler flags
# (check if they fit to your system!)
-UFLAGS=-mcpu=pentiumpro # gcc 2.95
-#UFLAGS=-mcpu=pentium3 -msse # gcc 3.2
+#UFLAGS=-mcpu=pentiumpro # gcc 2.95
+UFLAGS=-mcpu=pentium3 -msse # gcc 3.2
diff --git a/externals/grill/flext/tutorial/makefile.pd-darwin b/externals/grill/flext/tutorial/makefile.pd-darwin
index 5241f11b..02a4edef 100644
--- a/externals/grill/flext/tutorial/makefile.pd-darwin
+++ b/externals/grill/flext/tutorial/makefile.pd-darwin
@@ -18,14 +18,14 @@ LIBPATH=
FLAGS=-DFLEXT_SYS=2 -DFLEXT_THREADS -Wno-unused -Wno-parentheses -Wno-switch -Wstrict-prototypes -Wno-long-double
CFLAGS=${UFLAGS} -O2 -fno-rtti
LIBS=m
-LDFLAGS=-framework vecLib -bundle -bundle_loader $(PD)
+LDFLAGS=-framework vecLib -framework Carbon -bundle -bundle_loader $(PD)
# the rest can stay untouched
# ----------------------------------------------
# all the source files from the package
-EXAMPLES=simple1 simple2 simple3 timer1 adv1 adv2 adv3 attr1 attr2 attr3 signal1~ signal2~ lib1 thread1 thread2
+EXAMPLES=simple1 simple2 simple3 timer1 adv1 adv2 adv3 attr1 attr2 attr3 signal1~ signal2~ lib1 thread1 thread2 bind1 buffer1
ifdef SNDOBJ
INCLUDES+=$(SNDOBJ)
diff --git a/externals/grill/flext/tutorial/makefile.pd-linux b/externals/grill/flext/tutorial/makefile.pd-linux
index b370e59d..9b57c5c3 100644
--- a/externals/grill/flext/tutorial/makefile.pd-linux
+++ b/externals/grill/flext/tutorial/makefile.pd-linux
@@ -16,7 +16,7 @@ FLEXTLIB=$(FLEXTPATH)/flext_t.a # take threaded library for all
INCLUDES=$(PDPATH)/src
LIBPATH=
FLAGS=-DFLEXT_SYS=2 -DFLEXT_THREADS
-CFLAGS=${UFLAGS} -O6 -fno-rtti
+CFLAGS=${UFLAGS} -O2 -fno-rtti
LIBS=m
@@ -25,7 +25,7 @@ LIBS=m
# all the source files from the package
-EXAMPLES=simple1 simple2 simple3 adv1 adv2 adv3 timer1 attr1 attr2 attr3 signal1~ signal2~ lib1 thread1 thread2
+EXAMPLES=simple1 simple2 simple3 adv1 adv2 adv3 timer1 attr1 attr2 attr3 signal1~ signal2~ lib1 thread1 thread2 bind1 buffer1
ifdef SNDOBJ
INCLUDES+=$(SNDOBJ)
diff --git a/externals/grill/flext/tutorial/pd/ex-adv1.pd b/externals/grill/flext/tutorial/pd/ex-adv1.pd
index ea5337f7..ea55012c 100644
--- a/externals/grill/flext/tutorial/pd/ex-adv1.pd
+++ b/externals/grill/flext/tutorial/pd/ex-adv1.pd
@@ -1,23 +1,23 @@
-#N canvas 46 58 588 343 12;
-#X msg 34 92 or two words;
-#X msg 169 93 2 3;
-#X msg 48 291 one 20;
-#X obj 72 213 print result;
-#X obj 49 172 adv1 one;
-#X obj 48 263 prepend set;
-#X text 162 257 you can also use "prepend";
-#X obj 16 8 cnv 15 550 40 empty empty adv1 10 22 0 24 -260818 -1 0
-;
-#X text 175 27 http://www.parasitaere-kapazitaeten.net;
-#X text 199 214 watch the console!;
-#X text 210 110 send the object various messages;
-#X text 160 274 (if adv1 has already been loaded);
-#X text 175 9 flext tutorial \, (C)2002 \, 2003 Thomas Grill;
-#X obj 66 127 nbx 3 18 0 100 0 0 empty empty empty 0 -6 0 14 -262144
--1 -1 20 256;
-#X connect 0 0 4 0;
-#X connect 1 0 4 0;
-#X connect 4 0 3 0;
-#X connect 4 0 5 0;
-#X connect 5 0 2 0;
-#X connect 13 0 4 0;
+#N canvas 46 58 592 347 12;
+#X msg 34 92 or two words;
+#X msg 169 93 2 3;
+#X msg 48 291 one or two words;
+#X obj 72 213 print result;
+#X obj 49 172 adv1 one;
+#X obj 48 263 prepend set;
+#X text 162 257 you can also use "prepend";
+#X obj 16 8 cnv 15 550 40 empty empty adv1 10 22 0 24 -260818 -1 0
+;
+#X text 175 28 http://www.parasitaere-kapazitaeten.net;
+#X text 199 214 watch the console!;
+#X text 210 110 send the object various messages;
+#X text 160 274 (if adv1 has already been loaded);
+#X text 145 10 flext tutorial \, (C)2002 \, 2003 Thomas Grill;
+#X obj 66 127 nbx 3 18 0 100 0 0 empty empty empty 0 -6 0 14 -262144
+-1 -1 24 256;
+#X connect 0 0 4 0;
+#X connect 1 0 4 0;
+#X connect 4 0 3 0;
+#X connect 4 0 5 0;
+#X connect 5 0 2 0;
+#X connect 13 0 4 0;
diff --git a/externals/grill/flext/tutorial/pd/ex-adv2.pd b/externals/grill/flext/tutorial/pd/ex-adv2.pd
index 851c1a88..32dd0272 100644
--- a/externals/grill/flext/tutorial/pd/ex-adv2.pd
+++ b/externals/grill/flext/tutorial/pd/ex-adv2.pd
@@ -1,4 +1,4 @@
-#N canvas 329 97 587 348 12;
+#N canvas 329 97 591 352 12;
#X msg 26 97 help;
#X msg 123 146 born;
#X msg 172 147 to;
@@ -11,10 +11,10 @@
#X text 72 97 print a help message;
#X obj 16 7 cnv 15 550 40 empty empty adv2 10 22 0 24 -260818 -1 0
;
-#X text 174 28 http://www.parasitaere-kapazitaeten.net;
+#X text 146 27 http://www.parasitaere-kapazitaeten.net;
#X obj 148 293 adv2;
#X text 21 49 this is identical to the simple3 example;
-#X text 174 8 flext tutorial \, (C)2002 \, 2003 Thomas Grill;
+#X text 145 9 flext tutorial \, (C)2002 \, 2003 Thomas Grill;
#X connect 0 0 12 0;
#X connect 1 0 12 0;
#X connect 2 0 12 0;
diff --git a/externals/grill/flext/tutorial/pd/ex-bind1.pd b/externals/grill/flext/tutorial/pd/ex-bind1.pd
index 14ee67dd..1aa00f9b 100644
--- a/externals/grill/flext/tutorial/pd/ex-bind1.pd
+++ b/externals/grill/flext/tutorial/pd/ex-bind1.pd
@@ -1,55 +1,55 @@
-#N canvas 405 36 588 396 12;
-#X obj 15 8 cnv 15 550 40 empty empty bind1 10 22 0 24 -260818 -1 0
-;
-#X text 175 28 http://www.parasitaere-kapazitaeten.net;
-#X text 175 8 flext tutorial \, (C)2003 Thomas Grill;
-#X obj 14 330 bind1;
-#X text 48 72 bind object to symbol;
-#X msg 50 94 bind sym1;
-#X msg 154 94 bind sym2;
-#X msg 48 126 unbind sym1;
-#X msg 153 125 unbind sym2;
-#X text 43 159 bind object to symbol;
-#X msg 45 181 bindmethod sym1;
-#X msg 47 213 unbindmethod sym1;
-#X msg 194 183 bindmethod sym2;
-#X msg 197 214 unbindmethod sym2;
-#X obj 13 359 print OUT;
-#X text 95 361 watch the console!;
-#X obj 351 103 nbx 5 14 -1e+037 1e+037 0 0 empty empty empty 0 -6 0
-10 -262131 -1 -1 0 256;
-#X obj 446 103 nbx 5 14 -1e+037 1e+037 0 0 empty empty empty 0 -6 0
-10 -262131 -1 -1 0 256;
-#X msg 351 122 test \$1;
-#X msg 446 122 test \$1;
-#X msg 521 100 1 2 3;
-#X obj 351 155 s sym1;
-#X obj 446 155 s sym2;
-#X text 349 67 send message to bound;
-#X text 350 81 object or method;
-#X obj 345 272 r sym3;
-#X text 344 250 receive forwarded message;
-#X obj 347 299 print MSG;
-#X text 47 258 receive forwarded message;
-#X msg 48 279 sym3 myforward;
-#X obj 191 280 nbx 5 14 -1e+037 1e+037 0 0 empty empty empty 0 -6 0
-10 -262131 -1 -1 0 256;
-#X msg 190 297 sym3 \$1;
-#X connect 3 0 14 0;
-#X connect 5 0 3 0;
-#X connect 6 0 3 0;
-#X connect 7 0 3 0;
-#X connect 8 0 3 0;
-#X connect 10 0 3 0;
-#X connect 11 0 3 0;
-#X connect 12 0 3 0;
-#X connect 13 0 3 0;
-#X connect 16 0 18 0;
-#X connect 17 0 19 0;
-#X connect 18 0 21 0;
-#X connect 19 0 22 0;
-#X connect 20 0 22 0;
-#X connect 25 0 27 0;
-#X connect 29 0 3 1;
-#X connect 30 0 31 0;
-#X connect 31 0 3 1;
+#N canvas 405 36 626 400 12;
+#X obj 15 8 cnv 15 550 40 empty empty bind1 10 22 0 24 -260818 -1 0
+;
+#X text 175 28 http://www.parasitaere-kapazitaeten.net;
+#X text 175 8 flext tutorial \, (C)2003 Thomas Grill;
+#X obj 14 330 bind1;
+#X text 48 72 bind object to symbol;
+#X msg 50 94 bind sym1;
+#X msg 174 94 bind sym2;
+#X msg 48 126 unbind sym1;
+#X msg 173 125 unbind sym2;
+#X text 43 159 bind object to symbol;
+#X msg 45 181 bindmethod sym1;
+#X msg 47 213 unbindmethod sym1;
+#X msg 227 181 bindmethod sym2;
+#X msg 230 212 unbindmethod sym2;
+#X obj 13 359 print OUT;
+#X text 109 358 watch the console!;
+#X obj 351 103 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
+-262131 -1 -1 0 256;
+#X obj 446 103 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
+-262131 -1 -1 0 256;
+#X msg 351 122 test \$1;
+#X msg 446 122 test \$1;
+#X msg 521 100 1 2 3;
+#X obj 351 155 s sym1;
+#X obj 446 155 s sym2;
+#X text 349 67 send message to bound;
+#X text 350 81 object or method;
+#X obj 345 272 r sym3;
+#X text 344 250 receive forwarded message;
+#X obj 347 299 print MSG;
+#X text 47 258 receive forwarded message;
+#X msg 48 279 sym3 myforward;
+#X obj 202 280 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
+-262131 -1 -1 0 256;
+#X msg 201 297 sym3 \$1;
+#X connect 3 0 14 0;
+#X connect 5 0 3 0;
+#X connect 6 0 3 0;
+#X connect 7 0 3 0;
+#X connect 8 0 3 0;
+#X connect 10 0 3 0;
+#X connect 11 0 3 0;
+#X connect 12 0 3 0;
+#X connect 13 0 3 0;
+#X connect 16 0 18 0;
+#X connect 17 0 19 0;
+#X connect 18 0 21 0;
+#X connect 19 0 22 0;
+#X connect 20 0 22 0;
+#X connect 25 0 27 0;
+#X connect 29 0 3 1;
+#X connect 30 0 31 0;
+#X connect 31 0 3 1;
diff --git a/externals/grill/flext/tutorial/pd/ex-buffer1.pd b/externals/grill/flext/tutorial/pd/ex-buffer1.pd
index a1b308fb..dd0bf3e4 100644
--- a/externals/grill/flext/tutorial/pd/ex-buffer1.pd
+++ b/externals/grill/flext/tutorial/pd/ex-buffer1.pd
@@ -1,77 +1,121 @@
-#N canvas 94 140 759 485 12;
-#X obj 15 8 cnv 15 550 40 empty empty buffer1 10 22 0 24 -260818 -1
-0;
-#X text 182 28 http://www.parasitaere-kapazitaeten.net;
-#X text 182 8 flext tutorial \, (C)2003 Thomas Grill;
-#N canvas 0 0 450 300 graph1 0;
-#X array buf1 100 float 1;
-#A 0 0 0 0.17 0.0728567 0.244286 1.06 0.358572 0.394287 1.06 0.358572
-1.06 0.387144 0.387144 1.06 0.387144 1.06 0.387144 1.06 1.06 0.387144
-1.06 0.387144 0.387144 1.06 0.387144 1.06 0.372858 1.06 1.06 0.344286
-1.06 0.330001 0.330001 1.06 0.330001 1.06 0.287143 0.69 1.06 0.268096
-1.06 0.258572 1.06 1.06 0.172857 1.06 0.144286 1.06 0.69 0.0585709
-1.06 0.0442851 1.06 0.69 -0.120001 1.06 0 1.06 0.69 0 1.06 0 1.06 0.69
-0 0.69 0 1.06 0.69 0 1.06 0 1.06 0.69 0 0.69 0 0.17 0.69 0 0.69 0 0.17
-0.69 0 0.69 0 0.17 0.69 0 0.69 0 0.17 0.69 0 0.69 0 0.17 0.69 0;
-#X coords 0 1 99 -1 200 140 1;
-#X restore 543 69 graph;
-#N canvas 0 0 450 300 graph1 0;
-#X array buf2 300 float 1;
-#A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
-#X coords 0 1 299 -1 200 140 1;
-#X restore 543 214 graph;
-#X obj 28 385;
-#X obj 28 426 nbx 5 14 -1e+037 1e+037 0 0 empty empty empty 0 -6 0
-10 -262131 -1 -1 0 256;
-#X text 23 443 peek value;
-#X obj 127 421 print A;
-#X text 127 442 print attributes to the console;
-#X msg 45 66 set;
-#X msg 69 118 set buf1;
-#X msg 149 118 buffer buf2;
-#X msg 69 149 getbuffer;
-#X text 154 149 query current buffer;
-#X text 77 63 set no buffer;
-#X text 72 98 set buffer;
-#X msg 88 205 frames 1000;
-#X msg 89 233 getframes;
-#X text 187 205 set buffer length;
-#X text 172 233 query buffer length;
-#X msg 20 285 getchannels;
-#X text 27 310 always 1 for PD!;
-#X obj 235 301 nbx 5 14 -1e+037 1e+037 0 0 empty empty empty 0 -6 0
-10 -262131 -1 -1 0 256;
-#X obj 340 301 nbx 5 14 -1e+037 1e+037 0 0 empty empty empty 0 -6 0
-10 -262131 -1 -1 72 256;
-#X obj 398 301 nbx 5 14 -1e+037 1e+037 0 0 empty empty empty 0 -6 0
-10 -262131 -1 -1 1.06 256;
-#X obj 338 324 pack 0 0;
-#X msg 339 351 poke \$1 \$2 0;
-#X msg 234 351 peek \$1 0;
-#X text 234 278 get sample;
-#X text 342 278 set sample;
-#X text 352 383 the change is not immediately seen on PD;
-#X text 354 396 (you'll have to draw in the window);
-#X connect 5 0 6 0;
-#X connect 5 1 8 0;
-#X connect 10 0 5 0;
-#X connect 11 0 5 0;
-#X connect 12 0 5 0;
-#X connect 13 0 5 0;
-#X connect 17 0 5 0;
-#X connect 18 0 5 0;
-#X connect 21 0 5 0;
-#X connect 23 0 28 0;
-#X connect 24 0 26 0;
-#X connect 25 0 26 1;
-#X connect 26 0 27 0;
-#X connect 27 0 5 0;
-#X connect 28 0 5 0;
+#N canvas 94 140 763 489 12;
+#X obj 11 -12 cnv 15 550 40 empty empty buffer1 10 22 0 24 -260818
+-1 0;
+#X text 178 8 http://www.parasitaere-kapazitaeten.net;
+#X text 178 -12 flext tutorial \, (C)2003 Thomas Grill;
+#N canvas 0 22 450 300 graph1 0;
+#X array buf1 1000 float 1;
+#A 0 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856
+-0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856
+-0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856
+-0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856
+-0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856
+-0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856
+-0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856 -0.0142856
+-0.0142856 -0.0142856 -0.0114285 -0.00857134 -0.00571423 -0.00285711
+5.58794e-10 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0
+-0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0
+-0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0
+-0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0
+-0 -0 0.51 0.51 0 0 0 0 0 0 0 0 0 0 0 0 0 0.51 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 -0 -0 0.51 0.51 -5.58794e-10 0.00285711 0.00571423 0.00857134
+0.0114285 0.0142856 0.0166665 0.0190474 0.0214283 0.0238093 0.0261902
+0.0285711 0.030952 0.033333 0.0357139 0.51 0.0404758 0.51 0.0452376
+0.0476185 0.0499995 0.0523804 0.0547613 0.0571422 0.0595232 0.0619041
+0.064285 0.0666659 0.0690469 0.51 0.0738087 0.0761897 0.0785706 0.0809515
+0.0833325 0.0857134 0.0857134 0.0857134 0.0857134 0.0857134 0.0857134
+0.51 0.0799992 0.51 0.0742849 0.0571423 0 0 0 0 0.51 0 0 0 0 0 0 0
+0 0 0.51 0 0 0 0 0 0.51 0 0 0 0 0 0.51 0 0.51 0 0 0.51 0 0 0.51 0 0.51
+0 0.51 0.51 0 0.51 0.51 0 0 0 0 0 0.51 0 0 0 0 0 0.51 0 0 0.51 0 0
+0 0 0 0.51 0 0 0 0 0 0 0 0.51 0 0 0 0 0 0 0 0.51 0 0 0 0 0.51 0 0 0
+0 0 0 0.51 0 0 0 0 0 0 0 0 0 0 0.51 0 0 0 0 0 0 0 0 0.51 0.51 0 0 0.51
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0 0.00357139 0.00714278 0.0107142
+0.0142856 0.0171427 0.0199998 0.0228569 0.025714 0.0285711 0.0314283
+0.0342854 0.0371425 0.0399996 0.0428567 0.0457138 0.0485709 0.051428
+0.0542852 0.0571423 0.0599994 0.0628565 0.0657136 0.0685707 0.0714278
+0.0728564 0.0742849 0.0757135 0.077142 0.0785706 0.0799991 0.0814277
+0.0828563 0.0842848 0.0857134 0.0857134 0.0857134 0.0857134 0.0857134
+0.0857134 0.0857134 0.0857134 0.0857134 0.0857134 0.0857134 0.0857134
+0.0857134 0.0857134 0.0857134 0.0857134 0.0828563 0.0799992 0.077142
+0.0742849 0.0714278 0.0714278 0.0714278 0.0714278 0.0714278 0.0714278
+0.0714278 0.0714278 0.0714278 0.0714278 0.0714278 0.0685707 0.0657136
+0.0628565 0.0599994 0.0571423 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0;
+#X coords 0 1 999 -1 200 140 1;
+#X restore 539 49 graph;
+#N canvas 0 22 450 300 graph1 0;
+#X array buf2 300 float 1;
+#A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
+#X coords 0 1 299 -1 200 140 1;
+#X restore 539 194 graph;
+#X obj 24 406 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
+-262131 -1 -1 1.06 256;
+#X text 19 423 peek value;
+#X obj 137 400 print A;
+#X text 137 421 print attributes to the console;
+#X msg 41 46 set;
+#X msg 65 98 set buf1;
+#X msg 154 98 buffer buf2;
+#X msg 65 129 getbuffer;
+#X text 164 129 query current buffer;
+#X text 73 43 set no buffer;
+#X text 68 78 set buffer;
+#X msg 84 185 frames 1000;
+#X msg 85 213 getframes;
+#X text 199 185 set buffer length;
+#X text 184 213 query buffer length;
+#X msg 16 265 getchannels;
+#X text 23 290 always 1 for PD!;
+#X obj 231 281 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
+-262131 -1 -1 13 256;
+#X obj 336 281 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
+-262131 -1 -1 91 256;
+#X obj 394 281 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
+-262131 -1 -1 0.51 256;
+#X obj 334 304 pack 0 0;
+#X msg 335 331 poke \$1 \$2 0;
+#X msg 230 331 peek \$1 0;
+#X text 230 258 get sample;
+#X text 338 258 set sample;
+#X text 348 363 the change is not immediately seen on PD;
+#X text 350 376 (you'll have to draw in the window);
+#X obj 24 368 buffer1;
+#X connect 9 0 32 0;
+#X connect 10 0 32 0;
+#X connect 11 0 32 0;
+#X connect 12 0 32 0;
+#X connect 16 0 32 0;
+#X connect 17 0 32 0;
+#X connect 20 0 32 0;
+#X connect 22 0 27 0;
+#X connect 23 0 25 0;
+#X connect 24 0 25 1;
+#X connect 25 0 26 0;
+#X connect 26 0 32 0;
+#X connect 27 0 32 0;
+#X connect 32 0 5 0;
+#X connect 32 1 7 0;