public IEffect genEffect(CommandSelections selection)
        {
            IEffect effect = null;

            switch (selection.SelectedEffectType)
            {
            case EffectType.Bend:
                effect = Bend.createInstance(selection.BendAmount ?? .5, selection.Returns ?? false);
                break;

            case EffectType.Pinch_Harmonic:
                effect = PinchHarmonic.createInstance();
                break;

            case EffectType.Vibrato:
                effect = Vibrato.createInstance(selection.Wide ?? false);
                break;
            }
            selection.SelectedEffect = effect;
            return(effect);
        }
Example #2
0
 public override IEffect createEffect()
 {
     return(Vibrato.createInstance(Wide));
 }