Buffer~ objects resizing themselves for no apparent reason

Apr 12, 2011 at 10:44pm

Buffer~ objects resizing themselves for no apparent reason

Hello,

I have a ‘loadmess’ object loading several audio files into several buffer~ objects at startup, each with a size argument. But for some reason, the buffers are occasionally loaded smaller than the argument value, thus cutting the ends off the waveforms.

This doesn’t always happen, so I don’t see how it could be a programming error. Could it be a Max glitch? I can’t see any reason for this in the help files, or anywhere else.

Forgive me if the answer is obvious, I am a relative novice. Any help/advice is appreciated.

Many thanks

#56280
Apr 13, 2011 at 4:12am

would help to see the patch…
if you want to load the entire file into a buffer~, use the “replace” message. This way you don’t have to worry about the length of the buffer. The whole file will be loaded and enough memory allocated to accommodate the file.

#201948
Jun 9, 2011 at 8:48am

Hello,

I’m having the same problem, did you find a solution?

#201949
Jun 9, 2011 at 5:45pm

the solution is to use the “replace” message or to post a patch so people can see what you are up to and give you an educated guess as to what might be happening…

#201950

You must be logged in to reply to this topic.