Examples of Oscillator


Examples of jm.audio.synth.Oscillator

    /**
     * Initialisation method used to build the objects that
     * this instrument will use.
     */
    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

Examples of jm.audio.synth.Oscillator

     * Initialisation method used to build the objects that
     * this instrument will use and specify thier interconnections.
     */
    public void createChain() {
        // oscilator
        Oscillator osc = new Oscillator(this, Oscillator.SQUARE_WAVE, this.sampleRate, this.channels);
        // filter mod
        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

Examples of jm.audio.synth.Oscillator

     * primary audio object(s) are the one or more
     * objects which head up the chain(s)
     */
    public void createChain() {
        // define the chain
        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

Examples of jm.audio.synth.Oscillator

    /**
     * Initialisation method used to build the objects that
     * 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

Examples of jm.audio.synth.Oscillator

    /**
     * Initialisation method used to build the objects that
     * this instrument will use.
     */
    public void createChain() {
        Oscillator modulator = new Oscillator(this, Oscillator.SINE_WAVE,
                this.sampleRate, 1);
        modulator.setFrqRatio((float) 7.23);
        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

Examples of jm.audio.synth.Oscillator

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

Examples of jm.audio.synth.Oscillator

        this.sampleRate = 44100;
        this.channels = 1;
    }

    public void createChain() throws AOException {
        Oscillator modulator = new Oscillator(this, Oscillator.TRIANGLE_WAVE,
                this.sampleRate, this.channels);
        //SampleOut so = new SampleOut(modulator,"jmusic.tmp");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.