~/talk

How music works, using Ruby

Talkat Euruko 2022 · 2022-10-13..10-14· [ruby, creative-coding]
slides:none on file

Ruby code reads WAV samples with a WAV gem, renders waveforms with chunky_png, and shows that audio is just arrays of numbers at thousands of samples per second. Louder = multiply samples, clipping appears when values exceed range, mixing = summing aligned channels, and a two‑step compressor finds samples over a threshold, reduces them by a ratio, then applies makeup gain. Oscillators generate square and sine waves, random noise makes snares, and combining oscillators demonstrates the Fourier transform idea; a full cover is produced from these tools.

AI-written summary · about

  1. 0:00Start
  2. 2:24Waveform
  3. 6:12Thomas Edison
  4. 8:52What Digital Audio Actually Is
  5. 10:03Helper Code
  6. 14:01Clipping
  7. 14:44Mixing
  8. 19:12Sanding Compressor
  9. 21:47Square Wave
  10. 22:02Oscillator
  11. 24:05Sine Wave
  12. 25:17Musical Chord
  13. 29:44How Are Overtones Created and or Visualized
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.