Hi, i have a spread of 12 objects that i want to “intelligently” distribute over a number of variable inputs (1 to 4).
By intelligently i mean that for example if the 12 objects are all distributed along 2 inputs (lets call them input A and input B, having 6 objects each), when another input is “activated” (lets say input C), 3 objects from input A and 3 objects from input B will have to move to input C.
As for now i can obviously evenly distribute the objects along all the inputs, but when the input count changes all the objects move and mix between all the inputs…
I have attached a sample patch with the current (wrong) behavior, i think i am missing a basic concept to get this to work properly.
Do you have any hint to point me in the right direction?
I am looking for a solution that can work with a variable number of inputs and objects, but solving the basic attached patch will be a good starting point.
Thanks!
object distribution.v4p (17.0 kB)