cool thanks, i have one more doubt , is there is a way to store 3 variable in one index of an array? how can i do if i would like to have 3 values rgb at one index? or should i use 3 arrays one per color?
thanks
pun.
--- On Wed, 1/21/09, Frank Barknecht fbar@footils.org wrote:
From: Frank Barknecht fbar@footils.org Subject: Re: [PD] reading colors from txt file with repeat To: pd-list@iem.at Date: Wednesday, January 21, 2009, 3:59 AM Hallo, punchik punchik hat gesagt: // punchik punchik wrote:
yes, something like that thanks, but why should i use
arrays instead text files? is it faster?
Yes, it's a lot faster especially with larger textfiles.
For example to read out line number 80 you would need to bang the textfile object 80 times and get 79 useless messages coming out of the textfile object. Reading array element 80 is just a simple lookup of that number - it's one of the fastest things you can do in Pd.
You can probably use IOhannes's approach to load the textfile content into a set of tables once.
Ciao
Frank Barknecht Do You RjDj.me? _ ______footils.org__
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list