Package org.jsynthlib.device.model

Examples of org.jsynthlib.device.model.IParamModel


        int valueMin = sysexWidget.getValueMin();
        String name = sysexWidget.getLabel();
        ISender sender =
                getField("sender", ISender.class, sysexWidget,
                        SysexWidget.class);
        IParamModel paramModel =
                getField("paramModel", IParamModel.class, sysexWidget,
                        SysexWidget.class);

        if (sysexWidget instanceof CheckBoxWidget) {
//            CheckBoxWidget widget = (CheckBoxWidget) sysexWidget;
View Full Code Here


        EnvelopeNode[] nodes = widget.getNodes();
        int numFaders = 0;
        for (int i = 0; i < nodes.length; i++) {
            EnvelopeNode node = nodes[i];

            final IParamModel modelX = widget.getParamModel(node, true);
            if (modelX != null) {
                final int faderX = widget.getSliderNum() + numFaders++;
                int minX = node.getMinX();
                int maxX = node.getMaxX();

                Xmlparam paramX = envelopeParam.addNewXmlparam();
                paramX.setType(Xmlparam.Type.ENVELOPE_WIDGET);
                paramX.setLabel(node.getNameX());
                paramX.setMax(maxX);
                paramX.setMin(minX);

                widget.setFader(faderX);
                storeMessages(paramX, widget);
            }

            final IParamModel modelY = widget.getParamModel(node, false);
            if (modelY != null) {
                final int faderY = widget.getSliderNum() + numFaders++;
                int minY = node.getMinY();
                int maxY = node.getMaxY();
                Xmlparam paramY = envelopeParam.addNewXmlparam();
View Full Code Here

                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(";");
                    }

                    final IParamModel modelY = getNodeParamModel(node, false);
                    if (modelY != null) {
                        int valueY = modelY.get();
                        envelopeValue.append(valueY).append(";");
                    }
                }
                handleParamValue(parent, index, envelopeValue.toString());
            } catch (NoSuchFieldException e) {
View Full Code Here

        EnvelopeNode[] nodes = widget.getNodes();
        int numFaders = 0;
        for (int i = 0; i < nodes.length; i++) {
            EnvelopeNode node = nodes[i];

            final IParamModel modelX = widget.getParamModel(node, true);
            if (modelX != null) {
                Xmlparam paramX = xmlparamArray[numFaders];
                final int faderX = widget.getSliderNum() + numFaders++;
                int minX = node.getMinX();
                int maxX = node.getMaxX();

                assertEquals("Check paramX label: " + paramX.getLabel(),
                        paramX.getLabel(), node.getNameX().trim());
                assertEquals("Check paramX max: " + paramX.getLabel(),
                        paramX.getMax(), maxX);
                assertEquals("Check paramX min: " + paramX.getLabel(),
                        paramX.getMin(), minX);

                widget.setFader(faderX);
                testMessages(paramX, widget);
            }

            final IParamModel modelY = widget.getParamModel(node, false);
            if (modelY != null) {
                Xmlparam paramY = xmlparamArray[numFaders];
                final int faderY = widget.getSliderNum() + numFaders++;
                int minY = node.getMinY();
                int maxY = node.getMaxY();
View Full Code Here

TOP

Related Classes of org.jsynthlib.device.model.IParamModel

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.