W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

[web-audio-api] defaults for OscillatorNode (#211)

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:29:05 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/211@github.com>
> Originally reported on W3C Bugzilla [ISSUE-22287](https://www.w3.org/Bugs/Public/show_bug.cgi?id=22287) Wed, 05 Jun 2013 18:56:46 GMT
> Reported by Ralph Giles
> Assigned to 

https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#attributes-OscillatorNode defines the default 'type' as 'sine', but doesn't supply defaults for frequency or detune. However it is possible to create an Oscillator node and start it playing without explicitly setting values to these parameters.

I suggest the spec document the following defaults:

  'frequency': The default value is 440.
  'detune': The default value is 0.

These are unsurprising, and are what we're using in Firefox. Also sounds like what Chrome is using.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/211
Received on Wednesday, 11 September 2013 14:31:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:24 UTC