summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2019-05-15 02:02:07 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2019-05-15 02:02:07 +0200
commit7e7db3fe70ee4e9b7c64eb63843914f2525b8526 (patch)
tree6788da9d188301b93e66580236bcf74fe83795fa /src
parent87af0143d46bab272c1a72f075f2d718887238b3 (diff)
Reduce stddev range a bit.
Diffstat (limited to 'src')
-rw-r--r--src/velocityfilter.cc2
1 files changed, 1 insertions, 1 deletions
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;