LCXL: Adopt pan knob behaviour

* "left/right" changed in A6, adopt for this
    * add a pick_up_rev function to honour this
This commit is contained in:
Jan Lentfer 2020-02-09 16:29:07 +01:00 committed by Robin Gareus
parent beaa6a7ae4
commit cc7eca7453
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 12 additions and 2 deletions

View file

@ -879,8 +879,9 @@ LaunchControlXL::knob_pan(uint8_t n)
}
if (ac && check_pick_up(knob, ac)) {
ac->set_value ( ac->interface_to_internal( knob->value() / 127.0), PBD::Controllable::UseGroup );
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);
}
}