diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-07-15 20:35:52 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-07-15 20:41:10 +0200 |
commit | a0484778a9953dfd1948bf4dac71c51deab18cab (patch) | |
tree | 15b9ff0c0b745b0efb02375d285ade09bbdf0f18 /plugingui/timingframecontent.cc | |
parent | 34578fdef6a9f77aa285501130be55fcd560c03d (diff) |
Revorked visualiser UI and a few more parameter tweaks.
Diffstat (limited to 'plugingui/timingframecontent.cc')
-rw-r--r-- | plugingui/timingframecontent.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugingui/timingframecontent.cc b/plugingui/timingframecontent.cc index d6b4c29..d02f86f 100644 --- a/plugingui/timingframecontent.cc +++ b/plugingui/timingframecontent.cc @@ -40,7 +40,6 @@ TimingframeContent::TimingframeContent(Widget* parent, : Widget(parent) , settings(settings) , settings_notifier(settings_notifier) - , visualiser(this, settings_notifier) { layout.setResizeChildren(false); @@ -72,9 +71,6 @@ TimingframeContent::TimingframeContent(Widget* parent, layout.setPosition(®ain, GridLayout::GridRange{1, 2, 0, 1}); layout.setPosition(&laidback, GridLayout::GridRange{2, 3, 0, 1}); - visualiser.move(80, 40); - visualiser.resize(40, 40); - CONNECT(this, settings_notifier.latency_stddev, this, &TimingframeContent::tightnessSettingsValueChanged); CONNECT(this, settings_notifier.latency_regain, @@ -111,7 +107,7 @@ float TimingframeContent::tightnessSettingsToKnob(float value) const float TimingframeContent::laidbackKnobToSettings(float value) const { value -= 0.5f; - value *= 2.0f; + value *= 4.0f; value *= settings.latency_max.load(); return std::lround(value); @@ -121,8 +117,8 @@ float TimingframeContent::laidbackSettingsToKnob(int int_value) const { float value = int_value; value /= (float)settings.latency_max.load(); - value *= 0.5; - value += 0.5; + value /= 4.0f; + value += 0.5f; return value; } |