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

Mar 27, 2013 at 10:19pm

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

– Pasted Max Patch, click to expand. –
#67376
Mar 28, 2013 at 2:34pm

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:

– Pasted Max Patch, click to expand. –
#242392
Mar 31, 2013 at 8:59pm

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.

#242393

You must be logged in to reply to this topic.