[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] soundfiles



You could do this pretty easily with an Array of Buffers and .do.

S.

On Tuesday, December 30, 2003, at 03:25  PM, Mike Whyte wrote:

in thinking about live sets, i believe there is
the need for a buffer management class.
my reasoning is that keeping track of all the different
busses might be limiting when choosing 'tracks/ patches' to play next
to one another. (i.e. fade in, fade out, - move to the next song in the set)
If song #1 has samples from 0-32, and song #3 has samples 20-50 then
the second set would not work because the first set (not yet freed because it's not
done playing) still holds the buffers.

z=SounfFileBank.new;
z.load(["one file","two file","three file","four file"])

PlayBuf(1, z.at(1), freq); //to tell it which sample in the bank to play;

then at the end of the track - to free the buffers up:

z.freeAll  //or whatever.....

Is there a class that already does this that I can use with PlayBuf ?

thanks-
-mike

_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users