Examples of mergeUseMap()


Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

    }

    public static IntegerUseMap getSampleUsage(IsolatedPreset[] presets) {
        IntegerUseMap m = new IntegerUseMap();
        for (int i = 0; i < presets.length; i++) {
            m.mergeUseMap(presets[i].referencedSampleUsage());
        }
        return m;
    }

    public static IntegerUseMap getSampleUsage(PresetContext pc, Integer[] presets) throws NoSuchContextException, NoSuchPresetException, PresetEmptyException {
View Full Code Here

Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

    }

    public static IntegerUseMap getSampleUsage(PresetContext pc, Integer[] presets) throws NoSuchContextException, NoSuchPresetException, PresetEmptyException {
        IntegerUseMap m = new IntegerUseMap();
        for (int i = 0; i < presets.length; i++)
            m.mergeUseMap(pc.presetSampleUsage(presets[i]));
        return m;
    }

    public static boolean autoMapGroupKeyWin(PresetContext pc, Integer preset, Integer group) throws PresetEmptyException, NoSuchPresetException, NoSuchGroupException, NoSuchContextException {
        return autoMapVoiceKeyWin(pc, preset, pc.getVoiceIndexesInGroup(preset, group));
View Full Code Here

Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

    public static IntegerUseMap getPresetSampleUsage(PresetContext pc, Integer[] presets) throws NoSuchPresetException, NoSuchContextException {
        IntegerUseMap um = new IntegerUseMap();
        for (int i = 0; i < presets.length; i++)
            try {
                um.mergeUseMap(pc.presetSampleUsage(presets[i]));
            } catch (PresetEmptyException e) {
                // ignore
            }
        return um;
    }
View Full Code Here

Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

    public static IntegerUseMap getPresetSampleUsage(ReadablePreset[] presets) throws NoSuchPresetException {
        IntegerUseMap um = new IntegerUseMap();
        for (int i = 0; i < presets.length; i++)
            try {
                um.mergeUseMap(presets[i].presetSampleUsage());
            } catch (PresetEmptyException e) {
                // ignore
            }
        return um;
    }
View Full Code Here

Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

    public static IntegerUseMap getPresetLinkPresetUsage(PresetContext pc, Integer[] presets) throws NoSuchPresetException, NoSuchContextException {
        IntegerUseMap um = new IntegerUseMap();
        for (int i = 0; i < presets.length; i++)
            try {
                um.mergeUseMap(pc.presetLinkPresetUsage(presets[i]));
            } catch (PresetEmptyException e) {
                // ignore
            }
        return um;
    }
View Full Code Here

Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

            for (int i = 0,j = targetPresets.size(); i < j; i++) {
                preset = (Integer) targetPresets.get(i);
                try {
                    p = getPresetRead(pc, preset);
                    try {
                        useMap.mergeUseMap(p.referencedSampleUsage());
                    } finally {
                        unlockPreset(preset);
                    }
                } catch (NoSuchPresetException e) {
                } catch (PresetEmptyException e) {
View Full Code Here

Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

    protected void validatePresetReferences() throws PresetReferenceException {
        IntegerUseMap pm = new IntegerUseMap();
        Set presetIndexes = new HashSet();

        for (int p = 0; p < presets.length; p++) {
            pm.mergeUseMap(presets[p].referencedPresetUsage());
            presetIndexes.add(presets[p].getOriginalIndex());
        }

        if (!presetIndexes.containsAll(pm.getUsedIntegerSet()))
            throw new PresetReferenceException("");
View Full Code Here

Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

            IntegerUseMap presetUsageMap = new IntegerUseMap();
            if (deep)
                for (int i = 0; i < presets.length; i++) {
                    try {
                        presetUsageMap.addIntegerReference(presets[i]);
                        presetUsageMap.mergeUseMap(pc.presetLinkPresetUsage(presets[i]));
                    } catch (PresetEmptyException e) {
                    } catch (NoSuchPresetException e) {
                        throw new PackageGenerationException("no such preset " + presets[i]);
                    } catch (NoSuchContextException e) {
                        throw new PackageGenerationException("no such context");
View Full Code Here

Examples of com.pcmsolutions.util.IntegerUseMap.mergeUseMap()

    public IntegerUseMap referencedSampleUsage() {
        IntegerUseMap useMap = new IntegerUseMap();

        for (int i = 0,j = voices.size(); i < j; i++)
            useMap.mergeUseMap(((VoiceObject) voices.get(i)).getReferencedSampleUsage());

        return useMap;
    }

    public Set referencedSampleSet() {
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.