i suppose it’s a newb question and sorry for that.
i don’t know how to qualify in english (no more in french)…
a composite variable name, a synthetic variable name???
in js your can assign a “synthetic” var name like this this["toto_"+number] = number;
how can we do in Processing
assign a variable’s name by concatenating String + variable
int r1,r2,r3,r4;
void controllerChange(int channel, int number, int value) {
// number is 31-35, i would like to use "number" to assign the good variable r1 or r2 or r3,,,,
"r"+str(number-30) = value;
//does not work!
eval("r"+str(number-31)) = value;
// no more
}