[PD] Data structures - delete specific scalar?

2018-05-18 Thread Roman Haefeli
Hey all Following up a thread from 2011: https://lists.puredata.info/pipermail/pd-list/2011-04/088306.html I would like to know whether it is impossible to delete a specific scalar, by pointer. If so, why is that? Does it use a design that makes it difficult to allow this? To my untrained eye the

Re: [PD] Data structures - delete specific scalar?

2018-05-18 Thread Ingo Stock
Hi Roman, to my knowledge it is not possible to delete a single scalar. The method to get rid of a scalar is to clear the subpatch and recreate everything. best wishes, ingo On 05/18/2018 11:36 PM, Roman Haefeli wrote: > Hey all > > Following up a thread from 2011: > https://lists.puredata.inf

Re: [PD] Data structures - delete specific scalar?

2018-05-19 Thread Roman Haefeli
On Sat, 2018-05-19 at 00:02 +0200, Ingo Stock wrote: > to my knowledge it is not possible to delete a single scalar. Thanks for the confirmation. I'm also wondering whether this will always be like this or if it would be a trivial feature to add. > The method > to get rid of a scalar is to clear

Re: [PD] Data structures - delete specific scalar?

2018-05-19 Thread Ingo Stock
On 05/19/2018 11:56 AM, Roman Haefeli wrote: > Yeah. It's not very elegant and gets expensive pretty quickly. I was > wondering about alternative strategies, like moving non-used scalars > out-of-the-way and later re-use them. It's cumbersome to implement, but > probably less drastic than the clear

Re: [PD] Data structures - delete specific scalar?

2018-05-19 Thread Alexandre Torres Porres
2018-05-19 6:56 GMT-03:00 Roman Haefeli : > On Sat, 2018-05-19 at 00:02 +0200, Ingo Stock wrote: > > to my knowledge it is not possible to delete a single scalar. > > Thanks for the confirmation. I'm also wondering whether this will > always be like this or if it would be a trivial feature to add.

Re: [PD] Data structures - delete specific scalar?

2018-05-19 Thread Roman Haefeli
On Sat, 2018-05-19 at 17:00 +0200, Ingo Stock wrote: > On 05/19/2018 11:56 AM, Roman Haefeli wrote: > > Yeah. It's not very elegant and gets expensive pretty quickly. I > > was > > wondering about alternative strategies, like moving non-used > > scalars > > out-of-the-way and later re-use them. It'

Re: [PD] Data structures - delete specific scalar?

2018-05-19 Thread Ingo Stock
Thanks for your testing! The lag appears on my computer already with the patch i sent with the 1050 scalars. It shows when i open the patch, create any object, say a [float] and try to move it around. With more scalars it can become even worse. You can test it with the attached patch. First selec

Re: [PD] Data structures - delete specific scalar?

2018-05-20 Thread Derek Kwan
Roman Haefeli writes: > Hey all > > Following up a thread from 2011: > https://lists.puredata.info/pipermail/pd-list/2011-04/088306.html > > I would like to know whether it is impossible to delete a specific > scalar, by pointer. If so, why is that? Does it use a design that makes > it difficult

Re: [PD] Data structures - delete specific scalar?

2018-05-20 Thread Christof Ressi
an" > An: "Roman Haefeli" , pd-list@lists.iem.at > Betreff: Re: [PD] Data structures - delete specific scalar? > > Roman Haefeli writes: > > > Hey all > > > > Following up a thread from 2011: > > https://lists.puredata.info/pipermail/pd-list/2011

Re: [PD] Data structures - delete specific scalar?

2018-05-20 Thread João Pais
as I recall, in a mail Miller said that it wasn't easy to implement a "delete" (or "previous" etc.) methods, because it would mix up the pointer structures. But most likely I'm remembering incorrectly. The lag with scalars is a real thing, as with any other canvas with lots of gui objects r

Re: [PD] Data structures - delete specific scalar?

2018-05-20 Thread João Pais
Just thought of this after sending the previous mail. I can't try this hack, but it might work. To delete a scalar: - get the scalar's x/y coordinates - use mouse messages to select and delete anything over that pixel. Drawbacks: - will delete anything else over that pixel (affects the selectab

Re: [PD] Data structures - delete specific scalar?

2018-05-20 Thread Christof Ressi
ly tool is a hammer then every problem looks like a nail". > Gesendet: Sonntag, 20. Mai 2018 um 15:44 Uhr > Von: "João Pais" > An: pd-list@lists.iem.at, "Ingo Stock" > Betreff: Re: [PD] Data structures - delete specific scalar? > > Just thought o

Re: [PD] Data structures - delete specific scalar?

2018-05-20 Thread Alexandre Torres Porres
2018-05-20 10:31 GMT-03:00 Christof Ressi : > > * [delete( message for [pointer]: deletes the scalar of the currently > stored pointer. > +1 ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo

Re: [PD] Data structures - delete specific scalar?

2018-05-21 Thread Roman Haefeli
On Sun, 2018-05-20 at 05:40 -0700, Derek Kwan wrote: > Roman Haefeli writes: > > > Hey all > > > > Following up a thread from 2011: > > https://lists.puredata.info/pipermail/pd-list/2011-04/088306.html > If I'm not mistaken, this relates to a thread I started in Jan 2017 > and > I think this bi

Re: [PD] Data structures - delete specific scalar?

2018-05-21 Thread Roman Haefeli
On Sun, 2018-05-20 at 15:31 +0200, Christof Ressi wrote: > this has been on my wish list for a while and I want to do a PR. do > you guys have suggestions which kind of interface you would prefer? > these come to my mind: > * [delete] object: send it a pointer and it will delete the scalar I thoug