Package jm.audio.synth

Examples of jm.audio.synth.Granulator


                // (8820 = buffer length of 1/5 of a second)
                RTIn grin = new RTIn(this, 44100, 2, 8820);
                //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 {
                // 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.synth.Granulator

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.