~/talk

The musical Ruby

Talkat EuRuKo 2019 · 2019-06-21..06-22· [ruby, creative-coding]
slides:none on file

Live demo uses SonicPi briefly then drops to pure Ruby and the SOCKS tool to generate audio: square and sine oscillators at 440 Hz, a state‑variable filter, ADSR envelopes, and noise for snare and hi‑hat. A simple sequencer DSL encodes 16‑step patterns for 4/4 bars (120 BPM math shown) and mixes channels with EQ, compressor, waveshaper, chorus, delay and reverb. Result is a playable drum + synth tune produced from Ruby code (inefficient but functional) and published at rubysynth.fun with conversion via socks.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Generating sound with Sonic Pi
  3. 4:10Pure Ruby sound with SoX
  4. 5:55How sound works
  5. 8:02Sampling frequency basics
  6. 9:47Music notation and frequencies
  7. 12:14Subtractive synthesis
  8. 14:44ADSR envelopes
  9. 16:29Drum synthesis
  10. 19:40Sequencing beats and notes
  11. 23:16Ruby DSL for patterns
  12. 25:45Mixing channels and effects
  13. 28:14Insert effects
  14. 29:40Send channels effects
  15. 30:50Live Ruby music demo
  16. 32:09Q&A
~/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.