API

Interface RampOptions

Options for ramping an audio parameter's value.

interface RampOptions {
    duration?: number;
    shape?: AudioRampShape;
}
Index
duration?: number

Ramp time, in seconds. Clamped to at least the engine's parameterRampDuration.

Ramp shape. Defaults to "linear".