diff options
author | André Nusser <andre.nusser@googlemail.com> | 2019-07-22 02:49:50 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2019-07-22 02:49:50 +0200 |
commit | 7738816b26ebf8efcaaf2262d703959a237165ad (patch) | |
tree | 4026721c0726a3398601812b0daa04d6b7e6b9d2 /src | |
parent | e2fb10f6dfb9fd92e34edc283bf61d50ab7fdc7a (diff) |
Bugfix for last commit.
Diffstat (limited to 'src')
-rw-r--r-- | src/inputprocessor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index fb783cf..0439551 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -119,7 +119,7 @@ bool InputProcessor::processOnset(event_t& event, return false; } - auto orig_level = event.velocity; + auto const original_level = event.velocity; for(auto& filter : filters) { // This line might change the 'event' variable @@ -195,7 +195,7 @@ bool InputProcessor::processOnset(event_t& event, } auto const selected_level = (sample->getPower() - power_min)/power_span; - settings.velocity_modifier_current.store(selected_level/event.velocity); + settings.velocity_modifier_current.store(selected_level/original_level); for(Channel& ch: kit.channels) { |