Package org.jsynthlib.xmldevice

Examples of org.jsynthlib.xmldevice.YEnvelopeParamSpec


        Node[] nodes = envWidget.getNodes();
        for (Node node : nodes) {
            EnvelopeNodeSpec nodeSpec = envelopeSpec.addNewEnvelopeNodeSpec();
            XEnvelopeParamSpec xParam = nodeSpec.addNewXParam();
            YEnvelopeParamSpec yParam = nodeSpec.addNewYParam();
            xParam.setInvert(node.isInvertX());
            xParam.setMax(node.getMaxX());
            if (node.getSenderX() != null) {
                MidiSender midiSenderX = xParam.addNewMidiSender();
                setSender(midiSenderX, node.getSenderX());
            }
            xParam.setMin(node.getMinX());
            xParam.setName(node.getNameX());
            if (node.getPmodelX() != null) {
                ParamModel paramModelX = xParam.addNewParamModel();
                setParamModel(paramModelX, node.getPmodelX());
            }
            xParam.setUuid(generateUuid());

            yParam.setBase(node.getBaseY());
            yParam.setMax(node.getMaxY());
            if (node.getSenderY() != null) {
                MidiSender midiSenderY = yParam.addNewMidiSender();
                setSender(midiSenderY, node.getSenderY());
            }
            yParam.setMin(node.getMinY());
            yParam.setName(node.getNameY());
            if (node.getPmodelY() != null) {
                ParamModel paramModelY = yParam.addNewParamModel();
                setParamModel(paramModelY, node.getPmodelY());
            }
            yParam.setUuid(generateUuid());
        }
    }
View Full Code Here

TOP

Related Classes of org.jsynthlib.xmldevice.YEnvelopeParamSpec

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.