hello,

put list A in a table, and use tabread at position : int(list_A_size * X / 149)
when X is integer varing from 0 to 149, to create the list_B

cheers
Cyrille


Le 21/05/2012 21:13, tim vets a écrit :
I have lists of floats from measurements which vary in length
(they grow with the duration of the measurements)
What would be a good way to map those to a list of, say, 150 items?
In concreto:
-When variable list A has 15 elements and fixed list B is 150 long,
I can simply repeat each value of A 10 times to get a 150 elements list.
-When list A has 1500 elements, and B 150, I could take list A 10 elements at a 
time,
and write the averages thereof to list B.
but how do I generalize this for _any_ length of list A?
and how do I patch this up in pd? :)
Thanks,
Tim


_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management ->  
http://lists.puredata.info/listinfo/pd-list

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to