Forums > MaxMSP

[Prob] Object w/o Pairs? Weighted Probability [random]?

July 22, 2010 | 2:59 pm

Hi – I am looking for an object similar to [prob], where the chances of a random number being selected can be weighted, but I don’t need "pairs". I understand I could just send large lists to [prob] to account for all numbers, but I figured that this is probably a pretty common task and I’d assume there’s an object out there like [prob] but without pairs.

July 22, 2010 | 4:51 pm

Perhaps use [random] linked to a [table] so you can draw your own weightings. Or have a look at Peter Castine’s Litter Power for all sorts of useful flavours of randomness.


July 23, 2010 | 6:09 am

check out the ‘bang’ message to the table object

July 23, 2010 | 2:17 pm

He is a patch I wrote a while back that you can save as a subpatch. Two lists for example [1 4 2 86] and [10 20 55 15] will output the numbers in the list according to the distribution in the right (think of them as percentages).
But in general table is what you want or you can use split with random.

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

Forums > MaxMSP