ABSTRACT

Working with the Web Audio API is the definitive and instructive guide to understanding and using the Web Audio API.

The Web Audio API provides a powerful and versatile system for controlling audio on the Web. It allows developers to generate sounds, select sources, add effects, create visualizations and render audio scenes in an immersive environment.

This book covers all essential features, with easy to implement code examples for every aspect. All the theory behind it is explained, so that one can understand the design choices as well as the core audio processing concepts. Advanced concepts are also covered, so that the reader will gain the skills to build complex audio applications running in the browser.

Aimed at a wide audience of potential students, researchers and coders, this is a comprehensive guide to the functionality of this industry-standard tool for creating audio applications for the web.

chapter 1|8 pages

Introducing the Web Audio API

part |36 pages

Interlude – Generating sound with scheduled sources

chapter 2|12 pages

Oscillators

chapter 3|15 pages

Audio buffer sources

chapter 4|7 pages

The constant source node

part |28 pages

Interlude – Audio parameters

chapter 5|16 pages

Scheduling and setting parameters

chapter 6|10 pages

Connecting audio parameters and modulation

part |28 pages

Interlude – Destination and source nodes

chapter 7|7 pages

Analysis and visualization

chapter 8|13 pages

Loading, playing and recording

chapter 9|6 pages

OfflineAudioContext

part |72 pages

Interlude – Audio effects

chapter 10|11 pages

Delay

chapter 11|16 pages

Filtering

chapter 12|17 pages

Waveshaper

chapter 13|11 pages

Dynamic range compression

chapter 14|15 pages

Reverberation

part |36 pages

Interlude – Multichannel audio

chapter 15|10 pages

Mixing audio

chapter 16|9 pages

Stereo panning

chapter 17|15 pages

Spatialized sound

part |33 pages

Interlude – Audio worklets

chapter 18|18 pages

Working with audio worklets

chapter 19|13 pages

The wonders of audio worklets