Package org.jsynthlib.device.viewcontroller.widgets.EnvelopeWidget

Examples of org.jsynthlib.device.viewcontroller.widgets.EnvelopeWidget.Node


    }

    @Override
    public int getMin() {
        Param param = widget.getParams()[getFader() - getSliderNum()];
        Node node = widget.getNodes()[param.node];
        if (param.isX) {
            return node.getMinX();
        } else {
            return node.getMinY();
        }
    }
View Full Code Here


    }

    @Override
    public int getMax() {
        Param param = widget.getParams()[getFader() - getSliderNum()];
        Node node = widget.getNodes()[param.node];
        if (param.isX) {
            return node.getMaxX();
        } else {
            return node.getMaxY();
        }
    }
View Full Code Here

    }

    @Override
    public int getValue() {
        Param param = widget.getParams()[getFader() - getSliderNum()];
        Node node = widget.getNodes()[param.node];
        if (param.isX) {
            return node.getPmodelX().get();
        } else {
            return node.getPmodelY().get();
        }
    }
View Full Code Here

            try {
                EnvelopeWidget envWidget = (EnvelopeWidget) sysexWidget;
                StringBuilder envelopeValue = new StringBuilder();
                Node[] nodes = envWidget.nodes;
                for (int i = 0; i < nodes.length; i++) {
                    Node node = nodes[i];

                    final IParamModel modelX = getNodeParamModel(node, true);
                    if (modelX != null) {
                        int valueX = modelX.get();
                        envelopeValue.append(valueX).append(";");
View Full Code Here

TOP

Related Classes of org.jsynthlib.device.viewcontroller.widgets.EnvelopeWidget.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.