Examples of IsolatedSample


Examples of com.pcmsolutions.device.EMU.E4.preset.IsolatedSample

                }
                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

Examples of com.pcmsolutions.device.EMU.E4.preset.IsolatedSample

                    final int j = destRowObjects.length;
                    for (int i = j - 1; i >= 0; i--) {
                        final int f_i = i;
                        final Object sobj = destRowObjects[i];
                        if (sobj instanceof ContextEditableSample) {
                            IsolatedSample is = null;
                            try {
                                if (i == 0)
                                    is = ips.getIsolatedSample(i);
                                else
                                    is = ips.getIsolatedSample(i);
                                is.doAssert();
                            } catch (IsolatedSampleUnavailableException e) {
                                e.printStackTrace();
                            } finally {
                                z.updateProgressElement(progressOwner);
                                if (is == null) {
                                    z.updateProgressElement(progressOwner);
                                    if (i >= j - 1)
                                        z.endProgressElement(progressOwner);
                                    errors++;
                                    continue;
                                }
                            }
                            final IsolatedSample f_is = is;
                            // new ZDBModifyThread("D&D: New Samples from IsolatedSamples") {
                            //   public void run() {
                            // TODO!! should use a signal here to achieve correct ordering of threads
                            try {
                                z.setProgressElementIndeterminate(progressOwner, true);
                                z.updateProgressElementTitle(progressOwner, "Copying " + f_is.getName() + " to " + ((ContextEditableSample) sobj).getSampleDisplayName());
                                ((ContextEditableSample) sobj).newSample(f_is, f_is.getName());
                                f_is.zDispose();
                            } catch (NoSuchSampleException e) {
                                JOptionPane.showMessageDialog(ZoeosFrame.getInstance(), e.getMessage(), "Problem", JOptionPane.ERROR_MESSAGE);
                                errors++;
                                continue;
                            } catch (IsolatedSampleUnavailableException e) {
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.IsolatedSample

            ss.setUseTempNames(false);
            ArrayList fl = new ArrayList();
            try {
                for (int i = 0, j = ss.getSampleCount(); i < j; i++) {
                    try {
                        IsolatedSample is;
                        is = ss.getIsolatedSample(i);
                        is.doAssert();
                        fl.add(is.getLocalFile());
                    } catch (IsolatedSampleUnavailableException e) {
                        return null;
                    }
                }
                return fl;
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.IsolatedSample

    public IsolatedSample getIsolatedSample(final Integer sample, final AudioFileFormat.Type format) throws NoSuchSampleException, NoSuchContextException, SampleEmptyException {
        SDBReader reader = sampleDatabaseProxy.getDBRead();
        try {
            reader.getSampleRead(this, sample);
            try {
                return new IsolatedSample() {
                    private final String name = getSampleName(sample);
                    private SampleRetrievalInfo sri = new Impl_SampleRetrievalInfo(sample, format);
                    private File localFile = sri.getFile();
                    private AudioFileFormat.Type aFormat = format;
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.IsolatedSample

        SDBReader reader = sampleDatabaseProxy.getDBRead();
        try {
            reader.getSampleRead(this, sample);
            try {
                //return new Impl_IsolatedSample(this, sampleMediator, sample, fileName);
                return new IsolatedSample() {
                    private final String name = getSampleName(sample);
                    private SampleRetrievalInfo sri = new Impl_SampleRetrievalInfo(sample, new File(TempFileManager.getTempDirectory(), fileName), format, true);
                    private File localFile = sri.getFile();
                    private AudioFileFormat.Type aFormat = format;
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.preset.IsolatedSample

        SDBReader reader = sampleDatabaseProxy.getDBRead();
        try {
            reader.getSampleRead(this, sample);
            try {
                // return new Impl_IsolatedSample(this, sampleMediator, sample, File);
                return new IsolatedSample() {
                    private final String name = getSampleName(sample);
                    //private SampleRetrievalInfo sri = new Impl_SampleRetrievalInfo(sample, File, format, true);
                    private File localFile = file;
                    private AudioFileFormat.Type aFormat = format;
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.