So [readsf~] in pd 0.37/MacOS X makes clicks when looping. It works
fine on Windows (I didn't test Linux). If I add a 5ms delay between
the [open( and the start [bang(, then the clicking is reduced a lot,
but it still clicks quite a bit. Even at 100 ms I still got occasional
clicks.
I attached a test patch. Anyone know how to deal with this? This
seems to be a bug in [readsf~]. [sfread~] won't really work for me
because it doesn't handle endianness, AFAIK, so I can't play .wavs on
my Mac.
.hc
#N canvas 275 129 404 294 10;
#X obj 194 257 dac~;
#X obj 194 228 *~;
#X obj 194 196 readsf~;
#X msg 197 171 1;
#X obj 197 67 t b b;
#X obj 197 48 bng 15 250 50 0 empty empty empty 0 -6 0 8 -4033 -1 -1
;
#X obj 56 117 symbol;
#X obj 40 75 openpanel;
#X msg 56 137 open \$1;
#X obj 35 50 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 22 31 open a soundfile first;
#X text 199 27 then start it looping;
#X msg 239 168 0;
#X obj 264 131 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258049 -1
-1;
#X obj 195 119 del 100;
#X text 94 276 it clicks at the start of each loop;
#X connect 1 0 0 0;
#X connect 1 0 0 1;
#X connect 2 0 1 0;
#X connect 2 1 4 0;
#X connect 3 0 2 0;
#X connect 4 0 14 0;
#X connect 4 1 6 0;
#X connect 5 0 4 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 2 0;
#X connect 9 0 7 0;
#X connect 12 0 2 0;
#X connect 13 0 12 0;
#X connect 14 0 3 0;
________________________________________________________________________
____
There is no way to peace, peace is the way.
-A.J. Muste