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Llzv8IlGMbHwQNCfqZd7usrcWKd3+w3v+ByARAA6SYiR3hzXvxLkj5KwrNAEdVmdBhGG6Nf9oLp8mMaEA4HQ9U+il5PcfOzmLWrRPdeR.AKgxbFaVuY+9ZB14s5kM0WJNS.DkPpH6Y7TFAx0xrmw1BdX3P33n8UX1s5EIFoxUyVoO4RhHL+ZmD4C0aFi3EpdsS8146BIp5K0oKVJnWkUacT15LrtFCC.pkqMm71yIuybx0mStwbx6Nm7qmIGmPgwKT2L9AytQehdgMvwX2vtee6NvbPhHefgJ7Fz0OpXz0fq6ggjQFMaQGMMrwqjmXIipSqFZDmYP3ELd4Zesl3c0h8N4mosy29rr4FPubJFGPUkpiXWBu8Bqnv3KfdXCwvDMoqVKGJ6xY7fwbF0I+6Jvc+QiHhrXegGnCjR3U0ru.2m3QvgYdY+mZ9VXNXrHOEv8JWb++XkEVu9dyX3Zqn+r+uT2dPulcmcJKUnNkeww6x207AM08zj9m1PzExuwqyO1Ty3aqZP++ETgu1UBMdSa9YBcHG.SE3Px1mbEUu2X4sRGpc.g4pE9G3Wxl0Rapp1rV5lHmTWAmsjm0SjaTJ9Kt0C.5Asq8xdkNDl8PAInQ3CBJ8wNB9Gbh+pCEVWWuBfRl9+.TYytJY6a9IFHene0Gbbx6paX31Kqg6rrFVeYMrwxZ3tKqgudYM7m+7FpFm3fHI2OlLEg516n3KfFGM8BXIz+BF+bn+.
-
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