[PD] list issue
Frank Barknecht
fbar at footils.org
Wed Mar 4 11:24:04 CET 2009
Hallo,
YOhannes hat gesagt: // YOhannes wrote:
> ive got some trouble with list handling, maybe somone can give me a hand.
>
> i like to group an unnown number of floats in a list. (these floats
> are the result of different divisors, used all for a fixed value. like
> 100/16, 100/32...)
>
> what i want to do is to put them randomly into the list as long as the
> sum of all items
> in the list equals the size of the fixed value. this seems to be pretty
> difficult...since i use
> random i cant know what the next float will be.
I don't know if I understand correctly what you mean, but maybe
[list-equalize] from the [list]-abs collection can help. It scales all
elements in a list so that their sum is 1.
If you add a new element into the list this will change the value of old
elements in the list of course.
Ciao
--
Frank
More information about the Pd-list
mailing list