Hallo, B. Bogart hat gesagt: // B. Bogart wrote: > Does someone have a very simple implementation of a weighted randomness > patch where the distribution of the numbers is read from a table? I see > Miller's moses example, but I would like more graphic control of density.
Not graphical, but [list]-abs has [list-wrandom] (also attached). It'd modelled after [random], but instead of the range, you send a list of numbers to the second inlet, that give relative probabilities for its indices/positions. If you bang the first inlet to get a random position out. The probs are automatically normalized. I don't think it's in pd-extended yet, but it's just an abstraction, so you can drop it in wherever you want (uses some other list-abs, though.) Internally the list of probs is stored in a table, so if you rip it apart, you can directly read from a table. Ciao -- Frank Barknecht _ ______footils.org__
list-wrandom-help.pd
Description: application/puredata
list-wrandom.pd
Description: application/puredata
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
