The electromagnet alters the magnetic field to the beat of the music, causing the ferrofluid to change its shape. Wildly Interesting