From c663a2d8ef6669054eac817c86d70552580f2138 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 7 Oct 2019 05:07:55 +0200 Subject: Invert Pan-Azimuth (up means left) It's a well established convention that pan y-axis automation, or vertical uses (top) +1 for left. This special cases rotary knobs (and horizontal sliders) to retain a clockwise movement (or movement to the right) for panning to the right. --- libs/ardour/automation_control.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/ardour/automation_control.cc') diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index b8d5226b29..eda77f64b2 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -337,23 +337,23 @@ AutomationControl::commit_transaction (bool did_write) /* take control-value and return UI range [0..1] */ double -AutomationControl::internal_to_interface (double val) const +AutomationControl::internal_to_interface (double val, bool rotary) const { // XXX maybe optimize. _desc.from_interface() has // a switch-statement depending on AutomationType. - return _desc.to_interface (val); + return _desc.to_interface (val, rotary); } /* map GUI range [0..1] to control-value */ double -AutomationControl::interface_to_internal (double val) const +AutomationControl::interface_to_internal (double val, bool rotary) const { if (!isfinite_local (val)) { assert (0); val = 0; } // XXX maybe optimize. see above. - return _desc.from_interface (val); + return _desc.from_interface (val, rotary); } std::string -- cgit v1.2.3