diff options
Diffstat (limited to 'src/sample_selection.cc')
-rw-r--r-- | src/sample_selection.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sample_selection.cc b/src/sample_selection.cc index caf3bdd..012888d 100644 --- a/src/sample_selection.cc +++ b/src/sample_selection.cc @@ -160,7 +160,7 @@ const Sample* SampleSelection::getObjective(level_t level, std::size_t pos) auto power_min = powerlist.getMinPower(); float power_span = power_max - power_min; - float mean = level; + float mean = level - .5f/127.f; // XXX: this should actually be done when reading the events float stddev = settings.enable_velocity_modifier.load() ? settings.velocity_stddev.load()/127.0f : 0.; float lvl = power_min + rand.normalDistribution(mean, stddev)*power_span; |