buffer~ information

Brennon Bortz's icon

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

Luke Hall's icon

[info~]!?

lh

Brennon Bortz's icon

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.

Brennon Bortz's icon

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

Luke Hall's icon

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

X37V's icon

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.

X37V's icon

"I always seem to find the answer in the very next search..."

Yes. As I just did...

[mxj buf.Op ] with a getChannels message