[PD] an arbitrary number of inlets - proxy?
Fredrik Olofsson
fredrikolofsson at mac.com
Thu May 10 21:31:57 CEST 2001
hello
i'm stuck.
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);
if (i)
{
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
--
#|
Fredrik Olofsson http://olofsson.da.ru
|#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20010510/a0f82411/attachment.htm>
More information about the Pd-list
mailing list