buffer ignores number of channels?


    Mar 27 2008 | 6:58 am
    In the patch below, if I first load a stereo file, and then examine the buffer (double click), I _see a stereo file. If I then load a mono file, I see a mono file. But if I then load a stereo file again, it's only loading one channel. Same thing if I use the read message to open a stereo file - only one channel loads.
    Is there a way to force the buffer to load the right number of channels?
    thanks
    David

    • Apr 01 2008 | 12:43 pm
      David Stevens schrieb: > Is there a way to force the buffer to load the right number of channels?
      look at the replace message...
      -- Stefan Tiedje------------x------- --_____-----------|-------------- --(_|_ ----|-----|-----()------- -- _|_)----|-----()-------------- ----------()--------www.ccmix.com
    • Apr 01 2008 | 6:56 pm
      On 1 Apr 2008, at 13:43, Stefan Tiedje wrote: > > David Stevens schrieb: >> Is there a way to force the buffer to load the right number of >> channels? > > look at the replace message... > > --
      That's what I started with. I changed to [read] with the thought that it would behave better. Anyway, I just tried again with replace, and buffer is still remaining as one channel after loading in a mono file and then loading a stereo file. Let me be clear - start with 2 channel buffer - load in mono file - buffer becomes single channel load in stereo file - buffer remains single channel (at least as tested by double clicking on the buffer~ object to open the viewing window. Here's the patch I'm testing with...
      >
    • Jun 15 2008 | 5:32 pm
      Hello,
      When using read messages giving size & number of channels to read (as documented in buffer~.help), buffer seems to have a bug indeed (Max 4.6.3 or Max 5, OSX.5.3 Intel).
      Solution is to use a replace message with no argument. But you can only open all channels...
      Nicolas
      Quote: david stevens wrote on Tue, 01 April 2008 20:56 ---------------------------------------------------- > start with 2 channel buffer - load in mono file - buffer becomes single channel - load in stereo file - buffer remains single channel