Results 1 - 8 of 8

OscillatorNode

The OscillatorNode interface represents a periodic waveform, like a sine wave. It is an AudioNode audio-processing module that causes a given frequency of sine wave to be created — in effect, a constant tone.
API Interface OscillatorNode Reference Web Audio API

OscillatorNode.onended

The onended property of the OscillatorNode interface is used to set the event handler for the ended event, which fires when the tone has stopped playing.
API onended OscillatorNode Property Reference Web Audio API

OscillatorNode.setPeriodicWave()

The setPeriodicWave() method of the OscillatorNode interface is used to point to a PeriodicWave defining a periodic waveform that can be used to shape the oscillator's output, when type = "custom" is used.
API Method OscillatorNode Reference setPeriodicWave Web Audio API

OscillatorNode.start()

The following example shows basic usage of an AudioContext to create an oscillator node. For an applied example, check out our Violent Theremin demo (see app.js for relevant code).
API Method OscillatorNode Reference start Web Audio API

OscillatorNode.stop()

The following example shows basic usage of an AudioContext to create an oscillator node. For an applied example, check out our Violent Theremin demo (see app.js for relevant code).
API Method OscillatorNode Reference stop Web Audio API

OscillatorNode.type

A DOMString specifying the shape of oscillator wave. The different available values are:
API OscillatorNode Property Reference Type Web Audio API