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.

detune

Summary

A detuning value (in cents) which will offset the frequency by the given amount. This parameter is a-rate.

Property of apis/webaudio/OscillatorNodeapis/webaudio/OscillatorNode

Syntax

Note: This property is read-only.

var result = OscillatorNode.detune;

Examples

var oscillator = audioCtx.createOscillator();
oscillator.detune.value = 100; // value in cents

Related specifications

W3C Web Audio API
W3C Editor’s Draft