~/talk

How music works, using Ruby

Talkat RailsConf 2022 · 2022-05-17..05-19· [creative-coding, ruby]
slides:none on file

Recreates common recording tricks as runnable Ruby: reads and writes PCM with wavefile gem, renders sample views with chunky_png, generates sine/square/white-noise oscillators (440 Hz example) and mixes channels by summing with gain reduction to avoid clipping. Implements amplification that produces digital clipping and a simple compression by threshold-and-ratio followed by makeup gain, shows the distortion effect used musically, and writes output files that actually play and include a full cover built from the generated samples.

AI-written summary · about

  1. 0:00Music and Ruby intro
  2. 1:48What music is
  3. 5:26Music recording history
  4. 8:15Digital audio basics
  5. 9:58Visualizing audio in Ruby
  6. 12:25Audio signal amplification
  7. 13:49Synthesizer sounds
  8. 17:27Fourier waveform mixing
  9. 18:29Audio track mixing in Ruby
  10. 19:31Audio compression
  11. 22:00Live Ruby music demo
~/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.