Tcl objects for Pure Data

This page is set up for people who want to know more about Tcl objects for Pure Data. It assumes some knowledge of both, and focusses on the combination. The starting point for generic Pure Data knowledge is http://puredata.info/. For Tcl, http://www.tcl.tk/ is a good starting point.

As I could not find much text on tclPd other than the examples, here a short primer on what I found out sofar. The examples are in the Pd Help Browser > tclpd/examples. Another source is the tclpd.tcl script at .../pd-extended/extra/tclpd.tcl. From this file comes most information in the TclPd API text.

Tcl/Tk is the base of the graphical part of Pure Data. But with recent versions of Pd, it can also be used to make real objects. Being a data flow programming language, its capabilities are different than the more common imperative languages. These can be overcome with objects, usually written in c, but programming higher level concepts in c like string handling or collections, is not simple. Scripting languages like Lua and Tcl fill a gap here.

Being interpreted, these objects are of course not as efficient as c, or even the equivalent patch in Pd-objects. But they can be simpler, and easier to understand if the hurdle of learning the language is overcome.

Tcl based objects are only for control messages, it is not fast enough for signal handling.

This page only handles Tcl as objects. It does not apply to Tcl/Tk extensions to the Pure Data menu structure.

This is a (hopefully growing) collection of objects programmed in Tcl.

Other sources:

The ubiquious Hello World! variant in TclPd. It prints its text in a symbol box and the Pd console.

Latest update: 2014-01-11

email: fjkraan@xs4all.nl