From d099d337b215fae89ef5f681a8b7f1f6f465eded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Thu, 23 Aug 2018 14:52:02 +0200 Subject: Make stddev as range from [0,4.5] in GUI. --- plugingui/humanizerframecontent.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui') 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) -- cgit v1.2.3