[PD] Textfile vs. Lists vs. Arrays vs. ?

saint saintidle at yahoo.com
Fri Feb 26 16:25:54 CET 2010


Hi all,

I've a pd system that involves the playing back of sequences and patterns.

I store the pattern data in lots of separate text files which the system reads on the fly once the next pattern is called upon.

My problem is that I get audio dropouts when changing some patterns, usually ones that call on a lot of text files. (I've put all the graphic-heavy stuff into a subpatch which remains closed during live playback as my initial feeling was the glitches were caused by graphical stuff as is usual with pd. But surely once in a subpatch and closed there's no overhead?)

I suppose what I'm asking is, would I get better performance if I wasn't constantly calling upon text files on the hard disk?

Say, saving the strings of numbers to lists or arrays?

What would the best way to go about that if so?

The reason I went for the text file route was that it was simple to re-order the sequences via a file manager and just generally easier to track down problems by inspecting the files rather than poking around in lists and arrays. But audio always has final say!


Thanks in advance as always,

John.


      




More information about the Pd-list mailing list