Forums > MaxMSP

Feature request: number of buffer's channels from info~

Nov 21 2012 | 1:25 pm

Possibly not the first this I ask for this. The current impossibility to get this information from info~ seems completely absurd to me.

Nov 21 2012 | 1:48 pm

And not the first time I answer this question:

Send the getChannels message to mxj buf.Op myBuffer.


Nov 21 2012 | 2:32 pm

Thanks Patrick, but I prefer to avoid mxj as much as possible. I have experienced unreliable patchers with mxj and by the way I really don’t understand why this cannot be provided by info~, an object made to provide such information. It’s like buying a car and having to buy the steering wheel separately.

Nov 21 2012 | 2:54 pm

One way is to use sfinfo~ before you load your buffer, but it won’t work if you want to import mp3…


Nov 21 2012 | 3:12 pm

another way is to use gen~, there are operators dedicated to giving buffer channel numbers info inside gen~

-- Pasted Max Patch, click to expand. --

though it gives you that data in signal, it might be reliable.

And you’re completely right about that lack of info with info~…

Nov 21 2012 | 3:16 pm

yeah thats why mxj buf.Op is here , but i had some problems while trying to receive channel data in realtime dynamically . sometimes i get strange results like 0 . as Patrick suggested [sfinfo] comes in handy .
i would also love to reverse [buffer] directly .

Nov 21 2012 | 3:20 pm

the big drawback with sfinfo~ is that you need the sound insied teh buffer~ to come from a soundfile.

Yet another (counterintuitive…) way of handling this is to use [polybuffer~] for that buffer…

-- Pasted Max Patch, click to expand. --

Nov 21 2012 | 3:33 pm

vichug , how to dump other buffers (lets say ive got 2 samples inside) ?

Nov 21 2012 | 4:34 pm

it’s all inside the polybuffer~’s help ([info] tab). Basically when you dump as idid, it dumps a lot of things, and in a "stream of list" format which you can more or less direclty feed into a [coll].

Nov 21 2012 | 4:49 pm

yes , a "stream of list" . ive been so stupid to dump out that into a [message] object ! laugh of myself . thanks !

Nov 21 2012 | 5:06 pm

Thanks for the information about gen~ vichug, this is very interesting.

Nov 21 2012 | 7:01 pm

you’re welcome !

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

Forums > MaxMSP