Package jm.audio.io

Examples of jm.audio.io.SampleOut


            osc.setFrq(frequency);
        }
        Envelope env = new Envelope(osc, envPoints);
        Volume vol = new Volume(env);
        StereoPan span = new StereoPan(vol);
        if (output == RENDER) sout = new SampleOut(span);
    }
View Full Code Here


        SampleIn sin = new SampleIn(this, fileName);
        NoteBufferReversed nb = new NoteBufferReversed(sin);
        ReSample reSample = new ReSample(nb, this.baseFreq);
        Volume vol = new Volume(reSample, (float) 1.0);
        Envelope env = new Envelope(vol, pointArray);
        SampleOut sout = new SampleOut(env, "jmusic.tmp");
    }
View Full Code Here

        // Filter - try changing this to a high pass filter
        Filter filt = new Filter(new AudioObject[]{add, sineMod}, this.filterCutoff, Filter.LOW_PASS);
        Envelope env = new Envelope(filt,
                new double[]{0.0, 0.0, 0.05, 1.0, 0.2, 0.3, 0.8, 0.2, 1.0, 0.0});
        Volume vol = new Volume(env);
        SampleOut sout = new SampleOut(vol);
    }
View Full Code Here

        Multiply filterControl = new Multiply(new AudioObject[]{modSource, modAmount});
        Oscillator wave = new Oscillator(this, Oscillator.SAWTOOTH_WAVE, this.sampleRate, this.channels);
        Filter filt = new Filter(new AudioObject[]{wave, filterControl}, this.filterCutoff, Filter.LOW_PASS);
        Envelope env = new Envelope(filt,
                new double[]{0.0, 0.0, 0.05, 1.0, 0.2, 0.4, 0.8, 0.3, 1.0, 0.0});
        SampleOut sout = new SampleOut(env);
    }
View Full Code Here

        Filter filt = new Filter(new AudioObject[]{summedWaves, mult}, this.filterCutoff, Filter.LOW_PASS);
        Envelope env = new Envelope(filt,
                new double[]{0.0, 0.0, 0.05, 1.0, 0.2, 0.4, 0.8, 0.3, 1.0, 0.0});
        Volume vol = new Volume(env);
        Compressor comp = new Compressor(vol);
        SampleOut sout = new SampleOut(comp);
    }
View Full Code Here

        AudioObject[] waves = {wt1, wt2, wt3, wt4, wt5, wt6, wt7};
        Add add = new Add(waves);
        Envelope env = new Envelope(add, pointArray);
        Volume vol = new Volume(env);
        StereoPan span = new StereoPan(vol);
        SampleOut sout = new SampleOut(span);
    }
View Full Code Here

        AudioObject[] waves = {span, span2};
        Add add = new Add(waves);
        // continue to process
        Envelope env = new Envelope(add, pointArray);
        Volume vol = new Volume(env);
        SampleOut sout = new SampleOut(vol);
    }
View Full Code Here

        Envelope env = new Envelope(wt, pointArray);
        Volume vol = new Volume(env);
        Filter filt = new Filter(vol, (float) (this.sampleRate / 2.1),
                Filter.LOW_PASS);
        StereoPan span = new StereoPan(filt);
        if (output == RENDER) sout = new SampleOut(span);
    }
View Full Code Here

        Oscillator wave = new Oscillator(this, Oscillator.SAWTOOTH_WAVE, this.sampleRate, this.channels);
        Filter filt = new Filter(new AudioObject[]{wave, filterControl}, this.filterCutoff, Filter.LOW_PASS);
        Envelope env = new Envelope(filt,
                new double[]{0.0, 0.0, 0.05, 1.0, 0.2, 0.4, 0.8, 0.3, 1.0, 0.0});
        Volume vol = new Volume(env);
        SampleOut sout = new SampleOut(vol);
    }
View Full Code Here

                grain = new Granulator(grin, 44100, 2, 50, 100);
                // }
                vol = new Volume(grain, 0.5f);
                Volume vol2 = new Volume(vol, 0.1f);
                pan = new StereoPan(vol2);
                SampleOut sout = new SampleOut(pan);
            } else {
                // if sounds is < 0 or > 6 and < 11 then it will
                // process an audio file. Default is 7.  Again it is
                // very open ended to accommodate wrong input numbers.
                SampleIn grin = new SampleIn(this, this.fileName);
                //if (premapped) {
//      grain = new Granulator(grin,durationArray,gpsArray,freqArray,ri,rgd,rf);
//        } else {
                grain = new Granulator(grin, 44100, 2, 50, 100);
                //}
                vol = new Volume(grain, 0.5f);
                Volume vol2 = new Volume(vol, 0.1f);
                pan = new StereoPan(vol2);
                SampleOut sout = new SampleOut(pan);
            }
        } else {
            // At this stage the only values left are between 0-6
            // These correspond directly to the oscillator input
            // values, so can be added directly.
            Oscillator grin = new Oscillator(this, sounds, 44100, 2);
            //if (premapped) {
//        grain = new Granulator(grin,durationArray,gpsArray,freqArray,ri,rgd,rf);
//    } else {
            grain = new Granulator(grin, 44100, 2, 50, 100);
            //}
            vol = new Volume(grain, 0.5f);
            Volume vol2 = new Volume(vol, 0.1f);
            pan = new StereoPan(vol2);
            SampleOut sout = new SampleOut(pan);
        }
    }
View Full Code Here

TOP

Related Classes of jm.audio.io.SampleOut

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.