summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVolker Fischer <corrados@users.noreply.github.com>2023-01-10 19:17:26 +0100
committerVolker Fischer <corrados@users.noreply.github.com>2023-01-10 19:17:26 +0100
commitc69ebdce624393d4ff23fdbce6856065eff9f6a8 (patch)
tree7c352067eea4dfafe054c28c73273483b8b76367 /src
parent28ce479e7300b46fa18fb9dc9e1b347c7cf6bed1 (diff)
fix hi-hat choke: larger minimum value is needed
Diffstat (limited to 'src')
-rw-r--r--src/inputprocessor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc
index 4b0a1bb..a15c9c1 100644
--- a/src/inputprocessor.cc
+++ b/src/inputprocessor.cc
@@ -358,7 +358,7 @@ bool InputProcessor::processChoke(event_t& event,
if(event.offset >= 1000000) // quick hack: added 1000000 to offset to transport hi-hat controller value
{
int hihat_controller = event.offset - 1000000;
- int rampdown_time = static_cast<int>(std::max(100.0, pow(10.0, (127.0 - hihat_controller) / 38.0))); // TODO optimize
+ int rampdown_time = static_cast<int>(std::max(180.0, pow(10.0, (127.0 - hihat_controller) / 38.0))); // TODO optimize
applyChoke(settings, event_sample, rampdown_time, 0);
}
else