[PD] reading colors from txt file with repeat

Frank Barknecht fbar at footils.org
Wed Jan 21 09:59:26 CET 2009

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.

 Frank Barknecht            Do You RjDj.me?          _ ______footils.org__

More information about the Pd-list mailing list