Appendix A. Deprecation Notes
The Web Audio API is still evolving, and some methods are being added, removed, and renamed. This section describes some of the recent changes made to the API:
AudioBufferSourceNode.noteOn()has been changed tostart().AudioBufferSourceNode.noteGrainOn()has been changed tostart().AudioBufferSourceNode.noteOff()has been changed tostop().AudioContext.createGainNode()has been changed tocreateGain().AudioContext.createDelayNode()has been changed tocreateDelay().AudioContext.createJavaScriptNode()has been changed tocreateScriptProcessor().OscillatorNode.noteOn()has been changed tostart().OscillatorNode.noteOff()has been changed tostop().AudioParam.setTargetValueAtTime()has been changed tosetTargetAtTime().
In addition to these changes, many of the constants in the Web Audio
API are changing from variables into string enumerations. For example,
filter types are going from filter.LOWPASS to lowpass, oscillator types are going from osc.SINE to sine, etc.
Throughout the book, I’ve used new versions of all of the APIs, so those using older implementations of the API may need to revert back to earlier methods and constant naming.
For the most up-to-date information regarding naming changes, see the Web Audio specification.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access