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
|#