Forums > MaxMSP

difference between list

Nov 07 2009 | 7:24 pm

hello everybody, it’s my first post here.

i am trying to do equivalent operation to modus ponens / law of detachment / on two lists.
let say, that i am having :

23 31 45
31 45

and what i need is to have 23. is there is any element that can do such operation?


Nov 07 2009 | 7:44 pm

would [zl unique] do what you want?

Nov 07 2009 | 7:57 pm

thanks for the reply, brian.
unfortunately zl unique is not present in max 4.6
any further comments?

Nov 08 2009 | 1:15 am

[zl sect] does the first half of it. and then … hm.

the following patch will remove identical elements,
the opposite of what you need:

[zl group]
to both inlets of
[zl sect]

Nov 08 2009 | 4:45 pm

thx roman, it seems that there is no elegant way of doing that.
the most intuitive way – comparing each element of the list against another and filtering out repeated numbers – works fine, but thought that there is something more refined.


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

Forums > MaxMSP