how many channels in buffer~?


    Sep 03 2009 | 3:10 am
    Hi-
    This is a a question that I think leads to a feature request. Is there a programmatic way to know how many channels are in a buffer~? I would think that info~ would be the right answer, but it doesn't do that.
    I have a sample player where users are switching between different buffers. I would like it do use one groove~, and be suave about whether the sample is mono or stereo. Any ideas?
    If not, could info~ please report the number of channels?
    Thanks,
    mzed

    • Sep 03 2009 | 9:10 am
      The [sfinfo~] object reports the number of channels, that might be of some use to you.
      lh
    • Sep 03 2009 | 12:21 pm
      [mxj buf.Op] will give you the number of channels (with the getChannels message).
      I never understood why [info~] don't return this information, nor why there is no mention of [mxj buf.Op] in info~.maxhelp.
      p
    • Sep 03 2009 | 5:18 pm
      Patrick Delges wrote on Thu, 03 September 2009 05:21[mxj buf.Op] will give you the number of channels (with the getChannels message).
      I never understood why [info~] don't return this information, nor why there is no mention of [mxj buf.Op] in info~.maxhelp.
      p
      Thanks for that. Features that mxj adds are poorly exposed in general, I think.
      mz