filtering out [sort of] repeated lists
so, say I have a stream of the following few lists:
now, the filter should be looking at the first item in each list. I would like the output to be:
so, they’re sort of x/y pairs.
i looked at [funbuff], but still have repetitions with new sets of lists.
see if this makes sense:
----------begin_max5_patcher---------- 701.3ocwW9sjZBCEF+Z7o3Lo2ZYR3OpzdUur2zWfNc5DgnlJjPgPca2Ye2aR .cwUsF2Eoy3PLwvImyO+xGgGm3gVJefUifO.eE77dbhmmcHy.dc88PEzGRyo 01ogRkEELgBMs82TrGT1wUa30f9ytMTE7YXmrIOCx4aYfZCCjMpxFEnjvR19 aUzTvE4LkMtjtA4Y1nIW9i2SH8loN.6mJtazURgRPKX1a3SUbZ994WRUoa3h 0euhkpZKNRXrOdJPhwllffY1FcG3a8BWM+O1vQB7wlQeZxDykoNxlBVcMcM6 D1PzkGDpSbHBvms7CNs7mcnZpX0ZhSUbonWEEunsfr0Et6xgp4XjQtJxZmr5 2kr1niPGB0Yn4LbOXNOx1YwvxxKoyDRE7yFthcpRyUgU3UHaPhEswXGH6qRL FhsQMpURlPtGZw+A+3oLnVVvfJVISwMUeMrlofU7bEqhk47NzqIQsJin42KN N6+GF888MFaBHMmmtU6pkK2MEnhLHqonDnqobgyXLDM3ZKRGTRFSnbDKrzw. CMpblDAngVczAhH7XZ3iMF9VW+.iqeXe+eswh6ODffQihgdmpYdKrlM+d3nK X6zkzIrpjlt0UbjLNzfz+rBgi5QELaXbkFKFSZzJMhHioxnh+rIy0rNhGxCK 1YdZaBitG++egRdUiXYypUtp.hNeQGd6J.KoOzrjJV6xNj.6Nj3vqRntgqo+ Z+B9tuXVnC0qwWD8Q8ZNztvXSj67iwm3Ga+Vj4xMXJGfFwCY2tuKH7lrjsyA kyEu7c6rKiY7iwYsroJceR08xGvyqTFqVwE1S20aNwGMmM7rLln+VtBdVoTK n5RgYI9wlJn8AwQG5bg+xcMSCbHSidUYJNtWlZ57FyzECel9FynHGxnjQMiR Fdc2.vHhCLhLZYj4LgCsPJD6hlW24oI+EjEBvbE -----------end_max5_patcher-----------
What is the exact condition for whether a list gets passed or not? You said filtering out repeated lists but I can’t see this from your example. Might just be me being a bit slow though!
the lists are two integers long, and can be thought of as x/y pairs, or an address and a value.
if you look at the first message box:
[0 1, 0 0, 0 1, 1 0, 2 0, 3 1, 3 0, 3 1, 4 1, 5 0]
this is a bunch of two-value lists, sent out one by one, to simulate what’s actually happening in my patch.
notice the sequence:
this is what I mean by a repeat, list beginning with 0 happens three times. after all that I just want one message sent, with the latest version of that list, so:
does that make sense?
combination of [funbuff] and [dump] works first time round, but not with successive passes. I guess I want [funbuff] with [dump only things that have changes since last dump].
Hi, change the message [dump] with [dump, clear]
but [clear] erases the contents of funbuff?
mmhh. I see, you want a pair to be filtered out if it was on the previous dump.
This is not easy because funbuff has no way to know if a pair is in the first message box or in the next one: it only "sees" lists of two elements getting into its left inlet.
Maybe you should use a coll and add a flag to a pair when it is dumped so that it is not dumped again.
Forums > MaxMSP