Thread: Midi <-> OSC
View Single Post
Old 11-18-2017, 02:31 PM   #88
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Quote:
Originally Posted by fundorin View Post
What do you mean? My code is sending single osc message per slider.


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.
try:
Code:
slSlider = 10; // address of list
mem_set_values(slSlider, 16, 17, 18, 19, 20, 21, 22, 23);
Justin is offline   Reply With Quote