public SoundFxPropertiesControl() { InitializeComponent(); try { _chorus = new ChorusSoundFx();; _compressor = new CompressorSoundFx(); _distortion = new DistortionSoundFx(); _echo = new EchoSoundFx(); _flanger = new FlangerSoundFx(); _gargle = new GargleSoundFx(); _paramEq = new ParamEqSoundFx(); _reverb = new ReverbSoundFx(); FxPropertiesControl.EffectChanged += new Delegates.SoundFxEventHandler(FxPropertiesControlEffectChanged); FrequencyParameterValueControl.UpdateParameter(100, 100000, "Frequency", 50000, 1); FrequencyParameterValueControl.ValueChangedEvent += new Delegates.ParameterValueActionEventHandler(OnFrequencyValueChangedEvent); } catch (System.Exception e) { MessageBox.Show(e.Message); } }
private void SetReverbFxToUi() { if (_soundFx.Type != SoundFxType.Reverb) { throw new Exception("Cannot set Reverb effect details, effect is of different type"); } ReverbSoundFx effect = (ReverbSoundFx)_soundFx; SetParamDetails(1, effect.InGain); SetParamDetails(2, effect.ReverbMix); SetParamDetails(3, effect.ReverbTime); SetParamDetails(4, effect.HighFreqRtRatio); SetParamDetails(5, null); SetParamDetails(6, null); WaveformPropertiesControl.Enabled = false; PhasePropertiesControl.Enabled = false; }