hi,
Using this read-file abstraction i made basic sample player.
It's available from here. http://www.sfc.keio.ac.jp/~t99685yn/pd/U-basic-player.zip
And also, i made granular synthesys abstraction, but it is huge and NOT documented yet. If anyone interests and have a guts to analayze it, please mail to me.
Thanks.
Uta.
jfm3 jfm3@mortmain.com wrote:
I too am trying to write a generic sampler object, and I too am having the "local arrays" problem. I tried Uta's solution from May:
#N canvas 230 467 439 289 10; #X obj 17 40 openpanel; #X obj 17 155 soundfiler; #X floatatom 16 186; #X msg 17 13 bang; #X text 59 12 read file; #X obj 143 5 inlet; #X obj 19 66 t s b; #X obj 18 99 pack s s; #X obj 77 78 symbol $1-table; #X obj -85 95 s $1-filename; #X obj 17 209 s $1-siz; #X obj 198 120 table $1-tableL; #X obj 198 146 table $1-tableR; #X msg 17 126 read -resize $1 $2L $2R; #X obj 17 -13 r $1-open; #X obj 121 41 r $1-read; #X obj -44 158 outlet; #X connect 0 0 6 0; #X connect 0 0 9 0; #X connect 0 0 16 0; #X connect 1 0 2 0; #X connect 2 0 10 0; #X connect 3 0 0 0; #X connect 5 0 0 0; #X connect 6 0 7 0; #X connect 6 1 8 0; #X connect 7 0 13 0; #X connect 8 0 7 1; #X connect 13 0 1 0; #X connect 14 0 3 0; #X connect 15 0 6 0;
But this does not work. When I bang it, I get:
error: $1-tableL: no such table
Similarly, when I try to use |table $0-samp| and |read -resize sample.wav $0-samp< into |soundfiler|, I get errors on the name "0-samp".
I am using PD 33 on Linux. Am I missing a patch or something?
Thanks very much in advance.
(jfm3)