Percentage total amongst multiple numbers
I’m currently working on a patch in which the user should be able to set himself the probabilities of certain events, to do this, I arranged some number boxes in which a total 100% is divided equally, what I want to do is substract numbers from the rest of the boxes whenever you increase the number in one of them, so they always sum up 100. Any ideas on how to accomplish this?
Example in case I didnt make myself clear:
    = total 100%
If I added 3 to the first number box it should ideally do this:
    = total 100%
Of course theres a lot of interrogants, as in which order should he substract or if it is possible to do with floats (this would be even better)
Thanks a lot in advance.
You could maybe approach it this way :
----------begin_max5_patcher---------- 688.3oc0X9saaBCEF+ZxSgEZ6lorLa9aXWs8bTUM4.Nod0XGANaIspu6yXCo zEHP6xbIJRNvIX6O+663CPdbli6JwdRoK3qfa.NNONywQGpJfS84Nt438oLb o9xbSE44Dtzct42jj8Rc7O1DYKVldGku4GEjToYj8RBW.mC77g5uh0spiA21 zmBRoZPwRpfW0ETc70Btrj9.QGyS0MSX9tbJmQjksuVUPwNYSTXGi7oJBg5S QzL8pRr5meFE61RNbbtVNteufhYtU+vSylU0L++IA8fSMBZTz3HXz6OAQASM BVqnwQvv2eBFM01DG8J1CGbY42ZlPI0ysgMLpEsBgVfVdCrg0nnZb0ghjJXv 2vHsIOcCWnFBFM891S7JQQFoHUvDElAGtHDhRhPy64nmmEifkG1RL8rBkXUh HvckZ1c6z7fV17PwwSLyqVQWglWhk8tjjIl0YDzUnysz1kLgSsJlvqTm6B+. qbxuUi5IOqvN9Vb58f0lOCZrnDCACCOAjucGLXPH02AcwsPqvseQ1us.ffPv m.eXMB7EUqG3akoXFtHWjQ.nggYTc5XxaBldcBSTevrSXEXEXIAL.aXbT+Lf vkKBuX4Vd8hi48fDeqfjGXfxyWH0PCjudmVP3ELE40yDuKKSx2wjzRFUUMcv rh52TwT4N1eD2JoTsLkGLUzQmKSogdAO2Q0UoTZS08J92ZBKUkJoUUqGBr88 7eZSzXn9H+SVPoXd1AUC4rEE60jNVvIUYRYXIVuVaYO5N4xn7+9OKRC+p3uz yJE6JRal15z.vyxMiTJo7i3+liUT.niWyczrLBu88VyoYaETtrVBfa6L+YrJ xejJBZMEELBEEZUEUMa9Cnnp2NyxRxa.IkXcEgFPQKsthFJQJ1pJBMBE4aUE 4OBWy6ePQpSdZ1e.Gr9Y4A -----------end_max5_patcher-----------
this reminds me on my various approaches to do the same for a variable
number of gain regulators, where i needed to have a variable sum in addition.
try to realize it with "set" messages only at first, then you will see at which points
you need to have a pvar or something like that, where the state of the parameters
is copied in order to accumulate.