This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Audio-ISSUE-83 (OscillatorDetune): Oscillator.detune attribute not defined [Web Audio API] http://www.w3.org/2011/audio/track/issues/83 Raised by: Philip Jägenstedt On product: Web Audio API https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Oscillator The behavior of the Oscillator detune attribute is not well defined. It seems superfluous, since the base frequency can simply be set to the desired (detuned) frequency instead of being calculated from frequency and detune. Suggestion: drop the detune attribute.
Fixed: https://dvcs.w3.org/hg/audio/rev/cb14c7445a27 The .detune attribute is important because common synthesis algorithms require controlling both the base frequency and a pitch offset.
Question answered by computedFrequency(t) = frequency(t) * pow(2, detune(t) / 1200)
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.