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

OscillatorNode

The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone.

interface OscillatorNode extends AudioScheduledSourceNode {
readonly detune: AudioParam;
readonly frequency: AudioParam;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
type: K,
listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
type: K,
listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
setPeriodicWave(periodicWave: PeriodicWave): void;
}
var OscillatorNode: {
prototype: OscillatorNode;
}
;

§Extends

§Properties

§
readonly detune: AudioParam
[src]
§
readonly frequency: AudioParam
[src]

§Methods

§
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
type: K,
listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
type: K,
listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
setPeriodicWave(periodicWave: PeriodicWave): void
[src]