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;
type: OscillatorType;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
type: K,
listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
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,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;setPeriodicWave(periodicWave: PeriodicWave): void;
}var OscillatorNode: {
prototype: OscillatorNode;
new (context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
};§Properties
§
readonly detune: AudioParam
[src]§
readonly frequency: AudioParam
[src]§
type: OscillatorType
[src]§Methods
§
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
[src]type: K,
listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
[src]type: K,
listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void§
setPeriodicWave(periodicWave: PeriodicWave): void
[src]