complex comparison of two lists ...

anamaria's icon

Hi list,

I need to compare the numbers in a list against the numbers in another list in the following way:

Max Patch
Copy patch and select New From Clipboard in Max.

Does anyone have a clue how to do that?

Thanks ahead,

ana

anamaria's icon

Hi again,

Here's perhaps a patch that better explains what I would like to do:

Max Patch
Copy patch and select New From Clipboard in Max.

anamaria's icon

Hmm ... almost there ... but I still have problems with the flow of data. How do I manage to check all the numbers in the green list against the blue list in the below patch?

Max Patch
Copy patch and select New From Clipboard in Max.

o s's icon

I think you have to define what closed exactly is...than take a look at the if object

hth o

anamaria's icon

ok, I almost got it right now, however, it is a very clumpsy solution - why I still need some help! For example, I don't understand why I have to activate the comparison twice in order to get it to work - see below patch:

Max Patch
Copy patch and select New From Clipboard in Max.

anamaria's icon

ah, I solved the problem: the counter has to be reset to 1 instead of 0 ...

hmm ... the below patch is still clumpsy, though. If any of you can see from the top question that there is a more elegant way of doing it, then let me know :-)

Thanks,
ana

This works, but is very clumpsy:

Max Patch
Copy patch and select New From Clipboard in Max.

jan.jdo's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi
Just a slightly more compact version:

seejayjames's icon

nicely done jan! great use of "double-iter" :)