From Live Code to Sound: Building a Ruby Live Coding Engine
What if we could create sounds incrementally, shaping music as we type Ruby in a live coding session?
I built strudel-rb, a Ruby implementation inspired by Strudel (a browser-based live coding environment for algorithmic music at https://strudel.cc ), so we can live-code in Ruby while generating rhythmic patterns and melodies from Ruby syntax.
In this presentation, I will talk about parsing a sequence of sounds defined in Mini-Notation, how to calculate the timing of sound playback, syntax that Ruby cannot handle when adapting Strudel-style syntax, and techniques for preventing sound from stopping when a syntax error occurs during live-coding.