summaryrefslogtreecommitdiff
path: root/plugingui/timingframecontent.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-07-21 14:35:36 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2018-07-21 14:35:36 +0200
commit6ba96e9a60428676fdf5cf6060e5d981ba1f3976 (patch)
treeadade5a7befd072b42c9d1738bcfb1a702f7954f /plugingui/timingframecontent.cc
parent94e8431f321a359743d0663f50d5e9a53155dd9d (diff)
Switch latency_stddev to be samplerate independent (and thus in ms).
Visualization seems correct but I didn't verify the math.
Diffstat (limited to 'plugingui/timingframecontent.cc')
-rw-r--r--plugingui/timingframecontent.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/plugingui/timingframecontent.cc b/plugingui/timingframecontent.cc
index 835356d..50a5da3 100644
--- a/plugingui/timingframecontent.cc
+++ b/plugingui/timingframecontent.cc
@@ -86,20 +86,12 @@ TimingframeContent::TimingframeContent(Widget* parent,
float TimingframeContent::thightnessKnobToSettings(float value) const
{
- value -= 1.0f;
- value *= -1.0f;
- value *= 500.0f;
-
- return value;
+ return (1.f - value)*10.f;
}
float TimingframeContent::tightnessSettingsToKnob(float value) const
{
- value /= 500.0f;
- value *= -1.0f;
- value += 1.0f;
-
- return value;
+ return 1.f - (value/10.f);
}
void TimingframeContent::tightnessKnobValueChanged(float value)