[PD] How to acquire the block size?

Georg Holzmann grhPD at gmx.at
Thu Mar 17 12:07:44 CET 2005


> I've been learning how to program externals for pd for some time now. 
> However, I've been wondering if there is a way to acquire the block size 
> inside the external  e.g. inside my_obj_new()?

you get it in the perform routine: 
http://pd.iem.at/externals-HOWTO/node6.html :

t_int *pan_tilde_perform(t_int *w)
   t_pan_tilde *x = (t_pan_tilde *)(w[1]);
   t_sample  *in1 =    (t_sample *)(w[2]);
   t_sample  *in2 =    (t_sample *)(w[3]);
   t_sample  *out =    (t_sample *)(w[4]);
   int          n =           (int)(w[5])  // block size


More information about the Pd-list mailing list