createOscillator

The createOscillator() method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform.

MDN Reference