I totally understand and can imagine that. I just didn’t write it in enough detail.
It should be more correct::
Is the incoming Polytouch value for any note less than or equal to the limit?
YES - discard and do not process further.
NO - Recalculate and forward.
I don’t know if Moony can do it, so don’t send anything to the output. If not, there would have to be a buffer and remember the last value it sent and send it again.
Another problem will be if two notes in the chord are above the liminit. So that it does not oscillate, a value closer to the last sent value should be sent – most likely.
For me, it’s more academic, given that I don’t know LUA and Moony. If I look in the discussion, I don’t know if there is someone who uses it and gives advice.
Or try to solve it via PureData as a user @jtode Midi mapping fcb-1010 note to CC64 - #21 by jtode