I’m trying to write a Java tutorial for the Max community, specifically focusing on doing interesting thing to buffers using mxj.
I’m just learning Java myself so it’s a big learning experience for me. I think it would be great to have more Max Java tutorials so I’m trying to do something about it.
I’ve written an example patch which randomly chops up a buffer. It works fine with short files but crashes with very long audio files. I’m guessing that the length of the file is longer than can be represented using an int. Another guess is that using ‘long’ would help matters. Only thing is that I’m having trouble implementing it.
If someone could take a look I’d appreciate it. Max patch, class, and java attached.