Ga naar inhoud

Les 27 · Synthesis and Sampling

Sampling and Sample Clearance

Learn to trim, loop, chop, repitch and time-stretch samples, avoid clicks, match loop tempos, and understand why using samples can require permission.

A sample in this sense is a piece of recorded audio that you use as musical material. It can be a drum hit, a spoken sound you recorded, a single piano note or a longer loop.

(The word also means one measurement point in digital audio. The context tells you which meaning is intended.)

What you will learn

  • How samplers play audio across keys
  • How to trim, fade, loop and chop
  • How repitching and time-stretching differ
  • Why permission matters when you use other people's sound

How a sampler works

A sampler loads audio and plays it when it receives a note. Two setups are common:

  • One-shot: the whole sample plays once. This suits drum hits.
  • Mapped instrument: the sample is assigned to a root note. Other keys play it higher or lower.

Detailed sampled instruments use many recordings. Different notes have their own samples, and different velocities may trigger different performances.

Trimming and fades

First set the start and end points. Remove unwanted silence at the start so hits feel on time. Do not cut off the attack itself.

A cut in the middle of a waveform can cause a click. A very short fade-in or fade-out usually fixes it. Cutting at a zero crossing, where the waveform passes through zero, can also help.

Looping

A loop repeats a region. For a sustained note, a loop lets it last as long as you hold the key. A smooth loop needs matching level, tone and waveform shape at both ends. Some samplers offer a crossfade loop to hide the join.

A musical loop, such as a drum phrase, should have a length that matches a whole number of beats or bars. At 120 BPM, a 2-bar loop in 4/4 lasts exactly 4 seconds.

Chopping

Chopping cuts a longer recording into slices. You then play the slices from pads or keys in a new order. You can slice at:

  • Transients, which are the sharp starts of sounds
  • Equal grid values, such as every eighth note
  • Points you choose by ear

Repitching and time-stretching

With simple repitching, you change playback speed. Pitch and length change together, like a tape or record played faster or slower.

The speed ratio for a change of n semitones is 2 raised to the power n ÷ 12.

  • 12 semitones up: speed × 2, so the sample lasts half as long.
  • 12 semitones down: speed × 0.5, so it lasts twice as long.

If you repitch a loop to change its tempo, the pitch change in semitones is 12 × log₂(new BPM ÷ old BPM). Moving from 90 to 120 BPM raises the pitch by about 4.98 semitones.

Time-stretching changes length while trying to keep pitch. Pitch-shifting changes pitch while trying to keep length. Both use processing that can add artifacts, such as smeared drum hits or a watery tone. Large changes usually make this easier to hear. Many tools offer different modes for drums, voices and full mixes.

Make your own samples

Recording your own sounds is a great way to build a unique library. Tap a glass, close a book or clap in a stairwell. Record with some headroom, trim the files and name them clearly. If you record people, get their permission. Laws on recording and consent differ by country.

Permission and clearance

Using someone else's recording can require permission. A released song usually involves at least two kinds of rights:

  • Rights in the musical composition, such as melody and lyrics
  • Rights in the sound recording of a particular performance

These may belong to different people or companies. If you sample a record, you may need permission for both. If you replay the part yourself, you avoid copying that recording, but the composition may still be protected. Getting permission is often called sample clearance.

There is no universal rule that a few seconds are free to use. Changing the pitch, adding effects or giving credit does not by itself give you permission. Laws and exceptions differ by country. For a real release, check the license and get qualified advice when you are unsure.

Sample packs and libraries

"Royalty-free" usually means that you do not pay a royalty for each use under the license terms. It does not mean "no rules". Read the license. Check whether you may release music with the sounds, whether loops can be used alone and whether there are limits on registering your track with content identification systems.

Keep a simple sample log: file name, source, license and date. Save a copy of the license.

Worked example: a kit from your own recordings

Build a small drum kit from household sounds. You own the recordings you make of these everyday noises, which keeps your sample log simple.

  1. Record a few low thumps, such as a soft tap on a cardboard box.
  2. Record a few sharp sounds, such as a clap or a snap of a plastic lid.
  3. Record a few small, bright sounds, such as keys or dry rice in a container.
  4. Trim each start so the hit comes right away, and add a very short fade at the end.
  5. Map the best ones to pads as kick, snare and hat.
  6. Tune and shorten them until they work together.

Do not expect them to sound like a studio kit. Their character is the point. Layering two sounds can help: one for the body and one for the sharp start. Save the kit with clear names, and keep the untouched recordings in a separate folder, so you can edit them again later.

Common mistakes

  • Leaving silence before drum hits, so they sound late.
  • Forgetting fades and hearing clicks.
  • Assuming a sound found online is free to use.
  • Losing track of where a sample came from.

Try it

Enter the old and new tempo of a loop. See what simple repitching does to its pitch and length.

Loop repitch calculator

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. With simple repitching, what happens 12 semitones up?

    An octave up means double speed, so pitch and length change together.
  2. 2. What often removes a click at a cut point?

    A short fade smooths the sudden jump in the signal.
  3. 3. Which statement about sampling a released song is safest?

    These can be separate rights with separate owners, and rules differ by country.
  4. 4. What should you do with a royalty-free sample pack?

    Royalty-free does not mean rule-free.

Summary

  • Samplers play recordings as one-shots or mapped instruments.
  • Trim carefully, use short fades and build smooth loops.
  • Repitching links pitch and length. Stretching tries to separate them.
  • Check permission and licenses, and keep a sample log.

Next: Gain Staging and the Static Mix

Volg je voortgang

Maak een gratis account om lessen af te vinken en op elk apparaat verder te gaan waar je gebleven was.