[PD] repeating data in array or looping the data when reading?

Jack jack at rybn.org
Sun Sep 1 11:10:30 CEST 2013


Le 01/09/2013 10:30, Ronni Montoya a écrit :
> Hi again, I'm creating some structures iterating geos using the "repeat" object.
[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 problem.
> 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?
> cheers
> R.
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

More information about the Pd-list mailing list