Sampling in Electronic Music: Techniques and Clearing Samples
Sampling means taking a recorded sound and reusing it: as a one-shot drum hit, a loop, a chopped phrase played from pads, or a tone spread across a keyboard. It has been central to electronic music since digital samplers such as the Fairlight CMI (1979) and, later, affordable drum samplers like the Akai MPC60 (1988) put it in the studio. Today every DAW includes a sampler, and the techniques are the same whether the source is your own recording, a licensed sample pack or a record.
Where samples come from
- Your own recordings: instruments, voices, objects, field recordings. These are yours to use.
- Sample packs and DAW libraries: licensed for use, under the terms of their license.
- Resampling: recording your own synths and mixes back to audio and sampling that.
- Other people's records: possible creatively, but releasing them needs clearance. See the section on copyright below.
Recording a sample cleanly
Record at the sample rate of your project (44.1 kHz or 48 kHz are standard) and at 24-bit, with peaks well below 0 dBFS so nothing clips. 24-bit gives plenty of room above the noise floor, so you do not need to record hot. Trim silence at the start, add a short fade at the start and end to avoid clicks, and name the file descriptively. The sample rate and bit depth calculator shows the data rate of any format; at 48 kHz, 24-bit stereo it is 288,000 bytes per second, about 17.3 MB per minute.
Core techniques
One-shots
A single hit (a kick, a vocal "hey", a stab) mapped to a pad or key. In the sampler, set the start point exactly at the transient and choose whether the sample plays to the end on each hit ("one-shot" mode) or stops when you release the key (gate mode).
Chopping
Cut a longer phrase into pieces and play them in a new order. Cut at transients or at clear beat divisions. Short fades on each slice prevent clicks. Rearranging slices into a new rhythm is the foundation of much hip hop, house and jungle.
Slicing to MIDI
Most DAWs can slice an audio loop at its transients or at a fixed grid (every 1/8 or 1/16) and create a sampler instrument with one slice per key, plus a MIDI clip that plays the original order. Edit the MIDI to reprogram the loop, change its swing, or play individual hits with different velocities.
Fitting a loop to your tempo
If you know a loop's length and how many beats it contains, its tempo is: BPM = beats x 60 / length in seconds. A four-bar loop in 4/4 has 16 beats; if it lasts exactly 7.5 seconds, its tempo is 16 x 60 / 7.5 = 128 BPM. Then either:
- Time-stretch (warp) it to your project tempo, which keeps the pitch. Choose the algorithm to suit the material: a transient-preserving mode for drums, a tonal or complex mode for melodic and full-mix material.
- Repitch it, like changing the speed of a record: faster also means higher. One semitone corresponds to a speed change of about 5.95 percent, so a 120 BPM loop pitched up one semitone plays at about 127.1 BPM.
The BPM tempo calculator converts tempos to note lengths in milliseconds when you are trimming loops by hand.
Playing a sample chromatically
Load a tonal sample (a sung note, a pad, a single synth hit) into a sampler and set its root note correctly; the sampler then shifts its pitch as you play other keys. Repitching stretches the sound, so a sample works best within a few semitones of its root; for a wider range, sample several notes and map each to its own zone (multisampling).
Sampler settings to know
| Setting | What it does |
|---|---|
| Start and end | Which part of the file plays |
| Root key | The note at which the sample plays at its original pitch |
| Loop points and crossfade | Repeat a section while a key is held; a crossfade smooths the join |
| Zones and velocity layers | Different samples for different keys or playing strengths |
| Choke groups | One sample cuts another off, such as a closed hi-hat stopping an open one |
| Filter, envelopes and LFOs | The same shaping tools as a synth, applied to the sample |
Making a sample your own
- Filter it (a low-pass makes a sample sit behind the drums; a high-pass removes clashing bass).
- Pitch it, reverse it or stretch it until it becomes a new sound.
- Layer it with your own drums or synths.
- Add saturation or a bitcrusher for color, then match levels when comparing.
- Resample the processed result and chop it again. Our guide to sound design covers this workflow.
Copyright, licenses and clearing samples
This is general information, not legal advice, and rules vary by country.
Sample packs and royalty-free sounds
"Royalty-free" means you usually do not pay per use, not that there are no rules. Every pack comes with a license. Most allow you to use the sounds inside your own music, including commercial releases, but not to resell or share the samples themselves or pack them into a product of your own. Some restrict use in particular contexts. Read the license of every pack you use, and keep a copy with your project.
Samples from other people's records
A recording usually involves two separate copyrights: the sound recording (often controlled by a record label) and the underlying composition (usually controlled by a music publisher on behalf of the songwriters). To release a track containing a sample of someone else's recording, you generally need permission from both. If you replay or re-sing the part yourself instead of copying the recording (an interpolation), you still generally need permission for the composition.
- There is no length that is automatically safe. A very short but recognizable sample can still need clearance.
- Clear the sample before release, not after. Retrospective negotiations are harder, and distributors can remove uncleared tracks.
- Clearance usually involves contacting the label and publisher (or a sample clearance service), describing exactly how the sample is used, and agreeing on terms.
- For a specific case, ask the rights holder or a music lawyer.
Never use ripped or pirated sample packs. They are illegal to use, they often carry no valid license, and a release built on them can be taken down.
Storage
Sample libraries and recorded loops take space. Use the audio file size calculator to estimate how much, and keep your samples in one organized folder that you back up along with your projects.