[PD] an arbitrary number of inlets - proxy?
fredrikolofsson at mac.com
Thu May 10 21:31:57 CEST 2001
say i create an arbitrary number of in/outlets with something like...
for (i = 0; i < arg; i++)
x->x_outlet[i] = outlet_new(&x->x_ob, &s_float);
sprintf(tempStr, "ft%d", i);
inlet_new(&x->x_ob, &x->x_ob.ob_pd, &s_float, gensym(tempStr));
how can i avoid writing an unknown number of methods (i.e. one for
each inlet) and instead having one function that handles all inlets
with some kind of index attached to each message? what i'm looking
for is something like proxy_new() in max, which i belive is lacking
in pd - right?
Fredrik Olofsson http://olofsson.da.ru
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-list