Package com.pcmsolutions.device.EMU.E4.preset

Examples of com.pcmsolutions.device.EMU.E4.preset.ContextEditablePreset$EditableLink


    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ContextEditablePreset[] presets = getTargets();
        int num = presets.length;
        ContextEditablePreset p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                newVoice(p);
View Full Code Here


    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ContextEditablePreset[] presets = getTargets();
        int num = presets.length;
        ContextEditablePreset p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                if (p == null)
View Full Code Here

            throw new CommandFailedException("not a valid offset");
        }

        ContextEditablePreset[] presets = getTargets();
        int num = presets.length;
        ContextEditablePreset p;
        try {
            for (int n = 0; n < num; n++) {
                offsetLinks(presets[n], offset);
                Thread.yield();
            }
View Full Code Here

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ContextEditablePreset[] presets = getTargets();
        int num = presets.length;
        ContextEditablePreset p;
        int mode;
        int zc = 0;
        for (int i = 0; i < presets.length; i++)
            try {
                zc += PresetContextMacros.presetZoneCount(presets[i].getPresetContext(), presets[i].getPresetNumber());
            } catch (Exception e) {
                throw new CommandFailedException(e.getMessage());
            }

        if (zc != 0) {
            int res = UserMessaging.askOptions("Original key matching", "Apply Matching to", new String[]{"Voices", "Zones", "Voices and Zones"});
            if (res == JOptionPane.CLOSED_OPTION)
                return;
            if (res == 0)
                mode = PresetContext.PRESET_VOICES_SELECTOR;
            else if (res == 1)
                mode = PresetContext.PRESET_ZONES_SELECTOR;
            else
                mode = PresetContext.PRESET_VOICES_AND_ZONES_SELECTOR;
        } else
            mode = PresetContext.PRESET_VOICES_SELECTOR;

        if (num == 0) {
            // try use primary target
            p = getTarget();
            PresetContextMacros.trySetOriginalKeyFromSampleName(p.getPresetContext(), new Integer[]{p.getPresetNumber()}, mode);
        } else {
            for (int i = 0; i < presets.length; i++)
                PresetContextMacros.trySetOriginalKeyFromSampleName(presets[i].getPresetContext(), new Integer[]{presets[i].getPresetNumber()}, mode);
        }
View Full Code Here

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ContextEditablePreset[] presets = getTargets();
        int num = presets.length;
        ContextEditablePreset p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                newLink(p);
View Full Code Here

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        ContextEditablePreset[] presets = getTargets();
        int num = presets.length;
        ContextEditablePreset p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                if (p == null)
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

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.preset.ContextEditablePreset$EditableLink

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.