OscillatorNode

open external class OscillatorNode(context: BaseAudioContext, options: OscillatorOptions = definedExternally) : AudioScheduledSourceNode(source)

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.

MDN Reference

Constructors

Link copied to clipboard
constructor(context: BaseAudioContext, options: OscillatorOptions = definedExternally)

Properties

Functions

Link copied to clipboard
fun connect(destinationParam: AudioParam, output: Int = definedExternally)

fun connect(destinationNode: AudioNode, output: Int = definedExternally, input: Int = definedExternally): AudioNode
Link copied to clipboard
fun disconnect(output: Int)
fun disconnect(destinationNode: AudioNode)
fun disconnect(destinationParam: AudioParam)
fun disconnect(destinationNode: AudioNode, output: Int)
fun disconnect(destinationParam: AudioParam, output: Int)
fun disconnect(destinationNode: AudioNode, output: Int, input: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun start(when: Double = definedExternally)
Link copied to clipboard
fun stop(when: Double = definedExternally)