diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-04-13 20:38:35 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-04-13 20:38:35 +0200 |
commit | 08945155d7551810de914b824305575ff26ae181 (patch) | |
tree | f51e8bee92e04faa3f89e11b5d8f3c95959c8ce8 | |
parent | a10ed70b7b71b7c72e8885da52065d959af3505b (diff) |
Improve power spread in velocity mapping.normalised_scaled_fix
-rw-r--r-- | src/inputprocessor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index 19e76a5..81e64cb 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -209,6 +209,8 @@ bool InputProcessor::processOnset(event_t& event, std::size_t pos, return false; } + event.velocity = std::pow(event.velocity, 3); + std::size_t instrument_id = event.instrument; Instrument* instr = nullptr; |