[PD] outlets with lists

ix at replic.net ix at replic.net
Fri Apr 8 16:47:10 CEST 2005


On Fri, Apr 08, 2005 at 10:34:45AM -0400, B. Bogart wrote:
> Depending on what you are doing I would suggest flext for most uses, the
> API is cleaner, has more helper functions and is easier to learn that
> native PD externals.
> 
> you can look at the source for "pso" which outputs complex lists and has
> multiple outlets. in externals/bbogart/externals (uses flext).
> 
> off hand I can't remember how to output lists in native externals,
> output_list?
> 

     t_atom at[5];

     SETFLOAT(at,-a1/a0);
     SETFLOAT(at+1,-a2/a0);
     SETFLOAT(at+2,b0/a0);
     SETFLOAT(at+3,b1/a0);
     SETFLOAT(at+4,b2/a0);

     outlet_list(x->x_obj.ob_outlet,&s_list,5,at);


> B.
> 
> 
> 
> Florian Grond wrote:
> >Dear List,
> >
> >I' ve managed to program simple objects for pd so far where inlets and
> >outlets were only scalars. But the amount of numbers I want to send out
> >increased and  it makes no sense to have for everything an outlet:
> >
> >Could anybody briefly tell me how to output a list through an outlet,
> >say a list, containing three floats.
> >
> >
> >In particular, how to I have to change these lines?
> >
> >x->list_out = outlet_new(&x->x_obj, &s_???????????????);
> >
> >outlet_???????(x->list_out, x->???????????);
> >
> >A quick reply would be very appreciated,
> >
> >Thanks,
> >
> >Florian
> >
> >_______________________________________________
> >PD-list at iem.at mailing list
> >UNSUBSCRIBE and account-management ->
> >http://lists.puredata.info/listinfo/pd-list
> >



> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list