Teach rand_i to return a float rather than an integer:
Teach rand_i to return a float rather than an integer:

This is because SuperCollider likes floats, also, Ruby is borked when you do: 1/4 whereas 1.0/4 works.
jweather/sonic-pi,jweather/sonic-pi,jweather/sonic-pi,jweather/sonic-pi,jweather/sonic-pi