Polybuffer storing four times as much as it's asked.

    Mar 27 2013 | 10:19 pm
    Hi there, I'm having a problem with polybuffer. When I ask it to create a 3000ms buffer, the buffer menu shows correctly the 3000ms buffer, yet when I send the message 'getsize' and convert from sampstoms I am told the polybuffer is storing 12000ms. Is this correct? I've noticed very occasionally that it will store the correct size, is there any way of predicting if it will?

    • Mar 28 2013 | 2:34 pm
      The result of the getsize message is not the one that you were expecting. The getsize returns the size in Bytes used by the buffer~ contained in polybuffer~. If you want to query the length in milliseconds you can ask info~ or extract the information from the dump message, with something like that:
    • Mar 31 2013 | 8:59 pm
      Aha, thank you so much for your answer. I assumed it was outputting samples stored rather then bytes. Your patch works very well to solve the problem.