I can not find an OSC library for Arduino that supports Touch OSC's multitoggle controls. Am I doing something wrong, or is there a library that does have support for this control?
The library I'm using: https://github.com/recotana/ArdOSC
The OSC message I'm sending from Touch OSC:
/octobar/togglearray/2/2 1.
The Snippet relative to catch it on the Arduino:
server.begin(serverPort);
server.addCallback("/octobar/togglearray",&togglearray);
void togglearray(OSCMessage *_mes) {
Serial.println("Toggle Array");
}
I do have other callbacks working, and I have not pasted all of the server code here since it is working with fader and push button controls. The problem seems to be any control that supports multiple selection.
server.addCallback("/octobar/togglearray/2/2",&togglearray);
Addressing the first toggle in the first row (indexes in OSC path) /multitoggle/1/1 0
andAddressing the first toggle in the first row (indexes as parameters) /multitoggle 1 1 0
. If the message you're sending is/octobar/togglearray/2/2 1
then/2/2
is part of the OSC-Address and should be in the callback. I guess you have to send the message with "indexes as parameters" (but I didn't find how to do that in the manual)