CP5 sliders
in
Contributed Library Questions
•
9 months ago
Hi there,
Maybe someone here knows the best way to make that...
I want to control 16 variables with 16 CP5 sliders.
I've the array
int[] values = new int[16]
And now, I want to create an "array of controls", something like that (of course that doesn't work, but that's the idea)
for (int i=0; i<16; i++) {
cp5.addSlider("values["+i+"]");
...
}
And yes, I can create 16 variables and 16 sliders and all would work fine, but I'm looking for the more elegant solution.
Thanks!
Maybe someone here knows the best way to make that...
I want to control 16 variables with 16 CP5 sliders.
I've the array
int[] values = new int[16]
And now, I want to create an "array of controls", something like that (of course that doesn't work, but that's the idea)
for (int i=0; i<16; i++) {
cp5.addSlider("values["+i+"]");
...
}
And yes, I can create 16 variables and 16 sliders and all would work fine, but I'm looking for the more elegant solution.
Thanks!
1