Doing the same thing with the audio pre-loaded into an array and [tabplay~] should work without clicks. You could also use [bang~] in the subpatch and set [switch~] to a higher block size so that Pd has more time to deal with the repeated open messages. But I'm curious why previous Pd versions didn't give you clicks using the 64 sample block size.
Oliver,
can't really comment on your error, but am wondering why you might want
to trigger each dsp block separately, especially opening the file from
hard disk for each dsp block over and over again?
best, P
* oliver <oliver@klingt.org> [2022-10-05 20:50]:
> Hi, dear list !
>
> I just stumbled upon something strange, probably a bug in PD 0.52. But i'm
> not sure so i thought i send you a test patch to verify ...
>
> Harddisk soundfile playback with a [readsf~] driven by [bang~] used to work
> fine up until PD 0.51. Since 0.52, using this method results in a heavily
> distorted mess (please see attached test patch)
>
> I verified this with different earlier PD versions on different computers,
> both windows and linux systems.
>
> (for the record:
> WIN 7 64 bit
> WIN 10
> UBUNTU JELLYFISH
> UBUNTU BIONIC
> DEBIAN BULLSEYE)
>
> It's definitely the version 0.52 where this method stopped working.
> Changing blocksize doesn't help either
>
> (though: the higher the blocksize, the longer the pauses between each
> soundsniplet. it's as if [bang~] would output it's bangs too slow ? ...)
>
> Can you please make a short test and confirm or falsify my observation ?
>
> Thanks for your help
>
> Best
>
> Oliver
>
>
> --
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
> /////////////// http://oliver.klingt.org ///////////////
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
>
> #N canvas 541 52 447 372 10;
> #X obj 60 329 dac~, f 5;
> #X obj 34 7 bang~;
> #X obj 34 179 f, f 8;
> #X obj 94 179 + 1;
> #X msg 79 157 0, f 2;
> #X obj 34 235 * 64;
> #X obj 34 157 spigot;
> #X obj 59 63 tgl 15 0 empty empty empty 17 7 0 10 #00f8fc #000000 #000000
> 0 1;
> #X text 96 86 2.) start playing using [bang~];
> #X obj 34 256 pack 0 s, f 17;
> #X obj 133 27 openpanel;
> #X obj 133 6 bng 15 250 50 0 empty empty empty 17 7 0 10 #00fc04 #000000
> #000000;
> #X symbolatom 133 48 0 0 0 0 - - - 0;
> #X obj 338 68 loadbang;
> #X msg 338 89 \; pd dsp 1;
> #X floatatom 53 207 10 0 0 0 - - - 0;
> #X msg 34 279 0 \, open \$2 \$1 \, 1;
> #X text 156 5 1.) select a soundfile from Harddrive;
> #X text 119 201 progress in dsp blocks, f 12;
> #X obj 79 135 sel 1 0;
> #X msg 102 157 0, f 2;
> #X obj 59 86 t f f;
> #N canvas 44 44 450 300 readsf_inside 0;
> #X obj 110 41 inlet;
> #X obj 268 40 inlet;
> #X obj 268 206 switch~;
> #X obj 110 73 readsf~ 2;
> #X obj 92 113 outlet~;
> #X obj 152 114 outlet~;
> #X connect 0 0 3 0;
> #X connect 1 0 2 0;
> #X connect 3 0 4 0;
> #X connect 3 1 5 0;
> #X restore 34 301 pd readsf_inside;
> #X msg 186 238 0 \, set 64 1 1 \, 1;
> #X msg 186 262 0 \, set 1024 1 1 \, 1;
> #X msg 186 285 0 \, set 4096 1 1 \, 1;
> #X text 311 261 different stutters, f 10;
> #X connect 1 0 6 0;
> #X connect 2 0 3 0;
> #X connect 2 0 5 0;
> #X connect 2 0 15 0;
> #X connect 3 0 2 1;
> #X connect 4 0 2 1;
> #X connect 5 0 9 0;
> #X connect 6 0 2 0;
> #X connect 7 0 21 0;
> #X connect 9 0 16 0;
> #X connect 10 0 12 0;
> #X connect 11 0 10 0;
> #X connect 12 0 9 1;
> #X connect 13 0 14 0;
> #X connect 13 0 23 0;
> #X connect 16 0 22 0;
> #X connect 19 0 4 0;
> #X connect 19 1 20 0;
> #X connect 20 0 22 0;
> #X connect 21 0 19 0;
> #X connect 21 1 6 1;
> #X connect 22 0 0 0;
> #X connect 22 1 0 1;
> #X connect 23 0 22 1;
> #X connect 24 0 22 1;
> #X connect 25 0 22 1;
> _______________________________________________
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
William Brent
“Great minds flock together”
Conflations: conversational idiom for the 21st century
www.conflations.com