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

Roald Baudoux's icon

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

pdelges's icon

And not the first time I answer this question:

Send the getChannels message to mxj buf.Op myBuffer.

p

Roald Baudoux's icon

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.

pdelges's icon

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

p

vichug's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

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

And you're completely right about that lack of info with info~...

KrisW's icon

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 .

vichug's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

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

KrisW's icon

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

vichug's icon

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].

KrisW's icon

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

Roald Baudoux's icon

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

vichug's icon

you're welcome !