summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/humaniservisualiser.cc2
-rw-r--r--plugingui/timingframecontent.cc12
2 files changed, 3 insertions, 11 deletions
diff --git a/plugingui/humaniservisualiser.cc b/plugingui/humaniservisualiser.cc
index fd643d4..f0c016a 100644
--- a/plugingui/humaniservisualiser.cc
+++ b/plugingui/humaniservisualiser.cc
@@ -105,7 +105,7 @@ void HumaniserVisualiser::Canvas::repaintEvent(GUI::RepaintEvent *repaintEvent)
float v = (-1.0f * velocity_offset + 1.0f) * 0.8;
int y = height() * 0.2 + v * height();
y = std::max(0, y);
- int w = latency_stddev / spx * 3 * 2; // stddev is ~ +/- 3 span
+ int w = 50.f * latency_stddev / spx * 3 * 2; // stddev is ~ +/- 3 span
int h = velocity_stddev * height() / 4;
DEBUG(vis, "max: %d, spx: %d, x: %d, w: %d", latency_max_samples, spx, x, w);
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)