 Drum machines either play back prerecorded samples of drums and cymbals or synthesized re-creations of drum/cymbal sounds in a rhythm and tempo that is programmed by a musician.Drum machines are most commonly associated with electronic dance music genres such as house music, but are also used in many other genres.They are also used when session drummers are not available or if the production cannot afford the cost of a professional drummer.