acessing a buffer at audio rate ?

Feb 23, 2006 at 8:28pm

acessing a buffer at audio rate ?

#24588
Feb 23, 2006 at 8:41pm

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

#71373
Mar 1, 2006 at 1:22am

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

#71374
Mar 6, 2006 at 3:21am

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

#71375

You must be logged in to reply to this topic.