Simple FIR to smooth things cheaply. Introduces (samples - 1) / 2 latency. Converts everything to long for stability purpose. So this may run forever as long as the input is below some threshold.
Initialize mean filter with given number of samples.
Initialize with with cutoff frequency and samplerate.
See Implementation
Simple FIR to smooth things cheaply. Introduces (samples - 1) / 2 latency. Converts everything to long for stability purpose. So this may run forever as long as the input is below some threshold.