[PD-dev] outlet_list (this one)
Mathieu Bouchard
matju at artengine.ca
Mon Aug 22 11:05:16 CEST 2005
(wow, no answer to this one after 5 days. i'll answer it then)
On Wed, 17 Aug 2005, Ed Kelly wrote:
> /* to set up the list */
> float parcors[ord];
This is wrong. A Pd list is made of Pd atoms. So you should write:
t_atom parcors[ord];
And then you would initialize those atoms using code like this:
for (i=0; i<ord; i++) SETFLOAT(parcors+i, 1.618034);
> /* to outlet the list */
> outlet_list(x->x_obj.ob_outlet,gensym("list"),ord,parcors);
> and then I get the following from the compiler:
> warning: passing arg 4 of `outlet_list' from
> incompatible pointer type
Then the above line won't cause a warning because argument 4 will be a
t_atom* as it's supposed to be (see m_pd.h).
> ->
> -->
> ---->
> ------->
> ------------>
> --------------------> r3search + praktik EK5perimenz
I like how the lengths of those arrows are 2,3,5,8,13,21. It's so
Fibonacci.
____________________________________________________________________
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
Freelance Digital Arts Engineer, Montréal QC Canada
More information about the Pd-dev
mailing list