Forums > Java

acessing a buffer at audio rate ?

February 23, 2006 | 8:28 pm


February 23, 2006 | 8:41 pm

I think it might be possible if you make an mxj~ object and do the
MSPBuffer calls from within
your perform routine. Not sure what the issues might be though. Ben??
Look in the java-doc directory for mxj~ examples.
Topher


March 1, 2006 | 1:22 am

It’s possible that the code is deferring to the main thread, but I
don’t think so. Miguel, have you tried this out?

Ben


March 6, 2006 | 3:21 am

Hi

I was able to do what i wanted. I just used MSPObject.poke or MSPObject.peek in the perform method and I increased an index variable (which stores where I’m currently reading/writing in the buffer) each time mxj~ calls perform(). The MSPObject methods are static, which means that you don’t need to create an object, just call the methods directly through MSPObject.something(…,…,..) and one of the arguments is the buffer name.

Miguel


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