From 7e7db3fe70ee4e9b7c64eb63843914f2525b8526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Wed, 15 May 2019 02:02:07 +0200 Subject: Reduce stddev range a bit. --- src/velocityfilter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/velocityfilter.cc b/src/velocityfilter.cc index e774843..af1c524 100644 --- a/src/velocityfilter.cc +++ b/src/velocityfilter.cc @@ -43,7 +43,7 @@ bool VelocityFilter::filter(event_t& event, size_t pos) float mean = event.velocity - .5f/127.f; // XXX: this should actually be done when reading the events float stddev = settings.velocity_stddev.load(); // the 20.0f we determined empirically - float lvl = power_min + random.normalDistribution(mean, stddev / 20.0f) * power_span; + float lvl = power_min + random.normalDistribution(mean, stddev / 30.0f) * power_span; event.velocity = lvl; return true; -- cgit v1.2.3