[PD] list management question

Roman Haefeli reduzent at gmail.com
Thu Sep 3 22:31:08 CEST 2015


On Don, 2015-09-03 at 20:12 +0000, David Schaffer wrote:

>      I'm having a hard time figuring out a list management situation:
> Let's say I have a list made of several floats, how would I clear one
> or more of these floats from my list (and therefore shrink it) without
> knowing their index? 

What is it then that you know? Their values?

If so, I'd serialize the list to a stream of floats, pass the stream to
some filter like [select 0.493] (the float I want strip out), and
concatenate the stream back to a list. 

To paraphrase that in Pseudo-Pd-code:

[list_serializer]
|
[filter]
|
[list_concatenator]


There is an example for a serializer in the help of [list]. A
concatenator is very simple:

|            ____
[list prepend]   X[t a]
\_______________/


Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150903/6b1daedd/attachment.sig>


More information about the Pd-list mailing list