Here’s a little node that does moving average. There are several support nodes that also may be useful in the XODBALL file. Could be helpful for some folks. Easily editable for the N that you need.
The method is to pass the incoming value to one of three buffers using nth-select-pulse-3x, then add and divide by 3. The count wrap resets a counter at the Max. Minus1 is always handy, too.
There is a library that has a variadic moving average, but it does take up more memory.
Project:
Avg-3x-Moving.xodball (17.4 KB)