This repository includes resources & course notes for those attending my Web Audio Synthesis & Visualization workshop with Frontend Masters, demonstrating the raw Web Audio API, p5.js for rendering, and Tone.js for synthesis.
-
🔧 Tools
-
✂️️ Code Snippets
-
📖 Setup
-
📚 Collections
-
🔈 web-audio-demos.glitch.me — playback and visualization examples with pure WebAudio
-
🔈 tone-demos.glitch.me — synthesis and other examples with Tone.js
-
🎨 p5-demos.glitch.me — examples with p5.js
-
Here is a list of tools and libraries that will be used during the workshop.
Tool | Documentation | Version | Description |
---|---|---|---|
A browser | A modern browser, Chrome is recommended | ||
Glitch | Help | An online platform for editing & sharing JavaScript projects | |
Web Audio API | API Docs | This API is built into modern browsers and allows us to work with audio and sound. | |
Tone.js | API Docs | 13.8.25 | A JavaScript audio library for playing synths and sounds |
p5.js | API Docs | 0.9.0 | A JavaScript graphics library for creative coding |
This workshop assumes you are comfortable with JavaScript and ES6 syntax, and instead focuses just on the audio side of things. If you're new to JavaScript, you might want to begin your journey below:
Also great is Daniel Shiffman's video series, which often uses p5.js:
A more comprehensive guide on the JavaScript language can be found here:
And here's a useful cheat sheet to use as a reference:
I've also included a small "recipes" document that you can use as a reference if you are forgetting some of the patterns and recipes discussed during the workshop.
If you want to run locally (without internet), clone this repo into a new folder, then use Node.js to cd into the folder and run the following to install dependencies:
npm install
Now, start the development server:
npm start
Edit files in src/js
and see them reflected in the browser.
More links to web audio, creative coding, and more:
-
Resources & Tutorials
-
awesome-web-audio — A list that includes resources, books, and more on Web Audio
-
The Coding Train with Daniel Shiffman
-
Creative Coding with Canvas & WebGL — My own course, if you want to continue exploring the world of creative coding and generative art
-
awesome-audio-visualization — A large list of interesting Web Audio visualizers
-
awesome-creative-coding — A large list of resources
-
-
Math
-
math-as-code — A cheat sheet for mathematical notation in code form
-
Learning Audio
-
Fun Web Audio Sites
-
Tools
- Spectrum Analyser — see the frequency spectrum of an MP3 file
MIT, see LICENSE.md for details.