buffer~ stereo

dave walker's icon

hey guys,

im trying to granulate a number of files but having problems doing it in stereo...i think this is due to problems with the buffer not buffering in stereo. i am using one buffer but changing what is read (therefore the length of buffer is always changing).

when i use the buffer~ object i want to put in say (buffer~ hello xlength 2) where x is the length of the file it's reading...how do i do this so x is a variable and can change with every file?

cheers,
dave
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/ 01/

nathan wolek's icon

On Apr 12, 2006, at 8:33 AM, dave walker wrote:
> how do i do this so x is a variable and can change with every file?

Check out the 'replace' message.
Is this what you mean?

-----
Nathan Wolek
nw@nathanwolek.com
http://www.nathanwolek.com

dave walker's icon

cheers,

i don't think it's actually that though.

basically i want to have one buffer that plays stereo files. without having to put the buffer length argument in the buffer.

since the argument for the number of channels (stereo=2) comes after the argument for buffer length (which i don't want to specify due to the buffer reading different audio files of different lengths) i can't figure it out.

hope anyone can help?!!

cheers,
dave

Léopold Frey's icon

CHECK out the 'replace' message !
You won't have to manage neither the number of channels nor the length
of the buffer.

Léo

Kasper's icon

- in the help file it seems to be an answer : which is -1

hope it works

kasper
--
Kasper T. Toeplitz
noise, composition, bass, computer
http://www.sleazeArt.com

Falk's icon

take the replace message and the buffer will resize

Falk

dave walker's icon

nice one lads!

sorry about that!

just got it sorted...you've saved my bacon. i've been slaving away for hours on other max stuff and i think my brain temporarily turned to mash!

...too many sub-patches!

dave