[PD] loading samples in arrays

Frank Barknecht fbar at footils.org
Tue Jun 12 12:55:24 CEST 2007


Hallo,
Frank Barknecht hat gesagt: // Frank Barknecht wrote:

> As you use tabplay~ and thus no change of speed, you can mask the
> loading time of [readsf~] by preloading the beginning of a sample into
> a table, play this with tabread4~, while readsf~ is still loading the
> file, and then switch over from tabread4~ to readsf~ after a certain
> time. See attached harddisk sample player for an implementation in
> mono. For 4-channel playback you need to modify this of course. Note
> that it assumes that your sample has a samplerate of 44.1 kHz and that
> Pd is running at 44.1 kHz as well, because readsf~ always plays with
> Pd's samplerate.

Small addition: Because of tabread4~'s interpolation it's probably
better to load some more samples into the table with soiundfiler, like
44103 instead of 44100.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-list mailing list