summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-08-23 14:52:02 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2019-05-11 14:53:23 +0200
commitd099d337b215fae89ef5f681a8b7f1f6f465eded (patch)
tree59a7cf6d8fb79a88e8dccc04642ac0f312193646
parent0c2f72e9cba9f25fd838609ea53dd606029828e5 (diff)
Make stddev as range from [0,4.5] in GUI.
-rw-r--r--plugingui/humanizerframecontent.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/humanizerframecontent.cc b/plugingui/humanizerframecontent.cc
index 5f84249..206d77d 100644
--- a/plugingui/humanizerframecontent.cc
+++ b/plugingui/humanizerframecontent.cc
@@ -84,12 +84,12 @@ HumanizerframeContent::HumanizerframeContent(Widget* parent,
float HumanizerframeContent::stddevSettingsToKnob(float value) const
{
- return (value - 0.5f) / 4.0f;
+ return value / 4.5f;
}
float HumanizerframeContent::stddevKnobToSettings(float value) const
{
- return value * 4.0f + 0.5f;
+ return value * 4.5f;
}
void HumanizerframeContent::attackValueChanged(float value)