Melody rule-based generator written in scala.