How to code music?
summary
Demonstrates concrete ways to generate sound from code: uses Gibber to create oscillators, synths and sample-based instruments, shows a mysterious bug where one-letter variables make voices overlap, and manipulates frequency/amplitude to change pitch and volume. Shows using the Web Audio API and Tone.js inside an Angular component to build a playable synth and a sampler mapped to a G2 cat sample. Switches to Sonic Pi for live coding with synth presets, drum pattern strings, live_loops for concurrency, and a working live performance.
AI-written summary · about
chapters (10)
- 0:00Introduction to music coding
- 1:10History of music programming
- 2:55JavaScript and Gibber basics
- 8:22Manipulating sound waves
- 13:25Building melodies and rhythms
- 17:05Web Audio API for music
- 23:51Moving to Sonic Pi
- 28:20Live loops and concurrency
- 31:08Live coding demonstration
- 37:02Q&A and closing
related talks
39mHow to code music?
46mLive Coding Music: Can You Code? Become a Composer with WebAudio and WebMIDI!
39mBecome a Developer of Electronic Music
33mSounds, Synths, and Sonic Pi! Oh My!
32mLive Coding Music Performance with Sonic Pi
44mBeats in the Browser - Coding Music with JavaScript
40mBeats in the Browser - Coding Music with JavaScript
47mLearning Music — Developer Edition
