[PD] first exercise with data structures
Roman Haefeli
reduzent at gmail.com
Mon Jun 3 00:57:31 CEST 2013
Hey all
Thanks again for this thread. For those interested I attached a little
sequencer abstraction I made with data structures based on some concept
I learned here.
Roman
On Die, 2013-05-28 at 16:35 +0200, Roman Haefeli wrote:
> On Die, 2013-05-28 at 11:25 +0200, João Pais wrote:
> > > Probably this has already been covered as a limitation and may I haven't
> > > really understood it. There is one thing troubling me at the moment.
> > > From what I can see, you can easily get data out of your data structure.
> > > And for what I am trying, editing data manually/per GUI is quite easy.
> > > But how to set data programmatically, i.e. by message? As you can only
> > > change a certain scalar by setting a pointer to it, the only way I see
> > > is to traverse all scalars until you find the one you want to change. Is
> > > this currently the only way to change a property of a particular scalar?
> >
> > yes, you can only get or set data if you point to the relevant scalar.
> > clicking allows you to get a pointer (for any method you want), but if you
> > do everything with the program, you need to traverse until you get it
> > right.
> > for that I usually create an identifier (number, symbol, whatever) that I
> > use to confirm if I have the correct reference before editing it. the
> > method was explained in a previous mail.
> > I guess the way you get the relevant pointer will vary on the program,
> > difference contexts have different needs.
>
> Yeah, it depends on the data. I'm currently working with a rectangular
> grid of scalars and I figured I can easily translate the scalar's
> coordinates to the right number of 'next' messages in order to move the
> pointer to the desired scalar.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ungrid.zip
Type: application/zip
Size: 5892 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130603/dcb6180f/attachment.zip>
More information about the Pd-list
mailing list