This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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