Example #1
0
 public VibratoBounds(Vibrato v, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     vibrato     = v;
     note        = n;
     note_bounds = n_bounds;
     info        = v_info;
 }
        private TreeNode buildVibrato(Vibrato vibrato, Note note, IBounds bounds)
        {
            var bounded = new StaticSingleBounded(new VibratoBounds(vibrato, note, bounds, info, new UnorderedDelegate()));
            var handler = new StaticEffectMouseHandler(bounded.Bounds, new UnorderedMouseDelegate());
            var drawing = new StaticDrawingVisual(new VibratoDrawingStrategy(vibrato, bounded.Bounds, info, new UnorderedDelegate()));

            return(new EffectTreeNode(vibrato, bounded, handler, drawing));
        }
Example #3
0
        public VibratoDrawingStrategy(Vibrato v, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info    = v_info;
            vibrato = v;
        }
        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 #5
0
 public override IEffect createEffect()
 {
     return(Vibrato.createInstance(Wide));
 }
Example #6
0
 public SimplifiedVibrato(Vibrato vibrato)
 {
     Wide = vibrato.Wide;
 }
 public VibratoMenuStrategy(GuiCommandExecutor gui, NodeClick click, Vibrato vib)
     : base(gui, click, EffectType.Vibrato)
 {
     init_wide = vib?.Wide ?? false;
     Wide      = init_wide;
 }