Package jm.audio.io

Examples of jm.audio.io.SampleOut


        //Envelope env = new Envelope(filt,
        //new double[] {0.0, 0.0, 0.1, 1.0, 0.2, 0.6, 0.8, 0.4, 1.0, 0.0});
        ADSR env = new ADSR(filt, 20, 100, 0.6, 400);
        Volume vol = new Volume(env);
        StereoPan span = new StereoPan(vol);
        SampleOut sout = new SampleOut(span);
    }
View Full Code Here


        Oscillator sin = new Oscillator(this, 2, 44100, 2);
        //SampleIn sin = new SampleIn(this, fileName);
        //Filter lpf = new Filter(sin, bandwidthBottom, Filter.LOW_PASS);
        //Filter hpf = new Filter(lpf, bandwidthTop, Filter.HIGH_PASS);
        AllFGTR fgtr = new AllFGTR(/*hpf*/sin, grainDuration, bandwidthTop, bandwidthBottom, grainsPerSecond);
        SampleOut sout = new SampleOut(fgtr);
    }
View Full Code Here

        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

        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});
        // respond to note dynamics
        Volume vol = new Volume(env);
        // save to a file
        SampleOut sout = new SampleOut(vol);
    }
View Full Code Here

                Oscillator.SINE_WAVE, WaveTable.AMPLITUDE);
        Envelope env = new Envelope(carrier,
                new double[]{0.0, 0.0, 0.5, 1.0, 1.0, 0.0});
        Volume vol = new Volume(env, (float) 1.0);
        StereoPan span = new StereoPan(vol);
        SampleOut sout = new SampleOut(span);
    }
View Full Code Here

    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

        Add add = new Add(new AudioObject[]{env, offsetAmp});
        Oscillator carr = new Oscillator(add,
                Oscillator.SINE_WAVE, WaveTable.AMPLITUDE);
        Envelope env2 = new Envelope(carr,
                new double[]{0.0, 0.0, 0.5, 1.0, 1.0, 0.0});
        SampleOut sout = new SampleOut(env2);
    }
View Full Code Here

        Volume wtAmp = new Volume(modulator);
        Value offsetAmp = new Value(this, this.sampleRate, 1, (float) 0.5);
        Add add = new Add(new AudioObject[]{wtAmp, offsetAmp});
        Oscillator carrier = new Oscillator(add,
                Oscillator.SINE_WAVE, Oscillator.AMPLITUDE);
        SampleOut sout = new SampleOut(carrier);
    }
View Full Code Here

        Oscillator wt = new Oscillator(this, Oscillator.SABERSAW_WAVE,
                this.sampleRate, 2);
        Envelope env = new Envelope(wt, pointArray);
        Volume vol = new Volume(env, (float) 1.0);
        StereoPan span = new StereoPan(vol);
        if (output == RENDER) sout = new SampleOut(span);
    }
View Full Code Here

        // carrier
        Oscillator carrier = new Oscillator(add, Oscillator.SINE_WAVE, Oscillator.FREQUENCY);
        Envelope ampEnv = new Envelope(carrier, new double[]{0.0, 0.0, 0.02, 1.0, 1.0, 0.0});
        Volume amp = new Volume(ampEnv);
        StereoPan pan = new StereoPan(amp);
        SampleOut sout = new SampleOut(pan);
    }
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.