API

Interface IAudioParameterRampOptions

Options for ramping an audio parameter's value.

interface IAudioParameterRampOptions {
    duration: number;
    shape: AudioParameterRampShape;
}
Index
duration: number

The ramp time, in seconds. Must be greater than 0. Defaults to 0.01 seconds. The audio parameter's value will reach the target value at the end of the duration.

The shape of the ramp to use for the parameter change. Defaults to AudioParameterRampShape.Linear.