private void UpdateAll() { GainTF.SetParam(Gain.P_GAIN, Utils.LogResponse(ParameterInfo[P_GAIN].Value)); PostGain.SetParam(postGain.P_GAIN, Utils.ExpResponse(ParameterInfo[P_GAIN].Value)); Tonestack.SetParam(Tonestack.P_BASS, Utils.ExpResponse(ParameterInfo[P_BASS].Value)); Tonestack.SetParam(Tonestack.P_TREBLE, ParameterInfo[P_TREBLE].Value); Tonestack.SetParam(Tonestack.P_MID, 1); Contour.SetParam(Contour.P_CONTOUR, Utils.LogResponse(1 - ParameterInfo[P_CONTOUR].Value)); OutLP.SetParam(0, 1600f + Utils.ExpResponse(ParameterInfo[P_HAIR].Value) * 11000f); Hp1.Update(); LpNoise.Update(); GainTF.Update(); PostGain.Update(); SaturateLP.Update(); ClipperHP.Update(); Tonestack.Update(); TF2.Update(); Contour.Update(); OutHP.Update(); OutLP.Update(); }
private void UpdateAll() { Hipass1.SetParam(0, 10f + (float)Math.Round(ParameterInfo[P_TIGHT].Value) * 300f); Hipass1.Update(); Lowpass1.Update(); Gain.SetParam(TFGain.P_GAIN, Utils.ExpResponse(ParameterInfo[P_GAIN].Value)); Gain.SetParam(TFGain.P_RUETZ, Math.Round(ParameterInfo[P_RUETZ].Value)); Gain.Update(); HipassDC.Update(); double freq = (1.0 / (2.0 * Math.PI * 0.0033e-6 * (2500 + 100000 * Utils.ExpResponse(ParameterInfo[P_FILTER].Value)))); // Range: 19292.0Hz to 470.0Hz Filter.SetParam(Lowpass1.P_FREQ, freq); Filter.Update(); Hipass3.Update(); if (e != null) { e.UpdateParameters(); } }