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

Oct 18, 2010 at 9:25am

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

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

#52804
Oct 18, 2010 at 10:24am

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

#189835
Oct 18, 2010 at 2:58pm

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

Mathieu

#189836
Oct 18, 2010 at 3:48pm

Great. Thanks for confirming.

#189837
Oct 22, 2010 at 9:21am

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

#189838
Oct 22, 2010 at 10:39am

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.

#189839
Oct 22, 2010 at 11:54am

“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

#189840
Oct 23, 2010 at 4:55pm

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

#189841
Mar 8, 2012 at 8:42am

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

#189842

You must be logged in to reply to this topic.