Package jm.audio.synth

Examples of jm.audio.synth.Envelope


        Value modfreq = new Value(this, this.sampleRate, this.channels, (float) 0.1);
        Oscillator sineMod = new Oscillator(modfreq, Oscillator.SINE_WAVE, Oscillator.FREQUENCY);
        sineMod.setAmp((float) this.modAmount);
        // filter
        Filter filt = new Filter(new AudioObject[]{osc, sineMod}, this.filterCutoff, Filter.HIGH_PASS);
        Envelope env = new Envelope(filt,
                new double[]{0.0, 0.0, 0.1, 1.0, 0.3, 0.6, 0.8, 0.2, 1.0, 0.0});
        SampleOut sout = new SampleOut(env);
    }
View Full Code Here


     * this instrument will use
     */
    public void createChain() {
        Oscillator wt = new Oscillator(this, Oscillator.SQUARE_WAVE,
                this.sampleRate, channels);
        Envelope env = new Envelope(wt, envArray);
        Volume vol = new Volume(env);
        StereoPan span = new StereoPan(vol);
        if (output == RENDER) sout = new SampleOut(span);
    }
View Full Code Here

     * any AudioObjects used by this instrument
     */
    public void createChain() {
        Noise osc = new Noise(this, Noise.WHITE_NOISE, this.sampleRate,
                this.channels);
        Envelope env = new Envelope(osc, new double[]{0.0, 0.0, 0.1, 1.0, 0.3, 0.0});
        Comb comb = new Comb(env, delay, decay);
        SampleOut sout = new SampleOut(comb);
    }
View Full Code Here

     */
    public void createChain() {
        Pluck plk = new Pluck(this, sampleRate, channels, feedback);
        Volume vol = new Volume(plk);
        StereoPan pan = new StereoPan(vol);
        Envelope env = new Envelope(pan, new double[]{0.0, 1.0, 0.9, 1.0, 1.0, 0.0});
    }
View Full Code Here

TOP

Related Classes of jm.audio.synth.Envelope

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.