Frank Barknecht wrote:
Hallo, patrick hat gesagt: // patrick wrote:
I think, the problem more is how to load so many samples clickfree into memory. As samples loaded into an array get blown up in size, for 300 2MB samples you already need a lot of memory. It probably will be better to load only the samples to play currently and next into memory, and reuse the tables that store the samples to save memory.
If the samples only need to be played, [readsf~] would be the easiest, almost trivial solution to this. If you need [table]-based processing things will be quite a bit trickier, as soundfiler in standard Pd can lead to dropouts. pd-devel can be one way out, using [readsf~] to write into a [table] faster than realtime could be another way (by upsampling using [block~]).
i guess the simplest thing would be to use [readsf~] for playback of the samples from a ramdisk: this way the samples will still be kept at 16bit (or whatever you choose) and thus take little memory and the access to the ramdisk will be lightning fast.
mfg.asdr. IOhannes