I'd like to assign tags based on tags and/or other attributes of surrounding samples. What I'm looking for, at the end of the day, is the ability to say "assign this tag if of +/- N samples around the current sample, at least M have property xy (e.g. tag, active window, etc.)".
I think the most basic primitive to make this work is a way to access a sample at a specific offset from the current one. The aggregation functions could build on that.
This is something I want/need for my own purposes, so I'm probably going to implement it one way or another. It would be great if this could be upstreamed when it's ready, so I'd like to know if this is something you'd consider including at all, and any considerations on the design of such a feature you might have.
I'll volunteer the implementation, but beware that I don't know Haskell, so it might take some time to get it right... ;-)