𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Working with the Web Audio API

✍ Scribed by Joshua Reiss


Year
2022
Tongue
English
Leaves
325
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Table of Contents


Half-Title Page
Series Page
Title Page
Copyright Page
Table of Contents
List of Figures
List of Code Examples
Resources
Preface
Acknowledgments
1 Introducing the Web Audio API
The Web Audio API
The audio context
What you need to get started
Example: Hello World
Example: – adding user interaction
Interlude – Generating sound with scheduled sources
2 Oscillators
A bit of theory
OscillatorNode
Parameters
The oscillator types
Example: basic use of the OscillatorNode
The PeriodicWave
Square wave example
Pulse wave example
The detune parameter
Example: detuning an oscillator
Note
3 Audio buffer sources
The AudioBuffer
Example: creating a buffer source
The AudioBufferSourceNode
How does playback work?
Example: varying playback of an audio buffer
Example: wavetable synthesis with audio buffers
Example: pausing audio
Example: playing audio backwards
4 The constant source node
Introducing the constant source
Example: DC offset with a ConstantSourceNode
Example: using a ConstantSourceNode to affect many parameters
Example: grouping audio
Interlude – Audio parameters
5 Scheduling and setting parameters
Audio parameters
Changing audio parameters
Methods
setValueAtTime(value, startTime)
linearRampToValueAtTime(value, endTime)
exponentialRampToValueAtTime(value, endTime)
setTargetAtTime(target, startTime, timeConstant)
setValueCurveAtTime(values, startTime, duration)
cancelScheduledValues(cancelTime)
cancelAndHoldAtTime(cancelTime)
Computation of value
Example: beep sound with parameter automation
Example: beep sound with custom automation
Example: repeating a beep
Example: crossfade
Example: synthesising a bell sound
6 Connecting audio parameters and modulation
Connections revisited
Disconnecting nodes
Connecting audio parameters
Example: FM synthesis
Example: AM synthesis
Tremolo and vibrato
Ring modulation
Interlude – Destination and source nodes
7 Analysis and visualization
AnalyserNode
FFT windowing and smoothing over time
Using the AnalyserNode
Example: visualizing sound
8 Loading, playing and recording
Working with media elements
Example: use of an


πŸ“œ SIMILAR VOLUMES


Working with the Web Audio API
✍ Reiss, Joshua; πŸ“‚ Library πŸ“… 2022 πŸ› Taylor & Francis Group 🌐 English

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 visualizat

Web Audio API
✍ Boris Smus πŸ“‚ Library πŸ“… 2013 πŸ› O'Reilly Media 🌐 English

Go beyond HTML5s Audio tag and boost the audio capabilities of your web application with the Web Audio API. Packed with lots of code examples, crisp descriptions, and useful illustrations, this concise guide shows you how to use this javascript API to make the sounds and music of your games and inte

Web Audio API: Advanced Sound for Games
✍ Boris Smus πŸ“‚ Library πŸ“… 2013 πŸ› O'Reilly Media 🌐 English

Go beyond HTML5’s Audio tag and boost the audio capabilities of your web application with the Web Audio API. Packed with lots of code examples, crisp descriptions, and useful illustrations, this concise guide shows you how to use this JavaScript API to make the sounds and music of your games and int

Web Audio API: Advanced Sound for Games
✍ Boris Smus πŸ“‚ Library πŸ“… 2013 πŸ› O'Reilly Media 🌐 English

Go beyond HTML5’s Audio tag and boost the audio capabilities of your web application with the Web Audio API. Packed with lots of code examples, crisp descriptions, and useful illustrations, this concise guide shows you how to use this JavaScript API to make the sounds and music of your games and int

Web Audio API: Advanced Sound for Games
✍ Boris Smus πŸ“‚ Library πŸ“… 2013 πŸ› O'Reilly Media 🌐 English

Go beyond HTML5's Audio tag and boost the audio capabilities of your web application with the Web Audio API. Packed with lots of code examples, crisp descriptions, and useful illustrations, this concise guide shows you how to use this JavaScript API to make the sounds and music of your games and int