7 Node Graphs and Oscillators
In previous chapters, you learned the basics of working with JavaScript data types and how to use the Web Audio API to generate basic tones. In this chapter, you will use your understanding of JavaScript to get a better understanding of two core features of the Web Audio API: node graphs and oscillators.
The AudioContext() Method
The Web Audio API is accessed by using a collection of properties and methods of an object that you create using the AudioContext() method.
var audioContext = new AudioContext();
AudioContext() is a constructor that returns an object when you use the keyword new. Constructors and the ...
Get JavaScript for Sound Artists now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.