13
0

US2400: fix pan_azimuth direction by setting rotary flag

This commit is contained in:
Robin Gareus 2020-06-18 00:19:29 +02:00
parent aa4d357201
commit ad234b1853
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 3 additions and 13 deletions

View File

@ -592,15 +592,7 @@ Strip::handle_pot (Pot& pot, float delta)
}
} else {
double p = ac->get_interface();
p += delta;
p = max (0.0, p);
p = min (1.0, p);
ac->set_value ( ac->interface_to_internal(p), gcd);
ac->set_interface ((ac->internal_to_interface (ac->get_value(), true) + delta), true, gcd);
}
}

View File

@ -643,13 +643,11 @@ Surface::handle_midi_controller_message (MIDI::Parser &, MIDI::EventTwoBytes* ev
if (r && r->is_input_strip()) {
boost::shared_ptr<AutomationControl> pc = r->send_pan_azimuth_controllable (10);
if (pc) {
float v = pc->interface_to_internal(value);
pc->set_value (v, PBD::Controllable::NoGroup);
pc->set_interface (value, true);
}
pc = r->send_pan_azimuth_controllable (11);
if (pc) {
float v = pc->interface_to_internal(value);
pc->set_value (v, PBD::Controllable::NoGroup);
pc->set_interface (value, true);
}
}
}