[PD] reading colors from txt file with repeat

punchik punchik punchikk at yahoo.com
Wed Jan 21 17:35:51 CET 2009


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 at footils.org> wrote:

> From: Frank Barknecht <fbar at footils.org>
> Subject: Re: [PD] reading colors from txt file with repeat
> To: pd-list at 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 at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list


      




More information about the Pd-list mailing list