summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-12 20:12:08 +0100
committerRobin Gareus <robin@gareus.org>2020-02-12 20:12:08 +0100
commit4f90bd62988b082669ac85b51a4ed2a8330a2983 (patch)
tree88febe3defbc3910794c47086579e7e02ef3fd3a
parent6f755c3c029c5f1e7a2e81cd3ed5b5493d19af8a (diff)
Fix Faderport 2/8/16 pan azimuth knob direction
See also c663a2d8ef6
-rw-r--r--libs/surfaces/faderport8/actions.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/surfaces/faderport8/actions.cc b/libs/surfaces/faderport8/actions.cc
index 29beadd5fc..69ac03a90a 100644
--- a/libs/surfaces/faderport8/actions.cc
+++ b/libs/surfaces/faderport8/actions.cc
@@ -431,9 +431,9 @@ FaderPort8::handle_encoder_pan (int steps)
if (steps == 0) {
ac->set_value (ac->normal(), PBD::Controllable::UseGroup);
} else {
- double v = ac->internal_to_interface (ac->get_value());
+ double v = ac->internal_to_interface (ac->get_value(), true);
v = std::max (0.0, std::min (1.0, v + steps * .01));
- ac->set_value (ac->interface_to_internal(v), PBD::Controllable::UseGroup);
+ ac->set_value (ac->interface_to_internal(v, true), PBD::Controllable::UseGroup);
}
}
}
@@ -450,7 +450,7 @@ FaderPort8::handle_encoder_link (int steps)
return;
}
- double v = ac->internal_to_interface (ac->get_value());
+ double v = ac->internal_to_interface (ac->get_value(), true);
ac->start_touch (ac->session().transport_sample());
if (steps == 0) {
@@ -468,7 +468,7 @@ FaderPort8::handle_encoder_link (int steps)
} else {
v = std::max (0.0, std::min (1.0, v + steps * .01));
}
- ac->set_value (ac->interface_to_internal(v), PBD::Controllable::UseGroup);
+ ac->set_value (ac->interface_to_internal(v, true), PBD::Controllable::UseGroup);
}