Open philburk opened 6 years ago
Good suggestion. When we do implement, let's also provide a way to see/report the original DC offset as that kind of thing could also cause a plop in recording and it might be good to know that it is happening, how severe it is, how long it goes on for, etc.
Some devices have an initial severe DC offset that distorts the measurement. This can confuse the auto-correlation calculation. The DC offset usually dies down after 50 - 500 msec.
We should detect DC offset and wait for it to die down. If the DC offset is too severe then we should reject the measurement so that the DC offset problem can be addressed.
We could also add a DC blocker on the input to the auto-correlator to improve the auto-correlation result.
https://www.dsprelated.com/freebooks/filters/DC_Blocker.html