buffer~ information

Dec 12, 2008 at 1:41am

buffer~ information

I’m pretty sure I recall there being an object that exists to provide information regarding the data held an associated [buffer~] (duration, sampling rate, etc.) Am I on something? I’ve checked the help files and am coming up nil…

#41308
Dec 12, 2008 at 1:44am

[info~]!?

lh

#146990
Dec 12, 2008 at 1:46am

I always seem to find the answer in the very next search…

[info~] was it. And no, it’s not referenced in the [buffer~] help file. I do see now that it’s listed in the description section of the [buffer~] documentation, but I always tend to head for the “See Also” section when I’m looking for an object that I know is related to another object. It seems to me that [info~] is a worthy candidate for the “See Also” sections of both the [buffer~] help file and documentation.

#146991
Dec 12, 2008 at 1:46am

No, I’m not daft…it seems we were typing at the same time… :)

#146992
Dec 12, 2008 at 1:49am

I guessed you were!

It does seem a bit strange that it isn’t listed in the help file. I assumed it was but I tend to use [info~] every time I use [buffer~] so it’s become second nature. Anyway, as you were =)

lh

#146993
Dec 12, 2008 at 2:36am

Aside from using sfinfo~ and opening the sound file, is there a way to determine the number of channels of the file loaded into the buffer?

I wish info~ did this.

#146994
Dec 12, 2008 at 3:43am

“I always seem to find the answer in the very next search…”

Yes. As I just did…

[mxj buf.Op ] with a getChannels message

#146995

You must be logged in to reply to this topic.