Fixed Kosuke's p5.ly script so that it works