LCXL: Make the pan fix nice again

This commit is contained in:
Jan Lentfer 2020-02-12 21:05:27 +01:00
parent c321bc82bb
commit 260e7ad5a9
3 changed files with 5 additions and 15 deletions

View file

@ -879,9 +879,8 @@ LaunchControlXL::knob_pan(uint8_t n)
}
if (ac && check_pick_up_rev(knob, ac)) {
DEBUG_TRACE (DEBUG::LaunchControlXL, string_compose ("knob->value: '%1'\n", (int) knob->value()));
ac->set_value (ac->interface_to_internal ((127 - knob->value()) / 127.0), PBD::Controllable::UseGroup);
if (ac && check_pick_up(knob, ac, true)) {
ac->set_value (ac->interface_to_internal((knob->value() / 127.0), true), PBD::Controllable::UseGroup);
}
}