Examples of DeviceParameterContext


Examples of com.pcmsolutions.device.EMU.E4.parameter.DeviceParameterContext

        dropOverExtent = -1;
    }

    public void setSelection(VoiceParameterSelection sel) {
        try {
            DeviceParameterContext dpc = voices[0].getPreset().getDeviceParameterContext();
            Integer[] ids = sel.getIds();
            Integer[] vals = sel.getVals();
            int thisCat = VoiceParameterSelection.voiceCategoryStringToEnum(category);
            int selCat = sel.getCategory();
            if (thisCat != selCat) {
                for (int i = 0,j = ids.length; i < j; i++) {
                    // need convert ids first
                    ids[i] = ParameterUtilities.convertVoiceEnvelopeId(thisCat, selCat, ids[i]);
                    vals[i] = dpc.getParameterDescriptor(ids[i]).constrainValue(vals[i]);
                }
            }

            try {
                PresetContextMacros.setContextVoicesParam(voices, ids, vals);
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.parameter.DeviceParameterContext

        this.ids = new Integer[ids.length];
        this.vals = new Integer[ids.length];
        //this.valStrings = new String[ids.length];
        this.category = category;
        MasterContext mc = dev.getMasterContext();
        DeviceParameterContext dpc = dev.getDeviceParameterContext();
        this.ids = (Integer[]) ids.clone();
        vals = mc.getMasterParams(ids);

        /*for (int i = 0, n = ids.length; i < n; i++) {
            try {
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.parameter.DeviceParameterContext

        return UIColors.getDefaultFG();
    }

    public MasterPanel init(DeviceContext dc) throws ZDeviceNotRunningException, IllegalParameterIdException {
        this.device = dc;
        DeviceParameterContext dpc = dc.getDeviceParameterContext();
        List categoryList = dpc.getMasterContext().getCategories();
        Collections.sort(categoryList);

        int otherColIndex = 0;
        for (int i = 0,j = categoryList.size(); i < j; i++) {
            String cat = (String) categoryList.get(i);
            List ids = dpc.getMasterContext().getIdsForCategory(cat);
            List modelList = (dc.getMasterContext().getEditableParameterModels((Integer[]) ids.toArray(new Integer[ids.size()])));
            EditableParameterModel[] models = (EditableParameterModel[]) modelList.toArray(new EditableParameterModel[modelList.size()]);
            Action ref = new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.