okay, Thanks, Frank I'll route these questions to the right list, from now on (except this message). and I think I uderstand how this will work now.... in this example: static void *route_new(t_symbol *s, int argc, t_atom *argv)
int argc is the count of the number of arguments, and t_atom *argv must be the vector of arguments themselves. (this I'm inferring from seeing it in code) I still don't get what t_symbol *s is for, yet. Thanks, Chuck
On 12/3/06, Frank Barknecht fbar@footils.org wrote:
Hallo, Charles Henry hat gesagt: // Charles Henry wrote:
I can't remember how to pass multiple arguments to an external. I need to pass any number of float arguments. I think it goes something like void external_tilde_new(float *f_args, float num_args)
I've been searching thru the cvs repo to see if I can find an example, but I haven't found one yet. Any suggestions?
One suggestion first: These kinds of question (basically everything with C-code in it) are much more on-topic on the pd-dev list, and not so much on this list here.
To answer your question: You may want to search differently. Just try to think of one of the objects which accept more than one argument. [route] or [pack] or [dac~] come to my mind. route's code is in Pd in x_connective.c
E.g. route is created with:
static void *route_new(t_symbol *s, int argc, t_atom *argv) ...
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list