I'm working on a device that lights a set of LEDs based on input from a midi controller. It was fully functional when I was using Processing to act as a serial to OSC interpreter.
I am using a java application called Moco to change the MIDI signal into OSC commands. The OSC signal is formed like "\midi\noteon 0 (int) 74 (int) 127 (int)". When I was using Processing as an OSC to Serial interpreter I was able to use the OSCP5 library and grab the values as follows:
String addr = theOscMessage.addrPattern();
int stripnumber = theOscMessage.get(0).intValue();
int Pixel = theOscMessage.get(1).intValue();
int Intensity = theOscMessage.get(2).intValue();
I would then just run a simple check such as "if addr=\midi\noteon && note == 72 digitalwrite redled high" "if addr=\midi\noteoff a&& note == 72 digitalwrite redled low".
The string from the OSC message itself is important because that corresponds to touch and aftertouch on the keyboard.
Now that I have the Arduino connected through an Ethernet shield and the ArdOSC library I am able to get all of my values with the exception of turning that actual OSC message into a string value. Could anyone give me an idea on how to get that accomplished or point me to a different library if necessary?
I'm honestly in over my head when it comes to programming. My background is more from network engineering and music production. This is my first Arduino project. =(
Thanks in advance for your help!