Forums > MaxMSP

Peek~ Operations Taking Much Too Long

September 27, 2009 | 7:23 pm

Hi, I have just begun making a buffer edit patch and find that one operation in particular ("Chop") seems to be taking far too long.

Here is the patch, further explanation of the patch is found below:

– Pasted Max Patch, click to expand. –

You’ll want to go into the "CHOP" subpatch. This function is trying to repeat the given part of a region X amount of times. For example, divide the buffer into 16 regions, select one of those regions, then chop it with a value of 4 and the first quarter of the region gets repeated 4 times.

I believe its a problem with recursion since counter, which triggers uzi, gets counted through by uzi’s "done" bang. But Max doesn’t crash, it just takes an obscenely long time to perform the operation, much too long.

Thanks for any help. Let me know if you need clarification on anything.


September 27, 2009 | 10:32 pm

I haven’t looked closely at your patch but maybe you could look at [mxj buf.Op] and try using that to rewrite the samples in your buffer. If you feel comfortable with java you could even have a look inside and write your own class to do exactly what you want.

lh


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