mirror of
https://github.com/TomHarte/CLK.git
synced 2025-11-03 09:16:11 +00:00
Relax flywheel response rate again.
This commit is contained in:
@@ -62,7 +62,7 @@ struct Flywheel {
|
|||||||
// In practice this is a weighted mix of the two values, with the exact weighting affecting how
|
// 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.
|
// quickly the flywheel adjusts to new input. It's a IIR lowpass filter.
|
||||||
constexpr auto mix = [](const int expected, const int actual) {
|
constexpr auto mix = [](const int expected, const int actual) {
|
||||||
return (expected + 3*actual) >> 2;
|
return (expected + actual) >> 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
// A debugging helper.
|
// A debugging helper.
|
||||||
|
|||||||
Reference in New Issue
Block a user