Package com.pcmsolutions.device.EMU.E4

Examples of com.pcmsolutions.device.EMU.E4.Remotable$Parameter


            }
        };
    }

    protected void makeVoicePanel(java.util.List expansionMemory) throws ZDeviceNotRunningException {
        ContextEditablePreset cp = (ContextEditablePreset) preset;
        RowHeaderedAndSectionedTablePanel vp;
        voiceOverviewTable = new EditableVoiceOverviewTable(cp);
        if (expansionMemory != null)
            ((VoiceOverviewTableModel) voiceOverviewTable.getModel()).setExpansionMemory(expansionMemory);
View Full Code Here


                }
                final int f_i = i;
                final String name = (stripIndex ? ZUtilities.removeFirstPattern(ZUtilities.stripExtension(files[f_i].getName()), AudioUtilities.sampleIndexPattern) :
                        ZUtilities.stripExtension(files[f_i].getName()));
                try {
                    sc.newSample(new IsolatedSample() {
                        public String getName() {
                            return name;
                        }

                        public Integer getOriginalIndex() {
View Full Code Here

            }
        };
        JMenuItem pmi = null;
        try {
            ArrayList selPresets = new ArrayList();
            PresetContext dpc = device.getDefaultPresetContext();
            MultiModeContext mmc = device.getMultiModeContext();
            for (int i = 0; i < selRows.length; i++) {
                Integer preset = mmc.getPreset(IntPool.get(selRows[i] + 1));        // +1 because midi channels indexed from 1
                if (preset.intValue() >= 0)
                    selPresets.add(dpc.getReadablePreset(preset));
            }
            if (selPresets.size() > 0) {

                Object[] sp = ZUtilities.eliminateDuplicates(selPresets.toArray());
                String name = (sp.length > 1 ? "Presets on selected channels" : ((ReadablePreset) sp[0]).getPresetDisplayName());
View Full Code Here

        generatePanels();

        if (voice.getPreset().getIcon() instanceof PresetIcon)
            icon = new VoiceEditingIcon((PresetIcon) voice.getPreset().getIcon());

        pla = new PresetListenerAdapter() {
            public void presetNameChanged(PresetNameChangeEvent ev) {
            }

            public void presetRefreshed(PresetRefreshEvent ev) {
                revalidate();
View Full Code Here

    }

    public boolean editCellAt(int row, int column, EventObject e) {
        if (e instanceof MouseEvent && ((MouseEvent) e).getClickCount() >= 2) {
            if (getValueAt(row, column) instanceof ReadablePreset) {
                final ReadablePreset p = (ReadablePreset) getValueAt(row, column);
                new ZDBModifyThread("Preset Default Action") {
                    public void run() {
                        p.performDefaultAction();
                    }
                }.start();
            }
        }
        return false;
View Full Code Here

        if (newSelection)
            this.clearSelection();
        String name;
        Integer firstSelectedPreset = null;
        for (int i = 0,j = pctm.getRowCount(); i < j; i++) {
            ReadablePreset preset = (ReadablePreset) pctm.getValueAt(i, 1);
            try {
                if (useDisplayName)
                    name = preset.getPresetDisplayName();
                else
                    name = preset.getPresetName();
            } catch (NoSuchPresetException e) {
                continue;
            } catch (PresetEmptyException e) {
                name = DeviceContext.EMPTY_PRESET;
            }
            m = p.matcher(name);

            boolean res = false;
            if (fullMatch)
                res = m.matches();
            else
                res = m.find();

            if (res) {
                if (firstSelectedPreset == null)
                    firstSelectedPreset = preset.getPresetNumber();
                this.addRowSelectionInterval(i, i);
                this.addColumnSelectionInterval(0, 0);
            }
        }
        return firstSelectedPreset;
View Full Code Here

            for (int i = 0; i < destSamples.length; i++)
                sendSample(destSamples[i], is.getLocalFile(), destNames[i]);
        }

        public void copySample(Integer srcSample, Integer[] destSamples, String[] destNames) throws SampleMediator.SampleMediationException {
            SampleRetrievalInfo sri = new Impl_SampleRetrievalInfo(srcSample);
            retrieveSample(sri);
            for (int i = 0; i < destSamples.length; i++)
                if (srcSample.intValue() != destSamples[i].intValue())
                    sendSample(destSamples[i], sri.getFile(), destNames[i]);
        }
View Full Code Here

    protected JMenuItem[] getCustomMenuItems() {
        JMenuItem smi = null;
        Object[] selObjs = ZUtilities.eliminateInstances(this.getSelObjects(), String.class);
        try {
            SampleContext sc = preset.getDeviceContext().getDefaultSampleContext();
            if (ClassUtility.areAllInstanceOf(selObjs, ReadableParameterModel.class)) {
                ReadableParameterModel[] models = (ReadableParameterModel[]) Arrays.asList(selObjs).toArray(new ReadableParameterModel[selObjs.length]);
                if (ParameterModelUtilities.areAllOfId(models, 38) && !ParameterModelUtilities.areAllOfValue(models, 0)) {
                    Set s = ParameterModelUtilities.getValueSet(models);
                    ReadableSample[] samples = new ReadableSample[s.size()];
                    int si = 0;
                    for (Iterator i = s.iterator(); i.hasNext();)
                        samples[si++] = convertPassThroughSample(sc.getReadableSample((Integer) i.next()));
                    String mstr;
                    if (samples.length == 1)
                        mstr = samples[0].getSampleDisplayName();
                    else
                        mstr = "Selected samples";
View Full Code Here

            for (int i = 0; i < destSamples.length; i++)
                sendSample(destSamples[i], is.getLocalFile(), destNames[i]);
        }

        public void copySample(Integer srcSample, Integer[] destSamples, String[] destNames) throws SampleMediator.SampleMediationException {
            SampleRetrievalInfo sri = new Impl_SampleRetrievalInfo(srcSample);
            retrieveSample(sri);
            for (int i = 0; i < destSamples.length; i++)
                if (srcSample.intValue() != destSamples[i].intValue())
                    sendSample(destSamples[i], sri.getFile(), destNames[i]);
        }
View Full Code Here

        for (int i = 0,j = sobjs.length; i < j; i++)
            if (sobjs[i] instanceof ReadablePreset)
                readablePresets.add(sobjs[i]);

        return new ContextPresetSelection(presetContext.getDeviceContext(), presetContext, (ReadablePreset[]) readablePresets.toArray(new ReadablePreset[readablePresets.size()]));
    }
View Full Code Here

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.Remotable$Parameter

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.