summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Fischer <corrados@users.noreply.github.com>2021-09-01 21:50:14 +0200
committerVolker Fischer <corrados@users.noreply.github.com>2021-09-01 21:50:14 +0200
commit9ac7be28a312e72bce3b8b2dde782f3b24118b02 (patch)
treed60ca0acc03b0e0fc49142804f307afa69e1b1f4
parent3d9ac2501596b8697a68088a1dfc18aae209ca37 (diff)
increase the instrument target dynamic by 5 dB
-rw-r--r--src/inputprocessor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc
index a16115c..487d0a2 100644
--- a/src/inputprocessor.cc
+++ b/src/inputprocessor.cc
@@ -3,7 +3,7 @@
* inputprocessor.cc
*
* Sat Apr 23 20:39:30 CEST 2016
- * Copyright 2016 André Nusser
+ * Copyright 2016 André Nusser
* andre.nusser@googlemail.com
****************************************************************************/
@@ -297,7 +297,7 @@ bool InputProcessor::processOnset(event_t& event, std::size_t pos,
auto target_max_power_db = 10 * log10(instr->getMaxPower());
auto target_min_power_db = 10 * log10(instr->getMinPower());
auto sel_power_db = 10 * log10(sample->getPower());
-auto target_dynamic_db = 35.0; // dB
+auto target_dynamic_db = 40.0; // dB
auto target_power_db = sqrt(event.velocity) * target_dynamic_db + target_max_power_db - target_dynamic_db;
auto diff_power_db = target_power_db - sel_power_db;