JavaScript is the New Punk Rock: Web Audio API Music Creation

Added:

Web Audio Basics
Creating Sound
Exploring Waveforms
Building Synths
Code as Music
Songs & Sharing
Live Audio Input
Punk Programming
Conclusion

Web Audio Basics

2:16
Playing Section
  • 1

    Web Audio API enables audio manipulation via a node-based graph.

  • 2

    Creates sound from scratch in the browser without any files.

  • 3

    The concept includes source, effects, and destination nodes.

Intermediate JavaScript proficiency, including ES6+ syntax, asynchronous programming, and DOM event handling.
Basic physics of sound, including concepts like frequency (pitch), amplitude (volume), and fundamental wave shapes (sine, square, sawtooth).
Understanding of browser security models, specifically the user-gesture requirements (autoplay policies) for initiating audio playback.
Fundamentals of Object-Oriented Programming (OOP) in JavaScript to help structure audio nodes and instrument architectures.
Advanced Web Audio API development, specifically implementing high-performance custom digital signal processing (DSP) using AudioWorklets.
Integrating the Web MIDI API to enable communication between external hardware instruments/controllers and web-based synthesizers.
Utilizing the AnalyserNode in tandem with the HTML5 Canvas API or WebGL (Three.js) for real-time audio visualization.
Adopting higher-level audio libraries and frameworks, such as Tone.js, to manage complex musical scheduling, polyphony, and effects routing.
22.2K views359likes23:55@jsconf_Original Release: 2012-10-25

JavaScript, particularly through the Web Audio API, has become a powerful tool for democratizing music creation, allowing anyone to generate, manipulate, and share audio directly in the browser without traditional recording equipment or labels, much like how the Sex Pistols' 1976 Manchester gig inspired a new wave of independent musicians including Joy Division, New Order, and the Smiths; this technology enables real-time audio processing, synthesizer creation, and collaborative remixing, making music production accessible to all.