Live Coding Music with Ruby
summary
A Ruby gem called banjo generates live-coded music by loading channel classes and calling their perform methods on an EventMachine timer, using a 0–15 sweeping counter and modulus checks to trigger notes (e.g. play when counter % 4 == 0). MIDI output goes through udmidi to a DAW (Logic/GarageBand). Tempo maps to poll rate (60 BPM → 1s ticks; 120 BPM → 0.5s/quarter beats), classes reload live, and a live demo briefly freezes; Linux support and duration-as-fractions remain todo.
AI-written summary · about
chapters (7)
- 0:00Start
- 4:14CROWD INTERACTIVE
- 11:28Event Machine
- 17:00Demo zone
- 17:47Does it work on Linux?
- 19:35Duration of notes
- 20:03Improve the docs
related talks
26mFrom Live Code to Sound: Building a Ruby Live Coding Engine
41mIt's More Fun to Compute
51mMaking Music with Ruby: Patterns, Context, Fun
24mWriting Music with Ruby
33mWriting Music with Ruby: A subtle introduction to music theory
33mThe musical Ruby
13mMaking music with Ruby and Sonic Pi
26mRuby patterns for contemporary dance music
