Apply gain to output sample instead of coeffs. Added control for when coeffs were recalculated when setting params.