Re: [PD] reading colors from txt file with repeat

2009-01-22 Thread Steffen Leve Poulsen
Hi Frank Maybe look at this concept attached tab-many.pd its more generic. Stef Frank Barknecht skrev: Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote: You can only store one number per index. So you either should use 3 arrays (i.e. $0-r, $0-g, $0-b) or group three values

Re: [PD] reading colors from txt file with repeat

2009-01-22 Thread Steffen Leve Poulsen
oops, attached corrected Steffen Leve Poulsen skrev: Hi Frank Maybe look at this concept attached tab-many.pd its more generic. Stef Frank Barknecht skrev: Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote: You can only store one number per index. So you either should use 3

Re: [PD] reading colors from txt file with repeat

2009-01-21 Thread Frank Barknecht
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

Re: [PD] reading colors from txt file with repeat

2009-01-21 Thread punchik punchik
Barknecht f...@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

Re: [PD] reading colors from txt file with repeat

2009-01-21 Thread Frank Barknecht
Hallo, punchik punchik hat gesagt: // punchik punchik wrote: 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? You can only store one

Re: [PD] reading colors from txt file with repeat

2009-01-21 Thread Frank Barknecht
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote: You can only store one number per index. So you either should use 3 arrays (i.e. $0-r, $0-g, $0-b) or group three values inside one table by adjusting the indices accordingly. It's easier to show in a patch than to tell, so just

[PD] reading colors from txt file with repeat

2009-01-20 Thread punchik punchik
Hello pd happy people, one question , i have a txt file with rgb colors . The txt file i have is something like this: 142 250 0 0 100 50 14 123 0 123 222 111 and so on. each line represents the rgb color where the first item in each line is red ,

Re: [PD] reading colors from txt file with repeat

2009-01-20 Thread IOhannes m zmoelnig
punchik punchik wrote: Hello pd happy people, one question , i have a txt file with rgb colors . The txt file i have is something like this: 142 250 0 0 100 50 14 123 0 123 222 111 and so on. each line represents the rgb color where the first item

Re: [PD] reading colors from txt file with repeat

2009-01-20 Thread punchik punchik
yes, something like that thanks, but why should i use arrays instead text files? is it faster? pun. --- On Tue, 1/20/09, IOhannes m zmoelnig zmoel...@iem.at wrote: From: IOhannes m zmoelnig zmoel...@iem.at Subject: Re: [PD] reading colors from txt file with repeat To: punch...@yahoo.com