diff options
author | André Nusser <andre.nusser@googlemail.com> | 2018-08-23 15:00:31 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2019-05-11 14:53:23 +0200 |
commit | 0e0b9c42f3ba4c65be60925fd2d61b785dd9e38b (patch) | |
tree | 829a0cf1d553f2c83ec4dddfc5c4dcf3840e7618 /src/powerlist.cc | |
parent | d099d337b215fae89ef5f681a8b7f1f6f465eded (diff) |
Make toggling the humanizer also set the stddev to zero.
Diffstat (limited to 'src/powerlist.cc')
-rw-r--r-- | src/powerlist.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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}; |