Hello!
I am sending OSC bundles over SLIPSerial from the arduino, and trying to recieve them in Max msp and then route the messages to perameters in Max.
In the Arduino code i am creating a OSC bundle and adding two messages to it, the first sets a directory of "/analog/ch1" and then reads anolog pin 0 to the end of that message, then the 2nd message sends "/analog/ch2" and reads analog pin 1 to the end.
then i send the the bundle over SLIP serial.
#include <OSCBundle.h>
#include <OSCMessage.h>
#include <SLIPEncodedSerial.h>
SLIPEncodedSerial SLIPSerial(Serial);
void setup() {
Serial.begin(38400);
}
void loop(){
OSCBundle bndl;
bndl.add("/analog/ch1").add(analogRead(0));
bndl.add("/analog/ch2").add(analogRead(1));
bndl.send(SLIPSerial);
}
I can see in the serial monitor that the serial messages are being send but i am having trouble receiving the messages in Max MSP
There are a number of objects included the External objects from CNMAT, but i can't seam to get any of them to work in conjunction with each other.
does anyone know how to get this OSC going over serial? or should i just get the ethernet sheild and communicate over UDP?
thanks!!
steve