Forums > MaxMSP


Oct 09 2011 | 6:30 pm

Im coming back to max after a while and still getting back into the swing of things again. I need to make a patch or there might be an object that does it that has a choice of numbers in it lets say 1 to 16 and bangs out one of those numbers every time it gets banged, and then every time a number is chosen the probability of that number being picked again increases.

Oct 09 2011 | 6:51 pm

the array object in Max is called [coll]. If you search the forum for "probability", you’ll be on your way. A combination of [random] and [rslider] might be in there too.


Oct 09 2011 | 7:37 pm

For a relatively dirty/easy way ou could use a [coll] object filled with the values you want, each with a numbered index. Then use [random] to call items from that array, and whenever you call a value from the array, you use another [random] object to write that value to the [coll] object, so it will be more likely to come up again next time.

Oct 10 2011 | 3:24 pm

I’d probably do this with table. If you bang table, it acts as a weighted probability distribution.


Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP