Forums > Java

buffer~ in mxj~


August 31, 2007 | 6:27 pm

Hi guys,
I’ve been going through the documentation and I’ve been going through
the JAR but couldn’t figure this out: how do I access a named buffer~
from within mxj~? From the discussion on the list I’m not even sure
it’s possible right now?? My purpose is to load up a couple of files
in buffers, have them quickly resized in mxj~ where I do onset-
detection, normalizing and making sure they start at a zero crossing,
and after this initialization I play with them in Max/MSP.

Cheers

Nik

August 31, 2007 | 11:51 pm

did you look at the MSPBuffer java doc?

Class MSPBuffer

java.lang.Object

com.cycling74.msp.MSPBuffer

public class MSPBuffer
extends java.lang.Object
Provides static methods that get and set buffer data. created on 9-
April-2004

September 1, 2007 | 2:50 pm

Hi Topher,
I looked at it, but I must have been very tired. ;-) I guess I
expected to find something like a constructor MSPBuffer(String
bufferName) and then access it that way and then misunderstood how it
worked. Thanks for pointing me back to it. :-)

Cheers

Nik

On Sep 1, 2007, at 1:51 AM, topher lafata wrote:

> did you look at the MSPBuffer java doc?
>
> Class MSPBuffer
>
> java.lang.Object
>
>
> com.cycling74.msp.MSPBuffer
>
>
> public class MSPBuffer
> extends java.lang.Object
> Provides static methods that get and set buffer data. created on 9-
> April-2004
>
>

February 18, 2015 | 2:24 pm

I know this is really old but can somebody show me the basic code to peek a Buffer object? I’m just confused how to access it without constructing an MSPBuffer object like Niklas’ last comment. I think I must be missing something. Is it something like the following because it’s not working:

float mypeek = MSPBuffer.peek("Buckets");

Do I need to create a new class that extends MSPBuffer? Just really confused about this.

February 18, 2015 | 2:30 pm

Hi Tommy, can’t give a definite answer on this – however I would recommend viewing the source of [mxj buf.Op] I managed to hack something together from that.

February 18, 2015 | 3:01 pm

Thanks Mike, I will dig into that!

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

Forums > Java