#N canvas 0 22 1118 625 10; #X obj 51 263 soundfiler; #X obj 51 104 openpanel; #X floatatom 51 366 9 0 0 0 - - -; #X obj 51 422 /; #X floatatom 51 450 5 0 0 0 - - -; #X obj 126 367 samplerate~; #X obj 126 367 samplerate~; #X obj 51 314 t f b; #N canvas 0 22 450 300 (subpatch) 0; #X array sound1 131263 float 2; #X coords 0 1 131263 -1 200 140 1; #X restore 655 316 graph; #X msg 51 165 read -resize \$1 sound1; #X obj 655 107 tabplay~ sound1; #X obj 655 173 output~; #X obj 655 63 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 677 62 play sound file from array; #X obj 51 63 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 73 62 click to load sound file; #X text 121 264 loads sound samples into an array; #X text 85 424 samples/samplerate = duration in seconds; #X text 99 314 trigger bangs samplerate~ first \, then send the number of samples (f); #X text 209 163 the -resize flag resizes the array to fit the sound file (90 seconds max); #X text 864 378 see the sound loaded into the array; #X text 52 -11 (A) - loading a sound file into an array; #X text 656 -11 (B) - playing back a sound file from an array; #X obj -3 182 print; #X connect 0 0 7 0; #X connect 1 0 9 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 5 0 3 1; #X connect 7 0 2 0; #X connect 7 1 5 0; #X connect 9 0 0 0; #X connect 9 0 23 0; #X connect 10 0 11 0; #X connect 10 0 11 1; #X connect 12 0 10 0; #X connect 14 0 1 0;