Hi ! I’m trying to write my first external, and have studied the externals-howto. I understand, for example how the pan~ example works (I think, I'm a noob in C), but in my case I'm confused:
I want to implement a recursive algorithm, I need to copy the inlet vector into an array A perform some operations, copy the restult in array B, swap arrays, and start over again several times until I can finaly copy one of the arrays into the outlet vector.
How do I have to treat these arrays in the code?  should they be of type t_sample?
In the perform section should I treat them as the inlets and outlets?
t_int *foo_perform(t_int *w)
{
  t_sample  *in =    (t_sample *)(w[1]);
  t_sample  *out =    (t_sample *)(w[2]);
  t_sample  *a =    (t_sample *)(w[3]);
  t_sample  *b =    (t_sample *)(w[4]);
  int          n =           (int)(w[5]);
 
					 
									 
									