From e2fb10f6dfb9fd92e34edc283bf61d50ab7fdc7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Mon, 22 Jul 2019 02:43:50 +0200 Subject: Small ammend to previous commit. --- src/inputprocessor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index 4b0b20f..fb783cf 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -194,8 +194,8 @@ bool InputProcessor::processOnset(event_t& event, return false; } - auto const selected_level = (sample->getPower() - instr->getMinPower())/power_span; - settings.velocity_modifier_current.store(selected_level / orig_level); + auto const selected_level = (sample->getPower() - power_min)/power_span; + settings.velocity_modifier_current.store(selected_level/event.velocity); for(Channel& ch: kit.channels) { -- cgit v1.2.3