mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
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:
parent
beaa6a7ae4
commit
cc7eca7453
3 changed files with 12 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue