1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-01 11:16:16 +00:00

Relax flywheel response rate again.

This commit is contained in:
Thomas Harte
2025-10-08 22:12:58 -04:00
parent c58eba61de
commit 6c3048ffbf

View File

@@ -62,7 +62,7 @@ struct Flywheel {
// In practice this is a weighted mix of the two values, with the exact weighting affecting how
// quickly the flywheel adjusts to new input. It's a IIR lowpass filter.
constexpr auto mix = [](const int expected, const int actual) {
return (expected + 3*actual) >> 2;
return (expected + actual) >> 1;
};
// A debugging helper.