Another way to look at the problem might be counting the revollutions of the disc. You could set the CD player to play one song on repeate and find a way to count the revolutions on the disc with some sort of counter circuit. You might be able to use the sensors from a old floppy drive, or...