示例#1
0
 public PinchHarmonicBounds(PinchHarmonic ph, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     pinch_harmonic = ph;
     note           = n;
     note_bounds    = n_bounds;
     info           = v_info;
 }
        private TreeNode buildPinchHarmonic(PinchHarmonic pinch_harmonic, Note note, IBounds bounds)
        {
            var bounded = new StaticSingleBounded(new PinchHarmonicBounds(pinch_harmonic, note, bounds, info, new UnorderedDelegate()));
            var handler = new StaticEffectMouseHandler(bounded.Bounds, new UnorderedMouseDelegate());
            var drawing = new StaticDrawingVisual(new PinchHarmonicDrawingStrategy(pinch_harmonic, bounded.Bounds, info, new UnorderedDelegate()));

            return(new EffectTreeNode(pinch_harmonic, bounded, handler, drawing));
        }
示例#3
0
        public PinchHarmonicDrawingStrategy(PinchHarmonic ph, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info           = v_info;
            pinch_harmonic = ph;
        }
        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);
        }
示例#5
0
 public override IEffect createEffect()
 {
     return(PinchHarmonic.createInstance());
 }