Sound recording and reproduction is an electrical, mechanical, electronic, or digital inscription and re-creation of sound waves, such as spoken voice, singing, instrumental music, or sound effects. The two main classes of sound recording technology are analog recording and digital recording. Prior to the development of analog recording, there were mechanical systems for reproducing instrumental music, such as wind-up music boxes and later, in the late 19th century, player pianos.
Acoustic analog recording is achieved by a microphone diaphragm that can detect and sense the changes in atmospheric pressure caused by acoustic sound waves and record them as a mechanical representation of the sound waves on a medium such as a phonograph record (in which a stylus cuts grooves on a record). In magnetic tape recording, the sound waves vibrate the microphone diaphragm and are converted into a varying electric current, which is then converted to a varying magnetic field by an electromagnet, which makes a representation of the sound as magnetized areas on a plastic tape with a magnetic coating on it. Analog sound reproduction is the reverse process, with a bigger loudspeaker diaphragm causing changes to atmospheric pressure to form acoustic sound waves. Oscillations may also be recorded directly from devices such as an electric guitar pickup or a synthesizer, without the use of acoustics in the recording process, other than the need for musicians to hear how well they are playing during recording sessions via headphones.