[PD] manipulation of text files - grep - shell - coll

robcanning robcanning at eircom.net
Sat Jan 19 14:25:20 CET 2008

Frank Barknecht wrote:
> Hallo,
> robcanning hat gesagt: // robcanning wrote:
>> well my programming skills don't really extend far pass writing the odd 
>> bash script but yes, writing an objectclass would be ideal (you mean a 
>> pd objectclass?) any pointers on where to start with this using python?
> Unless you already have pyext installed, I think installing the Lua
> loader is a bit easier. You need to check it out from the subversion
> repo at goto10, install the lua5.1-dev packages for your distro, then
> on Linux a simple "make" should compile it. Load it with "-lib lua".
> Learning Lua or Python is useful in other contexts as well, and
> actually it's not that hard to turn that knowledge into a Pd object
> class. You may want to start at http://lua-users.org/wiki/LuaTutorial
> IMO writing shell scripts is harder than writing Lua/Python scripts.
> The general structure for both Python and Lua Pd classes is very
> simple. I attached a quickie demonstrating this for Lua: "ltxt" is a
> kind of simplified "coll" or "textfile", where you can store data
> under float and symbol keys and look it up again. Starting with that
> it's easy to extend this with methods to search for keys, sort the
> data storage array etc, delete data where keys match a certain pattern
> etc. The example is more meant to illustrate the general structure of
> a Lua Pd class than as a real object to use.
> Ciao
frank this is great! - thanks so much - i'll have a proper look at it 
and let you know how i get on with it.
i know i really need to learn some programming outside pd - i just never 
know where to start - so many choices! - maybe i will just get stuck 
into this lua/python stuff
rob c

More information about the Pd-list mailing list