Making Music With JavaScript and Gamepads
summary
Demos use the Web Audio API and the Gamepad API to generate oscillators, load buffers, apply a BiquadFilterNode low‑pass, and schedule notes precisely with context.currentTime and start/stop offsets; a drum machine, Guitar JS (Guitar Hero controller) and a DJ Hero turntable prototype actually run but occasionally fail in browsers. Gamepads expose an array of 17 buttons (d‑pad = button 12) and float axes and are polled not evented. Missing features: negative playback rate (no reverse/scratch) and only one output destination.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 3:42Web Audio API
- 7:22Playing Sound
- 9:12Filters
- 10:20Timing
- 14:52Drum Machine
- 20:45Testing
- 28:07Demo
related talks
25mPlaying with the Gamepad API: Using Game Controllers with JS
44mBeats in the Browser - Coding Music with JavaScript
40mBeats in the Browser: Coding Music withJavaScript
40mLiveJS: Making Music with JavaScript
31mBeats in the Browser - Coding Music with JavaScript
40mBeats in the Browser - Coding Music with JavaScript
30mJavaScript Patterns For Contemporary Dance Music
29mSignal Processing with JavaScript
