Package jm.audio.synth

Examples of jm.audio.synth.Envelope


        // set a fixed, rather the note determined, frequency
        if (frequency != -1.0f) {
            osc.setChoice(0);
            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


     * this instrument will use and specify thier interconnections.
     */
    public void createChain() {
        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,
                new double[]{0.0, 0.0, 0.05, 1.0, 0.3, 0.4, 1.0, 0.0});
        Volume vol = new Volume(env);
//    SampleOut sout = new SampleOut(vol);
    }
View Full Code Here

        Oscillator modulator = new Oscillator(this, Oscillator.SINE_WAVE, this.sampleRate,
                this.channels, Oscillator.FREQUENCY, (float) 5.0);
        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

     */
    public void createChain() {
        Oscillator wt1 = new Oscillator(this, Oscillator.SINE_WAVE,
                this.sampleRate, Oscillator.MONO);
        wt1.setFrqRatio((float) 2.2);
        Envelope env = new Envelope(wt1,
                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

        Oscillator wt = new Oscillator(this, Oscillator.SAWTOOTH_WAVE,
                this.sampleRate, this.channels);

        Filter filt = new Filter(wt, this.filterCutoff, Filter.HIGH_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);
View Full Code Here

     * any AudioObjects used by this instrument
     */
    public void createChain() {
        Oscillator osc = new Oscillator(this, Oscillator.SQUARE_WAVE,
                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

     * audio object(s) in that array. (One array element per channel)
     */
    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

     */
    public void createChain() {
        Oscillator mod = new Oscillator(this, Oscillator.SINE_WAVE,
                this.sampleRate, this.channels);
        mod.setFrqRatio((float) 7.5);
        Envelope env = new Envelope(mod,
                new double[]{0.0, 0.0, 0.4, 1.0, 1.0, 0.8});
        //Value offsetAmp = new Value(this, this.sampleRate,
        //            this.channels, (float)0.7);

        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

        StereoPan span = new StereoPan(vol);
        if (wholeFile) {
            sin.setWholeFile(wholeFile);
            if (output == RENDER) sout = new SampleOut(span);
        } else {
            Envelope env = new Envelope(span, points);
            if (output == RENDER) sout = new SampleOut(env);
        }
    }
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.