A programmatic reinterpretation of Steve Reich's Clapping Music
A variation on code from https://gist.github.com/jamesdabbs/a85fa5553df7dba0ba3dbb25f4cafe4b
Based on code & ideas from @celeenr's (https://twitter.com/celeenr) RubyConf 2016 talk "Rhythmic Recursion"
Try different voices for say
.
For more fun things to put in mod
, see Apple's Speech Synthesis Programming Guide
NOTE: the metronome is helpful if you're debugging a voice that can't keep up. For instance, the
Cellos
voice plays for a minimum length that is too long, so the metronome ticks will not play at a constant tempo. Invoke the script withMETRONOME=1
in the environment to enable it.