[PD] repeating data in array or looping the data when reading?
ronni.montoya at gmail.com
Mon Sep 2 03:11:04 CEST 2013
Hey Jack, if i have a table with 20 index and i iterate 20 times and
then i use [mod 20] i dont see how this is gonna work as you
If i iterate 20 times and i use [mod 10] then it that way it is gonna
repeat 2 times.
If i iterate 20 times and i use [mod 5] then its gonna gonna 4 times.
so as you see, i can use [mod ] when the repeating value is less than
the number of iterated geos. But not in my case.
anybody have an idea how to solve this?
2013/9/1, Jack <jack at rybn.org>:
> Le 01/09/2013 10:30, Ronni Montoya a écrit :
>> Hi again, I'm creating some structures iterating geos using the "repeat"
> [repeat] comes from zexy. You have two specifics object for this purpose
> (iteration) called [gemlist] from Gem and [until] from Pd. See
>> I have tables with data(colors) and I'm applying a different color to
>> each iterated geo.
>> If my array has 20 values (20 colors) and then i iterate 20 times a
>> geo, then each geo is gonna have a different color.
>> But if i iterate 40 times then i will only have the first 20 geos
>> colored and the rest is gonna be black.
> In your counter, use a [mod 20] to loop two times from 0 to 19 (to read
> your table which has 20 index).
>> I was wondering which should be the best approach in pd to solve this
>> I need that instead having black geos i need that it can loop the
>> values in the array , in that way it wouldn't mind to have more
>> iterated geos than values in my array.
>> Other approach i was thinking is creating a large table , and then
>> filling only with 20 color values, and then repeat the data through
>> the whole table.
>> I was wondering which should be the best approach for this? how can i
>> repeat the data of my array?
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
More information about the Pd-list