Sending UDP messages from Max/MSP to Processing
in
Integration and Hardware
•
4 months ago
I'm having some trouble with the following issue, any help would be appreciated:
I am trying to use a Korg NanoKontrol MIDI controller to control things in both Processing and Max/MSP simultaneously. I want to receive MIDI in Max/MSP and send integers from Max/MSP to Processing via UDP to control stuff. I've got Max/MSP receiving MIDI and sending it as UDP using the 'udp send' object.
I've tried oscP5 and UDP (
http://ubaa.net/shared/processing/udp/) libraries in Processing to receive the UDP messages. In either instance i've changed the port to be the same on both so UDP messages are coming from Max/MSP to Processing. The problem is, I can't see how to get the actual numbers that are being sent.
with the UDP library and the example patch i get this message when inputting integers (0-127) from max/msp:
receive: "int,i" from 127.0.0.1 on port 55214
How do I get the actual number being sent, or is a number being sent correctly from max/msp at all? I'm fairly new to Processing and I haven't used UDP before so any tips appreciated, i suppose i'm missing something fundamental?
EDIT: resolved this now, I used oscP5 in the end, was missing this bit in Processing:
println(" typetag: "+theOscMessage.get(0).intValue());
1