A sampler is an electronic musical instrument that records sounds (samples) and allows them to be played back and modified. Samplers are used to create music, especially in hip-hop, electronic and dance music, where musicians create complex arrangements from different sound samples.