Package jm.audio.io

Examples of jm.audio.io.SampleOut


    public void createChain() {
        Noise noise = new Noise(this, Noise.WHITE_NOISE, this.sampleRate, this.channels);
        Envelope env = new Envelope(noise, pointArray);
        Volume vol = new Volume(env, (float) 1.0);
        StereoPan span = new StereoPan(vol);
        SampleOut 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, 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);
        SampleOut sout = new SampleOut(vol);
    }
View Full Code Here

        AudioObject[] overtones = {vol0, vol1, vol2, vol3};
        Add adder = new Add(overtones);
        Envelope env = new Envelope(adder, new double[]{0.0, 0.0, 0.1,
                1.0, 1.0, 0.0});
        StereoPan span = new StereoPan(env);
        SampleOut sout = new SampleOut(span);
    }
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

    /**
     * Initialisation method used to build the objects that this instrument will use
     */
    public void createChain() {
        Pluck plk = new Pluck(this, sampleRate, this.channels);
        SampleOut sout = new SampleOut(plk);
    }
View Full Code Here

    public void createChain() {
        Oscillator osc = new Oscillator(this, Oscillator.SINE_WAVE,
                this.sampleRate, this.channels);
        Envelope env = new Envelope(osc,
                new double[]{0.0, 0.0, 0.1, 1.0, 1.0, 0.0});
        SampleOut sout = new SampleOut(env);
    }
View Full Code Here

        Oscillator wt2 = new Oscillator(this, Oscillator.SINE_WAVE,
                this.sampleRate, this.channels);
        Envelope env2 = new Envelope(wt2,
                new double[]{0.0, 0.0, 0.5, 1.0, 1.0, 0.0});
        Add add = new Add(new AudioObject[]{env, env2});
        SampleOut sout = new SampleOut(add);
    }
View Full Code Here

    public void createChain() {
        Pluck plk = new Pluck(this, this.sampleRate, this.channels, this.feedback);
        Volume vol = new Volume(plk);
        StereoPan span = new StereoPan(vol);
        Envelope env = new Envelope(span, new double[]{0.0, 1.0, 0.9, 1.0, 1.0, 0.0});
        SampleOut sout;
        if (output == RENDER) sout = new SampleOut(env);
    }
View Full Code Here

            vol[i] = new Volume(env[i], (float) overtoneVolumes[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

    public void createChain() {
        Noise noise = new Noise(this, Noise.FRACTAL_NOISE, this.sampleRate);
        Envelope env = new Envelope(noise, pointArray);
        Volume vol = new Volume(env, (float) 1.0);
        StereoPan span = new StereoPan(vol);
        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.