~/talk

Writing Music with Ruby: A subtle introduction to music theory

Talkat MountainWest RubyConf 2015 · 2015-03-09..03-10· [creative-coding, ruby]
github:beneggett
slides:none on file

Ruby code generates sine waves at 440Hz A, writes 16-bit PCM WAV files at standard sample rates, and maps frequencies by the 12th root of 2 to produce chromatic notes, octaves, scales, modes, thirds and chords. The demo builds chord progressions (I–V–vi–IV), arpeggios, and a stochastic song that mutates each run; audio output works but sounds “too perfect” until distortion and clipping are added. Library is educational, hacky, and not production-ready.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:17Music theory and challenges
  3. 7:07Understanding sound waves
  4. 9:58Generating digital audio
  5. 14:44Abstraction: octaves
  6. 16:45Tones and semitones
  7. 18:56Modes and scales
  8. 22:11Chords and progressions
  9. 26:18Composing songs with code
  10. 31:16Conclusion and final thoughts
~/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.