Re: [PD-dev] How to construct a dynamic length list in PD external?

2009-03-22 Thread Mike McGonagle
Why not just create a binbuf object, append all the atoms to it, and then extract the length and atoms vector... t_atom a; t_binbuf b = binbuf_new(); while(more_data) { SETSYMBOL(&a, camera_data); binbuf_add(b, 1, &a); } outlet_anything(x -> x_obj.ob_outlet, &s_list, binbuf_getnatom(b), binb

Re: [PD-dev] How to construct a dynamic length list in PD external?

2009-03-21 Thread Mathieu Bouchard
On Sat, 21 Mar 2009, Claude Heiland-Allen wrote: B. Bogart wrote: I have a nested for loop that grabs the config options from the PTP camera. The length depends on the camera and its mode. choice 1 (if maximum length is known): choice 2 (if maximum length is not known): choice 3 (an alternative

Re: [PD-dev] How to construct a dynamic length list in PD external?

2009-03-20 Thread Claude Heiland-Allen
B. Bogart wrote: Hey all, I searched the archives and looked at some of the code in SVN, but I'm still unsure how to do this. I have a nested for loop that grabs the config options from the PTP camera. The length depends on the camera and its mode. How can I append each name to a list suitable

[PD-dev] How to construct a dynamic length list in PD external?

2009-03-20 Thread B. Bogart
Hey all, I searched the archives and looked at some of the code in SVN, but I'm still unsure how to do this. I have a nested for loop that grabs the config options from the PTP camera. The length depends on the camera and its mode. How can I append each name to a list suitable to be used by outl