There are two new, easy ways to write objects for Pd: tclpd by Federico Ferri and pdlua by Claude Heiland-Allen, Frank Barknecht and Martin Peach. Both are now included in Pd-extended 0.43 and are automatically loaded at startup. That means you can write a script in Lua or Tcl and have that script be a true object in Pd. Both pdlua and tclpd provide the large majority of the Pd externals API, and you can even write GUI objects using tclpd.
Tcl and Lua both excel at handling strings, one thing that Pd is not the best at, so if you have a project that needs to parse or manage a lot of strings, then you have a new approach.
There are some other ways of using other languages to write objects for Pd: pyext for Python and pdj for Java. These two are different in a key way than pdlua and tclpd. pyext and pdj allow you to load scripts into an object called [pyext] or [pdj]. tclpd and pdlua let you create full Pd objects that are completely transparent to the user. You create an object written in tclpd or pdlua just like any other Pd object, and those objects can have their own help patch too.
Both pdlua and tclpd come with a lot of examples, go to the Help Browser and find them in the list of libraries there. I also started writing the 'tclfile' library to bring the Tcl file API to Pd:
http://puredata.info/downloads/tclfile
.hc _______________________________________________ Pd-announce mailing list Pd-announce@iem.at http://lists.puredata.info/listinfo/pd-announce
I'm thinking about using lua to build an interpreter for my Click Tracker
(http://code.google.com/p/clicktracker/), so it's great that this is
working. Can you recomend any good lua tutorial? That would be a good
resource to have in the documentation, I guess (same goes for a tcl
tutorial).
There are two new, easy ways to write objects for Pd: tclpd by Federico
Ferri and pdlua by Claude Heiland-Allen, Frank Barknecht and Martin
Peach. Both are now included in Pd-extended 0.43 and are automatically
loaded at startup. That means you can write a script in Lua or Tcl and
have that script be a true object in Pd. Both pdlua and tclpd provide
the large majority of the Pd externals API, and you can even write GUI
objects using tclpd.Tcl and Lua both excel at handling strings, one thing that Pd is not the
best at, so if you have a project that needs to parse or manage a lot of
strings, then you have a new approach.There are some other ways of using other languages to write objects for
Pd: pyext for Python and pdj for Java. These two are different in a key
way than pdlua and tclpd. pyext and pdj allow you to load scripts into
an object called [pyext] or [pdj]. tclpd and pdlua let you create full
Pd objects that are completely transparent to the user. You create an
object written in tclpd or pdlua just like any other Pd object, and
those objects can have their own help patch too.Both pdlua and tclpd come with a lot of examples, go to the Help Browser
and find them in the list of libraries there. I also started writing
the 'tclfile' library to bring the Tcl file API to Pd:http://puredata.info/downloads/tclfile
.hc _______________________________________________ Pd-announce mailing list Pd-announce@iem.at http://lists.puredata.info/listinfo/pd-announce
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
On Mon, Feb 27, 2012 at 12:54:23PM +0100, João Pais wrote:
I'm thinking about using lua to build an interpreter for my Click Tracker (http://code.google.com/p/clicktracker/), so it's great that this is
working. Can you recomend any good lua tutorial?
Take the blue PIL! http://www.lua.org/pil/
For starters the online 1st edition is fine, but I still recommend to buy the second edition: The PIL is one of the best books on programming in general in my opinion, and you will probably learn a lot that you can use in other languages as well.
Frank Barknecht Do You RjDj.me? _ ______footils.org__
On Sun, 2012-02-26 at 20:15 -0500, Hans-Christoph Steiner wrote:
There are two new, easy ways to write objects for Pd: tclpd by Federico Ferri and pdlua by Claude Heiland-Allen, Frank Barknecht and Martin Peach. Both are now included in Pd-extended 0.43 and are automatically loaded at startup. That means you can write a script in Lua or Tcl and have that script be a true object in Pd. Both pdlua and tclpd provide the large majority of the Pd externals API, and you can even write GUI objects using tclpd.
That's nice! Many thanks to everyone involved.
Roman
On Mon, Feb 27, 2012 at 02:15, Hans-Christoph Steiner hans@at.or.at wrote:
There are two new, easy ways to write objects for Pd: tclpd by Federico Ferri and pdlua by Claude Heiland-Allen, Frank Barknecht and Martin Peach. Both are now included in Pd-extended 0.43 and are automatically loaded at startup. [...]
I was so excited to try tclpd, that even though pd 0.43 happens not to work under my user account, I gave it a go under another account. Let me share my not so merry experience, and sorry if it goes beyond tclpd itself.
So this a user account that never ran pd-extended, although it (latest autobuild) is already installed on the machine (Ubuntu Lucid).
I start a new patch and try to create [tclpd], i get this error:
maximum object loading depth 1000 reached tclpd ... couldn't create
I quit so I can add tclpd to the preferences file, but I find there is no .pdextended file.
I go to preferences, it lets me add the path to tclpd, I click Apply, OK. As we, the well-connected know it now, this has no practical effect - except that it seems that on quit, a new default .pdextended is created - with no reference to tclpd however.
I open .pdextended in a text editor and add tclpd to the only list there is: 'loadlib'.
I go back to pd, [tclpd] still won't create.
Back to text editor, copy-paste 'path' section of another user's .pdextended into this one, add tclpd.
Back to pd, [tclpd] still won't create.
This is where I am now. Please tell me if I'm doing anything wrong and/or if I shall file any of this as a bug.
Thanks,
András
On 02/27/2012 03:39 PM, András Murányi wrote:
On Mon, Feb 27, 2012 at 02:15, Hans-Christoph Steiner <hans@at.or.at mailto:hans@at.or.at> wrote:
There are two new, easy ways to write objects for Pd: tclpd by Federico Ferri and pdlua by Claude Heiland-Allen, Frank Barknecht and Martin Peach. Both are now included in Pd-extended 0.43 and are automatically loaded at startup. [...]
I was so excited to try tclpd, that even though pd 0.43 happens not to work under my user account, I gave it a go under another account. Let me share my not so merry experience, and sorry if it goes beyond tclpd itself.
So this a user account that never ran pd-extended, although it (latest autobuild) is already installed on the machine (Ubuntu Lucid).
I start a new patch and try to create [tclpd], i get this error:
maximum object loading depth 1000 reached tclpd ... couldn't create
I quit so I can add tclpd to the preferences file, but I find there is no .pdextended file.
I go to preferences, it lets me add the path to tclpd, I click Apply, OK. As we, the well-connected know it now, this has no practical effect - except that it seems that on quit, a new default .pdextended is created - with no reference to tclpd however.
I open .pdextended in a text editor and add tclpd to the only list there is: 'loadlib'.
I go back to pd, [tclpd] still won't create.
Back to text editor, copy-paste 'path' section of another user's .pdextended into this one, add tclpd.
Back to pd, [tclpd] still won't create.
This is where I am now. Please tell me if I'm doing anything wrong and/or if I shall file any of this as a bug.
There is no [tclpd] object as far as I know. tclpd is a "loader" library that is loaded automatically at start by the new 'startup' mechanism in Pd-extended 0.43. To use it, try out one of the examples in the Help Browser -> tclpd -> examples. Or try downloading the 'tclfile' library and dropping it into ~/pd-externals. You can see the Tcl script that made the open by right-clicking and selecting Open.
.hc
On Mon, Feb 27, 2012 at 21:52, Hans-Christoph Steiner hans@at.or.at wrote:
On 02/27/2012 03:39 PM, András Murányi wrote:
On Mon, Feb 27, 2012 at 02:15, Hans-Christoph Steiner hans@at.or.atwrote:
There are two new, easy ways to write objects for Pd: tclpd by Federico Ferri and pdlua by Claude Heiland-Allen, Frank Barknecht and Martin Peach. Both are now included in Pd-extended 0.43 and are automatically loaded at startup. [...]
I was so excited to try tclpd, that even though pd 0.43 happens not to work under my user account, I gave it a go under another account. Let me share my not so merry experience, and sorry if it goes beyond tclpd itself.
So this a user account that never ran pd-extended, although it (latest autobuild) is already installed on the machine (Ubuntu Lucid).
I start a new patch and try to create [tclpd], i get this error:
maximum object loading depth 1000 reached tclpd ... couldn't create
I quit so I can add tclpd to the preferences file, but I find there is no .pdextended file.
I go to preferences, it lets me add the path to tclpd, I click Apply, OK. As we, the well-connected know it now, this has no practical effect - except that it seems that on quit, a new default .pdextended is created - with no reference to tclpd however.
I open .pdextended in a text editor and add tclpd to the only list there is: 'loadlib'.
I go back to pd, [tclpd] still won't create.
Back to text editor, copy-paste 'path' section of another user's .pdextended into this one, add tclpd.
Back to pd, [tclpd] still won't create.
This is where I am now. Please tell me if I'm doing anything wrong and/or if I shall file any of this as a bug.
There is no [tclpd] object as far as I know. tclpd is a "loader" library that is loaded automatically at start by the new 'startup' mechanism in Pd-extended 0.43. To use it, try out one of the examples in the Help Browser -> tclpd -> examples. Or try downloading the 'tclfile' library and dropping it into ~/pd-externals. You can see the Tcl script that made the open by right-clicking and selecting Open.
.hc
:o) I imagined something like [widget]... for no good reason then.
András
pdlua and tclpd.
coooolllllll......
Pd: pyext for Python
any chance for this in extended? there was some issue on the list about this a while ago no? but i have forgot. unless im just having a flashback.
m
On Sun, Feb 26, 2012 at 8:15 PM, Hans-Christoph Steiner hans@at.or.at wrote:
There are two new, easy ways to write objects for Pd: tclpd by Federico Ferri and pdlua by Claude Heiland-Allen, Frank Barknecht and Martin Peach. Both are now included in Pd-extended 0.43 and are automatically loaded at startup. That means you can write a script in Lua or Tcl and have that script be a true object in Pd. Both pdlua and tclpd provide the large majority of the Pd externals API, and you can even write GUI objects using tclpd.
Tcl and Lua both excel at handling strings, one thing that Pd is not the best at, so if you have a project that needs to parse or manage a lot of strings, then you have a new approach.
There are some other ways of using other languages to write objects for Pd: pyext for Python and pdj for Java. These two are different in a key way than pdlua and tclpd. pyext and pdj allow you to load scripts into an object called [pyext] or [pdj]. tclpd and pdlua let you create full Pd objects that are completely transparent to the user. You create an object written in tclpd or pdlua just like any other Pd object, and those objects can have their own help patch too.
Both pdlua and tclpd come with a lot of examples, go to the Help Browser and find them in the list of libraries there. I also started writing the 'tclfile' library to bring the Tcl file API to Pd:
http://puredata.info/downloads/tclfile
.hc _______________________________________________ Pd-announce mailing list Pd-announce@iem.at http://lists.puredata.info/listinfo/pd-announce
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Mon, Feb 27, 2012, at 16:07, m.e.grimm wrote:
pdlua and tclpd.
coooolllllll......
Pd: pyext for Python
any chance for this in extended? there was some issue on the list about this a while ago no? but i have forgot. unless im just having a flashback.
So far, no one ever wanted to get flext building everywhere. Its just a matter of someone doing the work:
http://puredata.info/docs/developer/GettingIntoPdextended
.hc
On Sun, Feb 26, 2012 at 8:15 PM, Hans-Christoph Steiner hans@at.or.at wrote:
There are two new, easy ways to write objects for Pd: tclpd by Federico Ferri and pdlua by Claude Heiland-Allen, Frank Barknecht and Martin Peach. Both are now included in Pd-extended 0.43 and are automatically loaded at startup. That means you can write a script in Lua or Tcl and have that script be a true object in Pd. Both pdlua and tclpd provide the large majority of the Pd externals API, and you can even write GUI objects using tclpd.
Tcl and Lua both excel at handling strings, one thing that Pd is not the best at, so if you have a project that needs to parse or manage a lot of strings, then you have a new approach.
There are some other ways of using other languages to write objects for Pd: pyext for Python and pdj for Java. These two are different in a key way than pdlua and tclpd. pyext and pdj allow you to load scripts into an object called [pyext] or [pdj]. tclpd and pdlua let you create full Pd objects that are completely transparent to the user. You create an object written in tclpd or pdlua just like any other Pd object, and those objects can have their own help patch too.
Both pdlua and tclpd come with a lot of examples, go to the Help Browser and find them in the list of libraries there. I also started writing the 'tclfile' library to bring the Tcl file API to Pd:
http://puredata.info/downloads/tclfile
.hc _______________________________________________ Pd-announce mailing list Pd-announce@iem.at http://lists.puredata.info/listinfo/pd-announce
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- ____________________ m.e.grimm | m.f.a | ed.m. megrimm@gmail.com _________________________________
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list