You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The setFreq method of the Phasor class accepts negative values, which is nice cause it would allow the phasor to run in reverse (ramp down).
But the Process() routine clips negative phase values to zero instead of wrapping to the maximum value.
The setFreq method of the Phasor class accepts negative values, which is nice cause it would allow the phasor to run in reverse (ramp down).
But the Process() routine clips negative phase values to zero instead of wrapping to the maximum value.
Should probably be something like:
if(phs_ < 0.0f) { phs_ += TWOPI_F; // phs_ = 0.0f; }
The text was updated successfully, but these errors were encountered: