private void HandleSourceValueChanged(float newValue) { if (!IsActive) { _throttledValue.ForceValue(newValue); } else { _throttledValue.Target = newValue; } }
private void HandleQualityChanged(object sender, EventArgs e) { _waveHost = new WaveHost(_audioLink.SampleRate); _waveHost.Wave = Wave.Value; _actualPitch.ForceValue(CalculateCompositePitch()); // jump to initial pitch with no smoothing }