Thread: Midi <-> OSC
View Single Post
Old 11-18-2017, 12:46 PM   #85
fundorin
Banned
 
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
Default

Quote:
Originally Posted by mschnell View Post
Do you really want to have multiple messages sent if multiple sliders are set to the same value ?
What do you mean? My code is sending single osc message per slider.

Quote:
Originally Posted by mschnell View Post
a=1000;
a[0] = 1;
a[1] = 11;
a[2] = 111;
I've tested this method instead of using separate variables for each silder right now. Works, but the way of declaring an array is awful.

You can't write something like this:
slSlider=10;

slSlider[1] = {16,17,18,19,20,21,22,23};
or
slSlider[] = {16,17,18,19,20,21,22,23};
or
slSlider[] = 16,17,18,19,20,21,22,23;

Didn't work for me, at least. Tried many possible combinations to declare an array, using one (two, apparently, cause the offset should be declared too) line of the code.
fundorin is offline   Reply With Quote