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 Update(int?parameter) { if (parameter == null) { HighpassInput.SetParam(Highpass1.P_FREQ, 180); h3.SetParam(Highpass1.P_FREQ, 59.45f); hipassZenerB.SetParam(Highpass1.P_FREQ, 8); LowpassOutput.SetParam(Lowpass1.P_FREQ, 10000); // Channel A ------------------------------------------------------ TF1A.Update(); TF2A.SetParam(TF2.P_USE_R3, 0.0); } if (parameter == null || parameter == P_GAIN_A) { TF2A.SetParam(TF2.P_GAIN, Utils.ExpResponse(ParameterInfo[P_GAIN_A].Value)); } if (parameter == null) { PostVolumeHpA.SetParam(Highpass1.P_FREQ, 30); //Stage1A.Bias = -0.5f; Stage1A.Bias = -0.14f; Stage2A.Bias = -0.15f; } if (parameter == null || parameter == P_BASS_A || parameter == P_MID_A || parameter == P_TREBLE_A) { TonestackA.SetParam(Tonestack.P_BASS, Utils.ExpResponse(ParameterInfo[P_BASS_A].Value)); TonestackA.SetParam(Tonestack.P_MID, ParameterInfo[P_MID_A].Value); TonestackA.SetParam(Tonestack.P_TREBLE, ParameterInfo[P_TREBLE_A].Value); } if (parameter == null || parameter == P_PRES_A) { TFPresA.SetParam(TFPres.P_PRES, ParameterInfo[P_PRES_A].Value); } // Channel B ------------------------------------------------------ if (parameter == null) { TF1B.Update(); TF2B.SetParam(TF2.P_USE_R3, 1.0); TF1xB.Update(); } if (parameter == null || parameter == P_GAIN_B) { TF2B.SetParam(TF2.P_GAIN, Utils.ExpResponse(ParameterInfo[P_GAIN_B].Value)); } if (parameter == null || parameter == P_VOL_B) { TFVolumeB.SetParam(TFVolume.P_VOL, Utils.ExpResponse(ParameterInfo[P_VOL_B].Value)); } if (parameter == null) { Stage1B.Bias = 0.47 - 0.5f; Stage2B.Bias = 0.63 - 0.5f; } if (parameter == null || parameter == P_BASS_B || parameter == P_MID_B || parameter == P_TREBLE_B) { TonestackB.SetParam(Tonestack.P_BASS, Utils.ExpResponse(ParameterInfo[P_BASS_B].Value)); TonestackB.SetParam(Tonestack.P_MID, ParameterInfo[P_MID_B].Value); TonestackB.SetParam(Tonestack.P_TREBLE, ParameterInfo[P_TREBLE_B].Value); } if (parameter == null || parameter == P_PRES_B) { TFPresB.SetParam(TFPres.P_PRES, ParameterInfo[P_PRES_B].Value); } if (Editor != null) { Editor.UpdateParameters(); } }