[PD] loading samples in arrays

Frank Barknecht fbar at footils.org
Sat Jun 2 18:42:21 CEST 2007


Hallo,
Johannes Krause hat gesagt: // Johannes Krause wrote:

> Georg Holzmann schrieb:
> > Hallo Johannes!
> >
> >   
> >> i am using the tabplay~ object to play out of 48 arrays.
> >> it takes alot of time to load the samples in the arrays.
> >>     
> >
> > However, you can also try to stream it directly from the harddisk with 
> > [readsf~] - then you don't have to load them at all !
> >
> > LG
> > Georg
> >
> >   
> gruss georg,
> 
> i want to loop 4*4 samples at the same time. will readsf~ be good for that?

It depends: You can just reopen the files of course. remeber to first
send the "open ..." command before sending another 1 to resume
playing. If this will be smooth depends on your material, but maybe
you can mask the transition a bit, for example by using two readsf~ to
play the same file and start them slightly shifted (maybe prepare your
soundfiles accordingly).

Another possibility is for example illustrated in the class material
Tom Erbe just posted: It shows how you can load only part of a sample
into a table.  See:
http://music.ucsd.edu/~tre/172/w6a-soundfilerbuffering.pd
http://music.ucsd.edu/~tre/classblog.php

(Probably works best with a threaded soundfiler.)

And finally you can combine the partial soundfiler loading ("-skip
...") with readsf~ playing by loading e.g. the beginning of a sample
into a table and then switch over to playing the rest of the sample
from disk with readsf~. You can do this to smooth out possible
loop-point clicks as well by fading out readsf~ and switching over to
table-playing again. 

Lots of possibilities, some slightly hackish, but that's part of the
fun.

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




More information about the Pd-list mailing list