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.
Documentation OscillatorNode by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Variables
read onlydetune:AudioParam
An a-rate AudioParam
representing detuning of oscillation in cents (though the AudioParam` returned is read-only, the value it represents is not.)
read onlyfrequency:AudioParam
An a-rate AudioParam
representing the frequency of oscillation in hertz (though the AudioParam` returned is read-only, the value it represents is not.)
Methods
setPeriodicWave (periodicWave:PeriodicWave):Void
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. This replaces the now-obsolete OscillatorNode.setWaveTable
.