[PD-dev] spliting pmpd to sigle file

Frank Barknecht fbar at footils.org
Sun Jun 18 22:08:32 CEST 2006


Hallo,
cyrille henry hat gesagt: // cyrille henry wrote:

> hello,
> 
> Frank Barknecht a écrit :
> >Hallo,
> >cyrille henry hat gesagt: // cyrille henry wrote:
> >
> >>the only problem i've got is that the old french name (masse / lia ...) 
> >>does not work anymore.
> >
> >What about doing wrappers as abstractions? 
> >
> 
> look like possible, but i'm not sure :
> link $1 $2 $3 $4 $5 -> link 0 0 0 0 0 will be the same as link without 
> argument.
> (argument number is important).

Oh, yes, that looks tricky. Maybe one could do with creating an object
using dynamice messages and IEMlib's [dollarg], but that might be
overkill. 

Do the new single files still respond to the old alternate names? Then
I think, one could still create a [lia] as soon, as the first [link]
was created or if link.pd_linux was preloaded with -lib.

> cyrille
> a small scrip that replace lia to link is the best solution i think.

Here's a little perl one-liner for this: 

$ perl -pi.bak -e 's/^(#X obj \d+ \d+) OLD_NAME\b/$1 NEW_NAME/' *.pd

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




More information about the Pd-dev mailing list