Controlling Relays via Music - Christmas Lights

Though I have not tried them I know you can get programs to convert midi to csv files. Get online midi version of your tune and convert it to csv. This csv file would hopefully contain the relevant data you need (Note, duration & time) and should cut and past into an arduino sketch with little modification. The clever part will be writing a program to convert this into your flashing light sequence.