frequency
Summary
The frequency (in Hertz) of the periodic waveform. This parameter is a-rate.
Property of apis/webaudio/OscillatorNodeapis/webaudio/OscillatorNode
Syntax
Note: This property is read-only.
var result = OscillatorNode.frequency;
Examples
var oscillator = audioCtx.createOscillator();
oscillator.frequency.value = 3000; // value in hertz
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft