The motor effect is used inside headphones, which contain small loudspeakers. In these devices, variations in an electric current cause variations in the magnetic field produced by an electromagnet. This causes a cone to move, which creates pressure variations in the air and forms sound waves. To make a loudspeaker cone vibrate correctly, the electric current must vary in the same way as the desired sound.