Dear list,
I'm working on a live-radio-station-patch. I want to be able to play prepared playlists via PD. In the end I choose for readanysf~ to play the sound files since it seemed most stable (right?) and handle enough different file formats like ogg. Now I need a mechanism to autoplay a file directly when the buffer is loaded. So I tried to do this with the "ready" value from readanysf~. Basically it now bangs when the file is loaded, but the message "Play" doesn’t seem to get through, file does not start playing..
The example below is with the open-dialog, but in my main patch it's more automated. Effect is the same though.. (reset onebang not automated here, need to bang before loading the file)
Is it a bug, or am i the bug :) Is there a different approach?
Thanks! Bart
#N canvas 287 56 493 316 10; #X obj -223 115 readanysf~ 2 32 256; #X obj -112 173 sel 1; #X obj -112 231 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj -222 185 dac~; #X msg -223 87 open $1; #X obj -223 65 openpanel; #X obj -223 43 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg -112 251 play; #X obj -112 202 onebang; #X obj 32 175 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 -262144 -1 -1 0 256; #X obj -112 137 route ready length cache float bang; #X obj -32 175 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 -262144 -1 -1 0 256; #X obj -73 173 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 119 121 vsl 15 50 0.01 1.3 1 0 empty empty empty 0 -8 0 8 -241291 -1 -1 4411 0; #X obj 56 35 loadbang; #X msg 69 66 ; pd dsp 1 ;; #X floatatom 130 175 5 0 0 0 - - -; #X msg 56 102 0.8; #X obj 119 194 s v; #X text 139 145 Volume; #X connect 0 0 3 0; #X connect 0 1 3 1; #X connect 0 2 10 0; #X connect 1 0 8 0; #X connect 2 0 7 0; #X connect 4 0 0 0; #X connect 5 0 4 0; #X connect 6 0 5 0; #X connect 7 0 0 0; #X connect 8 0 2 0; #X connect 10 0 1 0; #X connect 10 1 9 0; #X connect 10 3 11 0; #X connect 12 0 8 1; #X connect 13 0 16 0; #X connect 13 0 18 0; #X connect 14 0 17 0; #X connect 14 0 15 0; #X connect 17 0 13 0;