Package jm.audio.synth

Examples of jm.audio.synth.Value


    /**
     * Initialisation method used to build the objects that
     * this instrument will use.
     */
    public void createChain() {
        Value modFreq = new Value(this, this.sampleRate, this.channels, (float) 5.0);
        Oscillator modulator = new Oscillator(modFreq, Oscillator.SINE_WAVE,
                Oscillator.FREQUENCY);
        Volume amp = new Volume(modulator, (float) 0.4);
        Oscillator carrier = new Oscillator(amp, Oscillator.SINE_WAVE, Oscillator.AMPLITUDE);
        SampleOut sout = new SampleOut(carrier);
View Full Code Here


     */
    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,
View Full Code Here

    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

TOP

Related Classes of jm.audio.synth.Value

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.