Forums > MaxMSP

COLL: remove single elements of an index

August 17, 2012 | 10:02 am

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!


August 17, 2012 | 6:07 pm

Here’s one way…

– Pasted Max Patch, click to expand. –

August 18, 2012 | 8:44 am

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.


August 18, 2012 | 9:37 am

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

– Pasted Max Patch, click to expand. –

August 20, 2012 | 7:01 am

Hi,

thanks but it doesn’t really work…

I was actually looking for something more like "remove D 48"


August 20, 2012 | 8:46 am

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

– Pasted Max Patch, click to expand. –

Viewing 6 posts - 1 through 6 (of 6 total)