interesting, I have heard about the capacitor trick. How would it be done "averaging" in software?