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

x/evt/lib/types/index.ts>dom.AnalyserNode

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

A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.

Properties

fftSize: number
readonly
frequencyBinCount: number
maxDecibels: number
minDecibels: number
smoothingTimeConstant: number

Methods

getByteFrequencyData(array: Uint8Array): void
getByteTimeDomainData(array: Uint8Array): void
getFloatFrequencyData(array: Float32Array): void
getFloatTimeDomainData(array: Float32Array): void