by buildingrobots · 4mo ago · 0 comments
double omega_c = TWO_PI * cutoff_Hz * dt_s;
double b = 4.0 - (2.0 * cos(omega_c));
return 1.0 - ((b - sqrt(b*b - 4.0)) * 0.5);
Probably won't matter most of the time, though, when you're just trying to make some noise go away.