From 08945155d7551810de914b824305575ff26ae181 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 13 Apr 2021 20:38:35 +0200 Subject: Improve power spread in velocity mapping. --- src/inputprocessor.cc | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3