Forums > MaxMSP

### What Is The Point Of Quantiles for Multislider?

Oct 22 2008 | 8:40 pm

This seems like a very random message for the multislider to accept. For those unfamiliar with the quantiles message this is what it does according to the reference:

"In left inlet: The word quantiles, followed by a list of floats between 0 and 1.0, multiplies each list element by the sum of all the values in the multislider. This result is then divided by 215 (32,768). Then, multislider sends out the address at which the sum of all values up to that address is greater than or equal to the result for each list element."

This has to be here for a reason. What purpose does this serve?

Oct 23 2008 | 8:18 am

This is a well kept secret. It’s a bit difficult to explain in words, but patch below is an example of what to do with it. Table can do this too, and it can best be understood with what happens when table is sent a bang. Basically it turns table into a random generator that uses stored values as a probability table. This can be explained as adding all stored values together, draw a random number below this sum, and lookup which index in the cumulation belongs to the number that has been drawn.

_
johan

— Pasted Max Patch, click to expand. —
Viewing 2 posts - 1 through 2 (of 2 total)

Forums > MaxMSP