Rewriting exercises from the book Computer Models of Musical Creativity