Randomised music generation in Scala.