Day Disco
summary
Demo builds a small drum kit using the Web Audio API: oscillators with waveform types (sine, triangle), a frequency linear ramp from ~130Hz down to 1Hz over 300ms and gain nodes for envelopes, plus a sampled clap decoded into an AudioBuffer and played via a BufferSource. A quick step sequencer (3 sounds × 8 steps) uses setInterval for scheduling and requestAnimationFrame for playback timing. Hardware MIDI mapping logs controller values, playback exposes metadata via the MediaSession API, visuals use OffscreenCanvas and Path2D with an AnalyzerNode driving lights; demos mostly work with occasional MIDI/network hiccups.
AI-written summary · about
chapters (11)
- 0:00Welcome
- 1:30Music with Web Audio API
- 5:24Synthesizing drum sounds
- 8:37Building step sequencer
- 12:27MIDI controller control
- 14:34Adding bass and chords
- 15:44Media Session API control
- 18:36Disco lights with Canvas
- 22:12Audio analysis for lights
- 23:02Final demo
- 23:51Future APIs and closing
related talks
44mBeats in the Browser - Coding Music with JavaScript
33mWe ❤ Music & the Web
40mBeats in the Browser - Coding Music with JavaScript
42mElements of Dance Music
31mBeats in the Browser - Coding Music with JavaScript
30mJavaScript Patterns For Contemporary Dance Music
40mLiveJS: Making Music with JavaScript
34mTools for the 21st century musician
