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…
f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> objects for max/msp | C, java & python
Or maybe it’s about PipedOutputStream ?
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.
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
list if it would be helpful.
C74 RSS Feed | © Copyright Cycling '74