13
0

US2400: Fix send levels from joystick ("surround pan" on mixbuses 11,12) (Mixbus32C only)

This commit is contained in:
Ben Loftis 2021-08-03 10:37:32 -05:00
parent 0b5ab1b570
commit 398a1efbd5

View File

@ -29,6 +29,7 @@
#include "ardour/audioengine.h" #include "ardour/audioengine.h"
#include "ardour/automation_control.h" #include "ardour/automation_control.h"
#include "ardour/dB.h"
#include "ardour/debug.h" #include "ardour/debug.h"
#include "ardour/route.h" #include "ardour/route.h"
#include "ardour/panner.h" #include "ardour/panner.h"
@ -627,11 +628,11 @@ Surface::handle_midi_controller_message (MIDI::Parser &, MIDI::EventTwoBytes* ev
if (r && r->is_input_strip()) { if (r && r->is_input_strip()) {
boost::shared_ptr<AutomationControl> pc = r->send_level_controllable (10); boost::shared_ptr<AutomationControl> pc = r->send_level_controllable (10);
if (pc) { if (pc) {
pc->set_value (-db_value , PBD::Controllable::NoGroup); pc->set_value (dB_to_coefficient(-db_value) , PBD::Controllable::NoGroup);
} }
pc = r->send_level_controllable (11); pc = r->send_level_controllable (11);
if (pc) { if (pc) {
pc->set_value (-inv_db, PBD::Controllable::NoGroup); pc->set_value (dB_to_coefficient(-inv_db), PBD::Controllable::NoGroup);
} }
} }
} }