From f24cabe9e9fcbdd2877b9d382935ef499fb599ba Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 7 Apr 2020 00:36:59 +0200 Subject: Fix rotary control knob mapping This fixes an issue with Foldback strips pan controls being inverted. --- libs/widgets/ardour_knob.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/widgets/ardour_knob.cc') diff --git a/libs/widgets/ardour_knob.cc b/libs/widgets/ardour_knob.cc index 8a80814471..e69ed1fda0 100644 --- a/libs/widgets/ardour_knob.cc +++ b/libs/widgets/ardour_knob.cc @@ -301,14 +301,14 @@ ArdourKnob::on_scroll_event (GdkEventScroll* ev) boost::shared_ptr c = binding_proxy.get_controllable(); if (c) { - float val = c->get_interface(); + float val = c->get_interface (true); if ( ev->direction == GDK_SCROLL_UP ) val += scale; else val -= scale; - c->set_interface(val); + c->set_interface (val, true); } return true; @@ -347,7 +347,7 @@ ArdourKnob::on_motion_notify_event (GdkEventMotion *ev) _grabbed_x = ev->x; _grabbed_y = ev->y; - float val = c->get_interface(); + float val = c->get_interface (true); if (_flags & Detent) { const float px_deadzone = 42.f * ui_scale; @@ -378,7 +378,7 @@ ArdourKnob::on_motion_notify_event (GdkEventMotion *ev) } val += delta * scale; - c->set_interface(val); + c->set_interface (val, true); return true; } @@ -474,7 +474,7 @@ ArdourKnob::controllable_changed (bool force_update) boost::shared_ptr c = binding_proxy.get_controllable(); if (!c) return; - float val = c->get_interface(); + float val = c->get_interface (true); val = min( max(0.0f, val), 1.0f); // clamp if (val == _val && !force_update) { -- cgit v1.2.3