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(); } }