Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/index.ts>dom.AudioParam

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.AudioParam
import { type dom } from "https://deno.land/x/evt@v2.4.22/lib/index.ts";
const { AudioParam } = dom;

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

Properties

automationRate: AutomationRate
readonly
defaultValue: number
readonly
maxValue: number
readonly
minValue: number
value: number

Methods

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