summaryrefslogtreecommitdiff
path: root/libs/ardour/automation_control.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-10-07 05:07:55 +0200
committerRobin Gareus <robin@gareus.org>2019-10-07 05:07:55 +0200
commitc663a2d8ef6669054eac817c86d70552580f2138 (patch)
treece042183c86193dd130437236f1f6006d45d02ea /libs/ardour/automation_control.cc
parent85ea1250e1c5be9b941cd0966127facf871c53ac (diff)
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.
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r--libs/ardour/automation_control.cc8
1 files changed, 4 insertions, 4 deletions
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