Fix PhaseControl set_value()
Previously this resulted in excessive "000...000" state string.
This commit is contained in:
parent
c7150e81b0
commit
276172b8b1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user