Re: [PD] Data Structures - Delete specific scalar?

2011-04-28 Thread João Pais

Hi,

I looked at your sequencer. I didn't play around with it, but I wonder if  
you are better off using an array instead of X scalars? As I suggested  
before, you can use a variable to decide if the data is active or not,  
it's not really necessary to erase it from the patch. Also on the  
graphical side, it should be possible to hide individual array elements  
using the -v command (or not? I didn't try yet, but it works with  
individual scalars).


João


Is there any message based way to delete a scalar?

As I presume what people usually do is select the graphic in the  
datawindow and

delete it this way. I need to do this without the graphical selection.

I'm currently using data structures just as a multi-dimensional storage  
object

(the graphical side doesn't concern me). I've developed [data/drip] and
[data/filter] patches akin to [list-drip] and [list-filter]. I'm now  
looking to
create an object where I can remove specific scalars based on whether or  
not

their value fields match a certain condition (via [data/filter]).


Thanks in advance as always,
John.


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management ->  
http://lists.puredata.info/listinfo/pd-list



--
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
Studio +49 30 69509190
jmmmp...@googlemail.com | skype: jmmmpjmmmp

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Data Structures - Delete specific scalar?

2011-04-23 Thread JF
Thanks João,

I'm looking into a brute force workaround whereupon I drip the data structure 
and copy it to a buffer structure but with the scalars that I want to delete 
filtered out - then I clone this buffer back to the original thus deleting 
certain scalars. This should work for my needs.

Also as an aside, I'm just reading Frank's data structure tutorial patches (I'm 
a beginner to this topic!). I really think that these should be added to the 
official vanilla documentation.

Cheers, John.



- Original Message 
> From: João Pais 
> To: JF 
> Sent: Sat, 23 April, 2011 1:38:27
> Subject: Re: [PD] Data Structures - Delete specific scalar?
> 
> unfortunately, that and many other basic things aren't possible with data-s 
>yet.  there are a couple ways you could use to circumvent this limitation:
> 
> -  use a field for active or unactive scalars, and set them to 0 or 1. then 
>connect  them to a spigot or similar, so that the other fields don't go 
>through 
>the rest  of the patch. You can also connect this to the -v (?) field, to make 
>this scalar  invisible.
> - if you want to be radical, get the coordinates of your scalar,  and using 
>pd-messages, emulate the mouse's behaviour of going to edit mode,  selecting 
>the 
>scalar and deleting it.
> 
> Or write the st. puckette and tell  him about putting this in.
> 
> João Pais
> 
> > Is there any message  based way to delete a scalar?
> > 
> > As I presume what people usually  do is select the graphic in the 
> > datawindow 
>and
> > delete it this way. I  need to do this without the graphical selection.
> > 
> > I'm currently  using data structures just as a multi-dimensional storage 
>object
> > (the  graphical side doesn't concern me). I've developed [data/drip] and
> >  [data/filter] patches akin to [list-drip] and [list-filter]. I'm now 
> > looking  
>to
> > create an object where I can remove specific scalars based on whether  or 
not
> > their value fields match a certain condition (via  [data/filter]).
> > 
> > 
> > Thanks in advance as always,
> >  John.
> > 
> > 
> >  ___
> > Pd-list@iem.at mailing list
> > UNSUBSCRIBE and account-management -> 
>http://lists.puredata.info/listinfo/pd-list
> 
> 
> --Friedenstr.  58
> 10249 Berlin (Deutschland)
> Tel +49 30 42020091 | Mob +49 162  6843570
> Studio +49 30 69509190
> jmmmp...@googlemail.com | skype:  jmmmpjmmmp
> 

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


[PD] Data Structures - Delete specific scalar?

2011-04-22 Thread JF
Is there any message based way to delete a scalar?

As I presume what people usually do is select the graphic in the datawindow and 
delete it this way. I need to do this without the graphical selection.

I'm currently using data structures just as a multi-dimensional storage object 
(the graphical side doesn't concern me). I've developed [data/drip] and 
[data/filter] patches akin to [list-drip] and [list-filter]. I'm now looking to 
create an object where I can remove specific scalars based on whether or not 
their value fields match a certain condition (via [data/filter]).


Thanks in advance as always,
John.


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list