Forums > MaxMSP

analyzing a list for change …

February 12, 2011 | 9:45 pm

Hi, I have a big question:

How do I look through the above list and get a list of the positions where the value changes and also what the new value is?

A beginning attempt is made below, but then I ran dry for intelligent list objects that can do the job for me.
- anyone who have any clue what I can do?

– Pasted Max Patch, click to expand. –

Thanks a lot for your help!

ana


February 13, 2011 | 1:21 am

i think this works : /

– Pasted Max Patch, click to expand. –

February 13, 2011 | 6:58 pm

Thanks a lot! It works perfectly, and now i undertand better how to use the trigger object:-)

ana



MIB
February 13, 2011 | 8:18 pm

I did an abstraction a little while back that analyses the make-up of a list and gives you some information about it.
It will give you sublists of the same elements, starting position, length and what the element is. It’s a bit more than what you are asking for but it might come in handy.

Attachments:
  1. MRlistIt.zip

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