COLL: remove single elements of an index

Aug 17, 2012 at 10:02am

COLL: remove single elements of an index

Hi everyone,

I need to remove single elements of an index.

For this:

D, 48 52 47 45;
C, 48 52 47 45;
B, 48 47 45;

stored in a coll object, I need to be able to remove for example the 48 so that the new stored elements are:

D, 52 47 45;
C, 52 47 45;
B, 47 45;

It’s like the merge message but it just removes the elements.

Thank you!

#64006
Aug 17, 2012 at 6:07pm

Here’s one way…

– Pasted Max Patch, click to expand. –
#230816
Aug 18, 2012 at 8:44am

Hi,

thanks for you answer.

I need to be able to decide witch element it removes…

In your example, you can just remove the first element…

Thanks.

#230817
Aug 18, 2012 at 9:37am

Here is a modified version where you can choose which element is removed.

– Pasted Max Patch, click to expand. –
#230818
Aug 20, 2012 at 7:01am

Hi,

thanks but it doesn’t really work…

I was actually looking for something more like “remove D 48″

#230819
Aug 20, 2012 at 8:46am

Then you may replace [zl nth] by [zl unique] like this.

– Pasted Max Patch, click to expand. –
#230820

You must be logged in to reply to this topic.