Type alias VoiceBaseParams

VoiceBaseParams: {
    attackTime: number;
    audioDelay: number;
    decayTime: number;
    releaseTime: number;
    sustainLevel: number;
}

Parameters for the ADSR envelope of the synth.

Type declaration

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

  • releaseTime: number

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

  • sustainLevel: number

    Steady state amplitude.