MAX receive UDP message

kimberleegk's icon

I need to send a UDP message from Python to Max/MSP. When I send a simple message like the number "1", I get the following Max error:
udpreceive: OSC packet size (1) not a multiple of 4 bytes: dropping
How do I need to format my message so udpreceive will understand it?

Wetterberg's icon

Well it needs to be a multiple of four bytes. Consider getting an osc lib for python, perhaps?

pdelges's icon

Instead of udpreceive, you may try Max' standard mxj net.udp.recv, or sadam.udpReceiver from the sadam library

hz37's icon

pythonosc is super simple to use. Here's my description of having it talk to max: