Oops, I mixed up the tabwrite inlets in that last example. -Jonathan
--- On Thu, 1/29/09, Miller Puckette <mpuck...@imusic1.ucsd.edu> wrote: > From: Miller Puckette <mpuck...@imusic1.ucsd.edu> > Subject: Re: [PD] Pointer to array > To: "Hans-Christoph Steiner" <h...@eds.org> > Cc: jancs...@yahoo.com, pd-list@iem.at > Date: Thursday, January 29, 2009, 4:59 AM > I'm intending to figure out a way to > "pointerise" named arrays but > haven't got the design worked out yet. (Also, I'm > hoping to allow the > other sort of arrays to get used by the "tab" > objects - I thing that would be > quite powerful. > > cheers > Miller > > On Wed, Jan 28, 2009 at 10:01:54PM -0500, Hans-Christoph > Steiner wrote: > > > > tabread, tabplay~, etc. gives you something that acts > like a pointer. > > > > .hc > > > > On Jan 28, 2009, at 5:47 PM, Jonathan Wilkes wrote: > > > > > Is it possible to get a pointer to arrays > created by the "put" > > > menu or [table] object? > > > > > > -Jonathan > > > > > > > > > > > > > > > _______________________________________________ > > > Pd-list@iem.at mailing list > > > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > > > > > > > ---------------------------------------------------------------------------- > > > > Access to computers should be unlimited and total. - > the hacker ethic > > > > > > > > _______________________________________________ > > Pd-list@iem.at mailing list > > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list
#N canvas 0 0 450 300 12; #N canvas 0 0 1004 682 example 0; #X obj 46 72 route element; #X obj 46 122 unpack p f; #X obj 46 171 t a a; #X obj 46 248 tabwrite proxy-array; #X obj 46 147 swap; #X obj 46 17 struct example float x float y array my_array my_element ; #X obj 46 197 element example my_array; #X obj 46 222 get my_element y; #X obj 46 97 route change; #X text 35 41 dragging the 1st element outputs: element change (pointer) 0; #X connect 0 0 8 0; #X connect 1 0 4 0; #X connect 1 1 4 1; #X connect 2 0 6 0; #X connect 2 1 3 1; #X connect 4 0 2 0; #X connect 4 1 6 1; #X connect 5 0 0 0; #X connect 6 0 7 0; #X connect 7 0 3 0; #X connect 8 0 1 0; #X restore 7 5 pd example; #N canvas 0 0 281 97 my_element 0; #X obj 16 12 struct my_element float y; #X restore 6 31 pd my_element; #X obj 180 121 table proxy-array; #X obj 6 121 tabread4~ proxy-array;
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list