Forums > Java

External class feedback ?


f.e
April 11, 2006 | 1:09 pm

I’m sending a flow of data to an external class which acts like a "fake"
Midi receiver, in order to parse RealTime Midi events. It works great,
but this class output the data in a system.out stream. How do i do to
get back the data into my mxj external in order to output it the way i
want, and out from an outlet ? There’s a "this" something to do, i
guess, but i don’t know how…

best

f.e

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> objects for max/msp | C, java & python



f.e
April 11, 2006 | 1:27 pm

Or maybe it’s about PipedOutputStream ?


April 11, 2006 | 1:34 pm

I’m not sure I understand what you want to do but maybe this will help :

///——————-
// In your MyMaxObject class (extending max object) :

RealTimeMidiParser rtmp = new RealTimeMidiParser(this);

// In your RealTimeMidiParser class :

private MyMaxObject mainRef;

public RealTimeMidiParser(MyMaxObject ref)
{
mainRef = ref;
}

// In your parse() function

mainRef.outlet(…) // < -- all the outlet method from MaxObject
// are available here.

///——————-

It’s a bit ugly, but it should work.

Léo


April 11, 2006 | 7:06 pm

Hmm.
Well we are redirecting System.out to the max console currently.
Do you have the source code for the midi parsing class? I wrote
a bunch of midi parsing stuff that i never released that I could post
to the
list if it would be helpful.

Topher


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