sw-synth
    Preparing search index...

    Interface OscillatorVoiceParams

    Parameters for the timbre and ADSR envelope of the synth.

    interface OscillatorVoiceParams {
        attackTime: number;
        audioDelay: number;
        decayTime: number;
        periodicWave?: PeriodicWave;
        releaseTime: number;
        sustainLevel: number;
        type: OscillatorType;
    }

    Hierarchy (View Summary)

    Index

    Properties

    attackTime: number

    Attack time in seconds.

    audioDelay: number

    Audio delay in seconds. Increase on Firefox to reduce pops.

    decayTime: number

    Decay time constant (exponential decay from 1 to sustainLevel).

    periodicWave?: PeriodicWave

    Custom waveform.

    releaseTime: number

    Release time constant (exponential decay from sustainLevel to 0).

    sustainLevel: number

    Steady state amplitude.

    type: OscillatorType

    One of "sine", "sawtooth", "triangle", "square" or "custom" if periodicWave is set.