Nerdgasm? You betcha! It was created using two 3.5-inch floppy drives that have been modified with some sort of external controller board that manipulates the drive’s heads. The results? The “Imperial March,” Darth Vader’s theme from what else, “Star Wars”.
From its maker:
It’s nothing new and it’s very simple. The sound comes from a magnetic head moved by stepper motor. To make a specific sound, head must be moved with appropriate frequency.
FDD has a simple interface – the description may be found for example [ HERE ]. To move the head you need to activate the drive by pulling the DRVSB0 or 1 (depends on the cable you have and the connector – notice the crossover on the FDD ribbon cable) pin low and then falling edge on STEP pin makes the head move one step in direction dependent on DIR pin state.
An ATMega microcontroller is generating those frequencies and it makes the drives play music.