Fish Wang says to YSITD
var play = null var aWeight =0.1 var bWeight =0.2 var a =0 var b= 0 while (true) { a += aWeight; if (a >=1) {a -=1 play('a')} b += bWeight; if (b >=1) {b -=1 play('b')} } }