[PD] automated route initializing

Frank Barknecht fbar at footils.org
Fri Dec 19 19:58:21 CET 2003


Hallo,
noskule hat gesagt: // noskule wrote:

> i have a route object witch sould be initialized be a singe subpatch 
> argument.. .. . means i give a id
> "id_" and the patch makes a route object like this. . .
> [ route id_1 id_2 id_3 id_4 id_5 id_6 id_7 id_8 ]

This works, but I'm not sure if it is qhat you'd want:

[route $1_1 $1_2 $1_3 $1_4 ...]

Call it with "id" as argument.

If you don't know the route-count, you could use Pd internal messages
to create a chain of routes:

[route id_1]
           |
           [route id_2]
                      | 
                      [route id_3]
                      ...

You could create this by using messages like:

[
;
pd-subarea  obj 0 148 route id_1 ;
pd-subarea  obj 80 148 route id_2 ;
pd-subarea connect 0 1 1 0 ;
(

or similar. This requires a bit of fiddling, though. Probably there
are better ways.

ciao
-- 
 Frank Barknecht                               _ ______footils.org__




More information about the Pd-list mailing list