Forums > MaxMSP

Max msp and oscp5 in java.

December 2, 2011 | 7:17 am

Hi,
I am using java in eclipse(with minim library) and wanted to send OSC packets to a network, directly to max msp. I did download that oscp5, and put that in the project directory… Mostly examples given are given in ‘processing’ language. Even i am importing processing library in eclipse, there are no usage given as to use it in eclipse/java. CAn anybody please help me out? Like the syntax, PLease. Also, tell me how to send this note?Here’s the part-

private Map keys;

public void playNote(Key k) {
stopNote(k);

Minim minim = new Minim(app);
AudioOutput out = minim.getLineOut(Minim.MONO, 2048);

NoteMinim nm = new NoteMinim();
nm.setMinim(minim);
nm.setAudioOutput(out);

keys.put(k, nm);

if (k == Key.KEY_TYPE_A) {
out.playNote("A");
} else if (k == Key.KEY_TYPE_B) {
out.playNote("B");
} else if (k == Key.KEY_TYPE_C) {
out.playNote("C");


December 2, 2011 | 11:18 am

Please. Anybody? Hell urgent.


December 2, 2011 | 2:40 pm

I am trying to use http://www.illposed.com/software/javaoscdoc/index.html
but unable to send the data..
If anybody wants to see, here’s the complete code.

http://code.google.com/p/mtpiano/source/browse/trunk/code/MTPiano/src/piano/NotePlayer.java?r=11


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