O'Reilly logo

JavaScript for Sound Artists by Steve Leonard, William Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Images  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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required