[PD] counter

Roman Haefeli reduzierer at yahoo.de
Mon Oct 13 15:04:45 CEST 2008

On Mon, 2008-10-13 at 14:48 +0200, chi ball wrote:
> Hi,
> I've just installed pd 0.41.0 on Mandriva 2008 Spring.
> Why [counter] in not active?
> Thank's
> c

[counter] is a class provided by several libraries, but not by plain pd.
all versions of [counter] should be included in pd-extended, though.

i wouldn't recommend to use [counter], since all available versions
slightly differ from each other. it's likely, that your patches using
[counter] will break in case you change the order of loading the
libraries (or change to another pd-extended version etc) . also it's
something, that could be easily implemented with a handful of vanilla

[f ]X[+ 1]   this is the simplest idiom of a counter 

this is only an example. the advantages of creating your own
[your_counter] are:

- it will work consistently on every pd installation
- it doesn't require any externals
- you can make it to perfectly match your particular needs

there has been much discussion about counters on this list, just in case
you would like to read different opinions on this topic as well.
personally, i never have felt the need for a [counter] class.

* sorry, if i sounded too didactic *


Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

More information about the Pd-list mailing list