How music works, using Ruby
summary
Shows how industry tricks get reproduced line for line in Ruby: reads and visualizes samples with the wavefile gem, buckets into milliseconds (mentions ~10 ms), amplifies by multiplying samples, mixes by summing arrays, and implements a threshold compressor plus makeup gain (admitting it's the worlds worst compressor). Builds oscillators—sine and square oscillators—generates noise for drums, and assembles a cover from those generated samples that demonstrably plays back.
AI-written summary · about
chapters (8)
- 0:00Music and Ruby intro
- 6:28Recorded music history
- 9:43Digital audio with Ruby
- 13:13Amplifying audio signals
- 15:44Mixing audio tracks
- 17:09Audio compression
- 20:39Synthesizers in Ruby
- 27:08Live Ruby cover demo








