Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AudioParam

The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain).

interface AudioParam {
automationRate: AutomationRate;
readonly defaultValue: number;
readonly maxValue: number;
readonly minValue: number;
value: number;
cancelAndHoldAtTime(cancelTime: number): AudioParam;
cancelScheduledValues(cancelTime: number): AudioParam;
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
setTargetAtTime(
target: number,
startTime: number,
timeConstant: number,
): AudioParam;
setValueAtTime(value: number, startTime: number): AudioParam;
setValueCurveAtTime(
values: number[] | Float32Array,
startTime: number,
duration: number,
): AudioParam;
setValueCurveAtTime(
values: Iterable<number>,
startTime: number,
duration: number,
): AudioParam;
}
var AudioParam: {
prototype: AudioParam;
new (): AudioParam;
}
;

§Properties

§
automationRate: AutomationRate
[src]
§
readonly defaultValue: number
[src]
§
readonly maxValue: number
[src]
§
readonly minValue: number
[src]
§
value: number
[src]

§Methods

§
cancelAndHoldAtTime(cancelTime: number): AudioParam
[src]
§
cancelScheduledValues(cancelTime: number): AudioParam
[src]
§
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam
[src]
§
linearRampToValueAtTime(value: number, endTime: number): AudioParam
[src]
§
setTargetAtTime(
target: number,
startTime: number,
timeConstant: number,
): AudioParam
[src]
§
setValueAtTime(value: number, startTime: number): AudioParam
[src]
§
setValueCurveAtTime(
values: number[] | Float32Array,
startTime: number,
duration: number,
): AudioParam
[src]
§
setValueCurveAtTime(
values: Iterable<number>,
startTime: number,
duration: number,
): AudioParam
[src]