Example #1
0
        private void SetParameterProvider()
        {
            switch (Type)
            {
            case IntegraChorusTypes.Chorus:    Parameters = new CommonChorus(this); break;

            case IntegraChorusTypes.Delay:     Parameters = new CommonDelay(this); break;

            case IntegraChorusTypes.GM2Chorus: Parameters = new CommonChorusGM2(this); break;

            default:
                Parameters = new CommonChorusOff(this);
                break;
            }
            ;

            ParametersChanged?.Invoke(this, new IntegraParametersChangedEventArgs(Parameters.GetType()));
            NotifyPropertyChanged(string.Empty);
        }
Example #2
0
        private void SetParameterProvider()
        {
            switch (Type)
            {
            case IntegraReverbTypes.Room1:
            case IntegraReverbTypes.Room2:
            case IntegraReverbTypes.Hall1:
            case IntegraReverbTypes.Hall2:
            case IntegraReverbTypes.Plate:
                Parameters = new CommonReverb(this);
                break;

            case IntegraReverbTypes.GM2:
                Parameters = new CommonReverbGM2(this);
                break;

            default:
                Parameters = new CommonReverbOff(this);
                break;
            }

            ParametersChanged?.Invoke(this, new IntegraParametersChangedEventArgs(Parameters.GetType()));
            NotifyPropertyChanged(string.Empty);
        }