US2400: fix pan_azimuth direction by setting rotary flag
This commit is contained in:
parent
aa4d357201
commit
ad234b1853
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user