Package jm.audio.io

Examples of jm.audio.io.SampleOut


        Oscillator carrier = new Oscillator(add,
                Oscillator.SINE_WAVE, Oscillator.FREQUENCY);
        Envelope env2 = new Envelope(carrier,
                new double[]{0.0, 0.0, 0.1, 1.0, 1.0, 0.0});
        Volume amp = new Volume(env2);
        SampleOut sout = new SampleOut(amp);
    }
View Full Code Here


        Oscillator wt = new Oscillator(this, Oscillator.SQUARE_WAVE,
                this.sampleRate, 2);
        Envelope env = new Envelope(wt, pointArray);
        Volume vol = new Volume(env);
        StereoPan span = new StereoPan(vol);
        SampleOut sout = new SampleOut(span);
    }
View Full Code Here

        Oscillator wt = new Oscillator(this, Oscillator.SAWTOOTH_WAVE, this.sampleRate, this.channels);
        Filter filt = new Filter(wt, this.filterCutoff, Filter.LOW_PASS);
        Envelope env = new Envelope(filt, envValues);
        Volume vol = new Volume(env);
        StereoPan pan = new StereoPan(vol);
        SampleOut sout = new SampleOut(pan);
    }
View Full Code Here

            vol[i] = new Volume(env[i], (float) volVals[i]);
        }
        //And now the add object brings us back to one path.
        Add add = new Add(vol);
        StereoPan span = new StereoPan(add);
        SampleOut sout = new SampleOut(span);
    }
View Full Code Here

     * objects which head up the chain(s)
     */
    public void createChain() {
        //define the chain
        TextIn tin = new TextIn(this, fileName, 44100, 1);
        SampleOut sout = new SampleOut(tin);
    }
View Full Code Here

        Noise noise = new Noise(this, noiseType, this.sampleRate, channels);
        Envelope env = new Envelope(noise,
                new double[]{0.0, 0.0, 0.05, 1.0, 0.95, 1.0, 1.0, 0.0});
        Volume vol = new Volume(env);
        StereoPan span = new StereoPan(vol);
        SampleOut sout = new SampleOut(span);
    }
View Full Code Here

        Volume vol = new Volume(modulator, 10.0f);
        Oscillator carrier = new Oscillator(vol,
                Oscillator.SINE_WAVE, Oscillator.AMPLITUDE);
        Envelope env2 = new Envelope(carrier,
                new double[]{0.0, 0.0, 0.1, 1.0, 1.0, 0.0});
        SampleOut sout = new SampleOut(env2);
    }
View Full Code Here

                new double[]{0.0, 1.0, 1.0, 0.0});
        Oscillator wt2 = new Oscillator(env,
                Oscillator.SINE_WAVE, Oscillator.AMPLITUDE);
        Envelope env2 = new Envelope(wt2,
                new double[]{0.0, 0.0, 0.05, 1.0, 1.0, 0.0});
        SampleOut sout = new SampleOut(env2);
    }
View Full Code Here

        Envelope env = new Envelope(wt, pointArray);
        Volume vol = new Volume(env);
        Delay delay = new Delay(vol, 4000);
        AudioObject[] sources = {vol, delay};
        Add add = new Add(sources);
        SampleOut sout = new SampleOut(add);
    }
View Full Code Here

        Envelope env = new Envelope(add, pointArray);

        StereoPan span = new StereoPan(env);

        SampleOut sout = new SampleOut(span);

    }
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.