This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22287 - defaults for OscillatorNode
Summary: defaults for OscillatorNode
Status: CLOSED FIXED
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: TBD
Assignee: Chris Rogers
QA Contact: public-audio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 18:56 UTC by Ralph Giles
Modified: 2013-09-05 16:45 UTC (History)
2 users (show)

See Also:


Attachments

Description Ralph Giles 2013-06-05 18:56:46 UTC
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.
Comment 1 paul@paul.cx 2013-08-30 16:38:01 UTC
This is not controversial.

I pushed a spec change with what WebKit/Blink and Gecko do.

https://dvcs.w3.org/hg/audio/rev/d5abda1da9fc