13
0

Fix PhaseControl set_value()

Previously this resulted in excessive "000...000" state string.
This commit is contained in:
Robin Gareus 2022-05-19 20:07:06 +02:00
parent c7150e81b0
commit 276172b8b1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -35,7 +35,9 @@ PhaseControl::PhaseControl (Session& session, std::string const & name, Temporal
void
PhaseControl::actually_set_value (double val, Controllable::GroupControlDisposition gcd)
{
size_t s = _phase_invert.size ();
_phase_invert = boost::dynamic_bitset<> (std::numeric_limits<double>::digits, (unsigned long) val);
_phase_invert.resize (s);
AutomationControl::actually_set_value (val, gcd);
}