JavaScript OscillatorNode : AudioNode
OscillatorNode is an audio source that generates a periodic waveform such as a sine, triangle, sawtooth, or square
wave (specified by the
type
property. Created by audioContext.createOscillator()
.
Instance Properties
detune : AudioParam
frequency : AudioParam
type : String
The type of wave generated by this
. Can be set to one of 'sine'
, 'square'
,
'sawtooth'
, or 'triangle'
. When using setPeriodicWave()
to define the waveform, type
will be set
to 'custom'
.
Example:
RunResults:
Copyright © PUBLIC Contributors