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

Nov 21, 2012 at 1:25pm

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

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

#65304
Nov 21, 2012 at 1:48pm

And not the first time I answer this question:

Send the getChannels message to mxj buf.Op myBuffer.

p

#235366
Nov 21, 2012 at 2:32pm

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.

#235367
Nov 21, 2012 at 2:54pm

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

p

#235368
Nov 21, 2012 at 3:12pm

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~…

#235369
Nov 21, 2012 at 3:16pm

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 .

#235370
Nov 21, 2012 at 3:20pm

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. –
#235371
Nov 21, 2012 at 3:33pm

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

#235372
Nov 21, 2012 at 4:34pm

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

#235373
Nov 21, 2012 at 4:49pm

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

#235374
Nov 21, 2012 at 5:06pm

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

#235375
Nov 21, 2012 at 7:01pm

you’re welcome !

#235376

You must be logged in to reply to this topic.