Forums > MaxMSP

buffer~ 3rd arg for number of channels.. bug ?

October 18, 2010 | 9:25 am

buffer~ 3rd arg for number of channels.. bug ?

if I create a :
[buffer~ george drumloop.aif 1]
shouldn’t it load only 1 channel from the file drumloop.aif ?
it seems that it does load both channels…
Am I misunderstanding the doc :
"arguments are buffer name, optional filename to read or optional initial length in milliseconds, and optional number of channels (1, 2, or 4)."

..and the weird thing :
if I create 2 instances of the same [buffer~ george drumloop.aif 1]
the first one seems to contain 2 channels, and the second one contains only 1 channel… (when double-clicking on them)
:-s

please open patch bellow

– Pasted Max Patch, click to expand. –

[Max 5.1.5 (43290) / macos 10.6.4 / macbook pro intel core i7]

MathieU

________________
Mathieu Chamagne
mathieu.chamagne@gmail.com
http://mathieuchamagne.com

http://www.maxobjects.com


October 18, 2010 | 10:24 am

Please try with the version posted on the incremental page, and let us know if you still encounter the issue.


October 18, 2010 | 2:58 pm

Thanks, the incremental update fixed the problem.
(sorry, I forgot to have a look in incremental page before posting this report…)

Mathieu


October 18, 2010 | 3:48 pm

Great. Thanks for confirming.


October 22, 2010 | 9:21 am

sorry, but… it introduced another problem :
when creating a [buffer~ george drumloop.aif 2]
the buffer~ george contains only 1 channel.. and it should have 2 channels, right ?
so…

Mathieu


October 22, 2010 | 10:39 am

it’s pretty ambiguous what it should do, but at least, this is consistent with decades of Max history. It works the same way in Max 4 and 5.1.4.


October 22, 2010 | 11:54 am

"arguments are buffer name, optional filename to read or optional initial length in milliseconds, and optional number of channels (1, 2, or 4)."

I don’t think it’s so ambiguous !

then it’s not possible to create a buffer~ that will load a stereo sound file without conencting a [loadmess replace drumloop.aif] ?

M


October 23, 2010 | 4:55 pm

You need to had a duration before the number of channels buffer~ toto drumloop.aif 0 2.


March 8, 2012 | 8:42 am

So it is not possible to change the default channel number of buffer~(=1) without giving it a fixed duration @same time, right?


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