Hi
I am searching for a PD object (external/native) that can play samples from an array in both loop and "single shot" mode while being able to change playback speed.
So far I have been using a phasor~ (modified to create 1 or unlimited ramps) + tabread4~ but I am experiencing a very small click when the sound loops. The click is only noticable when the sample is a pure looping tone. The problem exists with both wav and aiff files so I don't thing it is a "header" problem.
I have attached the sampler (without modified phasor~) I have been using so far. It should run on any newer PD version.
Any ideas are welcome.
TIA
Soeren
#N canvas 317 18 863 708 10; #N canvas 0 0 450 300 graph1 0; #X array array1 176206 float 0; #X coords 0 1 176205 -1 200 150 1; #X restore 587 408 graph; #X obj 408 162 r totsamps; #X obj 408 237 /; #X obj 408 285 *~ 0; #X obj 408 261 phasor~ 0; #X msg 408 212 44100; #X obj 408 186 t b f; #X obj 447 285 r totsamps; #X text 278 273 sample loop for; #X text 280 285 test signal; #X obj 459 463 dac~; #X obj 568 156 r spd; #X obj 569 192 - 340; #X obj 569 220 / 340; #X obj 572 246 * -1; #X obj 570 274 * 44100; #X obj 408 333 tabread4~ array1; #X obj 55 191 soundfiler; #X obj 55 215 s totsamps1; #X msg 54 151 read -resize $1 array1 ; pd dsp 1; #X obj 52 116 openpanel; #X obj 53 70 bng 25 250 50 0 empty empty empty 20 8 0 8 -225280 -1 -1; #X text 189 400 Left right levels goes here; #X text 549 130 Sound speed comes with spd for doppler; #X text 30 42 Click to load a sound; #X obj 326 159 r totsamps1; #X obj 304 191 f; #X obj 304 219 s totsamps; #X obj 392 401 *~ 0.03; #X obj 456 404 *~ 0.03; #X obj 261 71 tgl 30 0 empty empty empty 0 -6 0 8 -258699 -1 -1 0 1 ; #X obj 262 132 moses 1; #X msg 292 158 bang; #X text 253 46 start & stop; #X connect 1 0 6 0; #X connect 2 0 4 0; #X connect 3 0 16 0; #X connect 4 0 3 0; #X connect 5 0 2 0; #X connect 6 0 5 0; #X connect 6 1 2 1; #X connect 7 0 3 1; #X connect 11 0 12 0; #X connect 12 0 13 0; #X connect 13 0 14 0; #X connect 14 0 15 0; #X connect 15 0 2 0; #X connect 16 0 28 0; #X connect 16 0 29 0; #X connect 17 0 18 0; #X connect 19 0 17 0; #X connect 20 0 19 0; #X connect 21 0 20 0; #X connect 25 0 26 1; #X connect 26 0 27 0; #X connect 28 0 10 0; #X connect 29 0 10 1; #X connect 30 0 31 0; #X connect 31 0 27 0; #X connect 31 0 4 1; #X connect 31 1 32 0; #X connect 32 0 26 0;