Forums > MaxMSP

buffer~ arguments don't seem to give me stereo

Apr 02 2009 | 5:26 pm

In this patch, I don’t seem to get stereo when it loads, but it does when I hit "replace" and re-select my loop. The help file, "arguments are buffer name, optional filename to read or optional initial length in milliseconds, and optional number of channels (1, 2, or 4)," makes me think I’m writing it correctly…

[buffer~ pianoharm D_harmonics_184bpmloop.wav 2] should give me 2 channels, right? Just trying to save myself an extra step upon loading.

— Pasted Max Patch, click to expand. —
Apr 02 2009 | 6:14 pm

The first integer argument sets the size, if you include a seconde int argument immediately after, that will set the amount of channels.


Apr 02 2009 | 7:30 pm

and if you want to take the file sze, put -1 as a length


Apr 02 2009 | 10:26 pm

Thanks, I just read "file name to read OR file length in ms" to mean that if it saw a string it would do the original file length, whereas an int/float would be a blank buffer. Works now.


Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP