summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-07-21 16:53:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-07-21 16:53:54 +0200
commit6f2ce31f1ad57444129a6e21b44c83f1b656f311 (patch)
tree909dc4fb3ca96e8dfb4187a49ce0f68635353811
parenta7e14b2065b6f1ee07aac3c6b936d968abfbd42c (diff)
Syncronize cli and plugin setting ranges for latency humanization.
-rw-r--r--drumgizmo/drumgizmoc.cc2
-rw-r--r--plugingui/timingframecontent.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc
index 793967b..573b463 100644
--- a/drumgizmo/drumgizmoc.cc
+++ b/drumgizmo/drumgizmoc.cc
@@ -388,7 +388,7 @@ int main(int argc, char* argv[])
std::cerr << "tightness range is [0; 1].\n";
exit(1);
}
- settings.latency_stddev.store((-1.0 * val + 1.0) * 500.0);
+ settings.latency_stddev.store((-1.0 * val + 1.0) * 20.0);
}
else if(token.key == "regain")
{
diff --git a/plugingui/timingframecontent.cc b/plugingui/timingframecontent.cc
index 50a5da3..ceaf5be 100644
--- a/plugingui/timingframecontent.cc
+++ b/plugingui/timingframecontent.cc
@@ -86,12 +86,12 @@ TimingframeContent::TimingframeContent(Widget* parent,
float TimingframeContent::thightnessKnobToSettings(float value) const
{
- return (1.f - value)*10.f;
+ return (1.f - value) * 20.f;
}
float TimingframeContent::tightnessSettingsToKnob(float value) const
{
- return 1.f - (value/10.f);
+ return 1.f - (value / 20.f);
}
void TimingframeContent::tightnessKnobValueChanged(float value)