Set All Round Robin Groups
-
Works here.
By the way you can really simplify that callback.
inline function onScriptComboBox1Control(component, value) { SamplerA.asSampler().setActiveGroup(value == 6 ? 1 : value); };
-
@d-healey thanks! so after choosing option 6 you are still able to solo other groups? for me, when i select it and then select another option it doesnt change
-
@Adam_G Yeah selecting option 6 enabled group 1, selecting any other value enabled the corresponding group.
-
@d-healey ah, how can i define 1-5 as a multigroup? thats the overall goal, for that option to re-enable all groups
-
@Adam_G I've not tried it but I suspect you just use a loop to enable them one after another.
-
@d-healey i have no clue how to do that haha do you know of a post i can reference or could you show me how? :grinning_face_with_sweat:
-
@Adam_G Do you know how to write a for loop?
-
ive used them before but arent able to write them myself. so no not quite
-
@Adam_G Watch my scripting 101 video, and I think I did one specifically about loops.
-
@d-healey thanks, i will!
-
You need to pass an array into the first parameter. Either write it right there, or pass a variable.
https://docs.hise.audio/scripting/scripting-api/sampler/index.html#setmultigroupindex