[PD] $0 infix...

Frank Barknecht fbar at footils.org
Thu Jun 29 18:02:11 CEST 2006


Hallo,
Nicolas Montgermont hat gesagt: // Nicolas Montgermont wrote:

> A way to do that is to bang this sequence:
> 
> [f $0]
> |
> [makefilename pd-%d-somedata]
> |
> [traverse $1(

Btw: In the next version of Pd (current MAIN in CVS) it seems, that
you will be able to use $-variables *inside* of a symbol, if that
symbol starts with a $-variable. This won't help with $0 in messages,
as there still is no $0 in messages, but you could get rid of the
makefilename then and use: 
  
  [f $0]
  |        
  [list prepend pd]
  |
  [traverse $1-$2-subpatch(

In this case, this is more complicated than makefilename, but for
other uses it can be quite handy.

But be warned: Because current MAIN has a nasty bug with $-variables
in subpatch names one should avoid this version in production mode
currently. [pd $0-name] will be saved as [pd 0-name] at the moment.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-list mailing list