From 0e0b9c42f3ba4c65be60925fd2d61b785dd9e38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Thu, 23 Aug 2018 15:00:31 +0200 Subject: Make toggling the humanizer also set the stddev to zero. --- src/powerlist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powerlist.cc b/src/powerlist.cc index 67dae2f..a555051 100644 --- a/src/powerlist.cc +++ b/src/powerlist.cc @@ -232,7 +232,7 @@ Sample* PowerList::get(level_t level) // Cut off mean value with stddev/2 in both ends in order to make room for // downwards expansion on velocity 0 and upwards expansion on velocity 1. float mean = level * (power_span - mean_stepwidth) + (mean_stepwidth / 2.0); - float stddev = velocity_stddev * mean_stepwidth; + float stddev = settings.enable_velocity_modifier.load() ? velocity_stddev * mean_stepwidth : 0.; float power{0.f}; -- cgit v1.2.3