Forums > MaxMSP

Buffer~ objects resizing themselves for no apparent reason

April 12, 2011 | 10:44 pm

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



MIB
April 13, 2011 | 4:12 am

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.


June 9, 2011 | 8:48 am

Hello,

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



MIB
June 9, 2011 | 5:45 pm

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…


Viewing 4 posts - 1 through 4 (of 4 total)