createOscillator
Summary
Creates an OscillatorNode, a source representing a periodic waveform. It basically generates a constant tone…
Method of apis/webaudio/AudioContextapis/webaudio/AudioContext
Syntax
var = AudioContext.createOscillator();
Return Value
Returns an object of type
OscillatorNode
Examples
var audioCtx = new AudioContext();
var oscillator = audioCtx.createOscillator();
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft