Interface BufferVoiceParams

Parameters for the audio buffers of the synth.

interface BufferVoiceParams {
    attackTime: number;
    audioDelay: number;
    decayTime: number;
    factory: BufferFactory;
    releaseTime: number;
    sustainLevel: number;
}

Hierarchy (view full)

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).

factory: BufferFactory

A function that returns unstarted AudioBufferSourceNode when queried with context, frequency and velocity.

releaseTime: number

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

sustainLevel: number

Steady state amplitude.