The OscillatorNode()
constructor of the Web Audio API creates a new OscillatorNode
object which is an AudioNode
that represents a periodic waveform, like a sine wave, optionally setting the node's properties' values to match values in a specified object.
If the default values of the properties are acceptable, you can optionally use the BaseAudioContext.createOscillator()
factory method instead; see Creating an AudioNode.