A drum machine is an electronic musical instrument that creates percussion sounds, drum beats, and patterns. Drum machines may imitate drum kits or other percussion instruments, or produce unique sounds, such as synthesized electronic tones. Most modern drum machines allow users to program their own rhythms and beats. Drum machines may create sounds using analog synthesis or play prerecorded samples. Some drum machines have buttons or pads that allow the performer to play drum sounds "live", either on top of a programmed drum beat or as a standalone performance. Drum machines have a range of capabilities, which go from playing a short beat pattern in a loop, to being able to program or record complex song arrangements with changes of meter and style.
Drum machines have had a lasting impact on popular music in the 20th century. The Roland TR-808, introduced in 1980, significantly influenced the development of dance music, especially electronic dance music, and hip hop. Its successor, the TR-909, introduced in 1983, heavily influenced techno and house music. The first drum machine to use samples of real drum kits, the Linn LM-1, was introduced in 1980 and adopted by rock and pop artists including Prince and Michael Jackson. In the late 1990s, software emulations began to overtake the popularity of physical drum machines housed in separate plastic or metal chassis.