13
0

CC121: fix pan_azimuth direction by setting rotary flag

This commit is contained in:
Robin Gareus 2020-06-18 00:10:08 +02:00
parent 592d73dcb4
commit aa4d357201
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -246,9 +246,7 @@ CC121::set_controllable (boost::shared_ptr<AutomationControl> ac, float delta)
return;
}
ac->start_touch (ac->session().transport_sample());
double v = ac->internal_to_interface (ac->get_value());
v = std::max (0.0, std::min (1.0, v + delta));
ac->set_value (ac->interface_to_internal(v), PBD::Controllable::NoGroup);
ac->set_interface ((ac->internal_to_interface (ac->get_value(), true) + delta), true);
}