Repetition and patterns are the reasons we enjoy music. Here's a fascinating TED talk by Scott Rickard about the challenge of writing a piece of music that has absolutely no repetition or pattern but is not simply random. The technology behind sonar signals for submarines lies behind what is called the world's ugliest music. Pure mathematics actually. Enjoy - or not!