Polybuffer storing four times as much as it's asked.
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?
Thanks
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:
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.