The musical Ruby
summary
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
chapters (16)
- 0:00Introduction
- 1:50Generating sound with Sonic Pi
- 4:10Pure Ruby sound with SoX
- 5:55How sound works
- 8:02Sampling frequency basics
- 9:47Music notation and frequencies
- 12:14Subtractive synthesis
- 14:44ADSR envelopes
- 16:29Drum synthesis
- 19:40Sequencing beats and notes
- 23:16Ruby DSL for patterns
- 25:45Mixing channels and effects
- 28:14Insert effects
- 29:40Send channels effects
- 30:50Live Ruby music demo
- 32:09Q&A
related talks
13mMaking music with Ruby and Sonic Pi
26mRuby patterns for contemporary dance music
41mIt's More Fun to Compute
33mRocking Out In Ruby - A Playful Introduction to Sonic PI
33mSounds, Synths, and Sonic Pi! Oh My!
43mMy Ruby is a Paintbrush. My Ruby is a Synth.
51mMaking Music with Ruby: Patterns, Context, Fun
37mSonic PI: live music, live coding
