Package org.jsynthlib.xmldevice

Examples of org.jsynthlib.xmldevice.PatchParams


        deviceDriverSpec.setDriverClass(driver.getClass().getName());
        deviceDriverSpec.setDriverType(XmlDriverDef.DriverType.PATCH);

        addGenericFields(driver, driverSpec, infoText);

        PatchParams patchParams = driverSpec.addNewPatchParams();
        groupMap.put("", patchParams);

        List<SysexWidget> sysexWidgets =
                SysexWidgetFinder.findSysexWidgets(patchEditor);
        if (sysexWidgets.size() > 0) {
View Full Code Here


                ContainerDisplayer.showContainerAndGetNameRecursive(
                        patchEditor, sysexWidget);
        if (path.endsWith("/")) {
            path = path.substring(0, path.length() - 1);
        }
        PatchParams patchParams = null;
        LOG.info("Looking for group " + path);
        if (groupMap.containsKey(path)) {
            patchParams = groupMap.get(path);
            LOG.info("Found group " + path);
        } else {
View Full Code Here

    private PatchParams createNewGroup(String path) {
        LOG.info("Creating group " + path);
        String[] split = path.split("/");
        String tempPath = null;
        PatchParams parentGroup = null;

        for (int i = 0; i < split.length - 1; i++) {
            String groupName = split[i];
            if (tempPath == null) {
                tempPath = groupName;
            } else {
                tempPath = tempPath + "/" + groupName;
            }

            if (groupMap.containsKey(tempPath)) {
                parentGroup = groupMap.get(tempPath);
            } else {
                parentGroup = createNewGroup(tempPath);
            }
        }

        PatchParamGroup paramGroup = parentGroup.addNewPatchParamGroup();
        paramGroup.setName(split[split.length - 1]);
        groupMap.put(path, paramGroup);
        return paramGroup;
    }
View Full Code Here

TOP

Related Classes of org.jsynthlib.xmldevice.PatchParams

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.