In music, sampling is the act of taking a portion of one sound recording, the sample, and reusing it as an instrument or element of a new recording. This is typically done with a sampler, which can be a piece of hardware or a computer program on a digital computer as in digital sampling. Sampling is also possible with tape loops or with vinyl records on a phonograph.