Currently I’m working on a Fasted OSC implementation in combination with OSC Touch. Fastled + CNMAT’s OSC: https://github.com/CNMAT/OSC
The work is nearly done, ready to show the world. One thing, my code is far from generic, especially regarding multisliders . For example, I’m using the following lot’s of times:
if(ID == 1) msg1.route("/all/val/1", set_val);
if(ID == 2) msg1.route("/all/val/2", set_val);
if(ID == 3) msg1.route("/all/val/3", set_val);
if(ID == 4) msg1.route("/all/val/4", set_val);
if(ID == 5) msg1.route("/all/val/5", set_val);
if(ID == 6) msg1.route("/all/val/6", set_val);
…
In other languages we would do something like:
msg1.route("/all/val/"+ID, set_val);
But this doesn’t seem to work. Is there anybody who can help me improve this or give me tips?
