Sound Design
Using samples with MIDI: play a recording like an instrument
On this page11 sections
A sample is a fixed recording. A sampler turns it into something you can play. Once a sample is mapped to MIDI, it responds to pitch, velocity, envelopes and modulation, which means one recording becomes an instrument.
This is the most direct route from “I found an interesting sound” to “I can write with it”.
The setup that has to be right
Root note
The key at which the sample plays back at its original pitch.
Get this wrong and everything you play is transposed by the same wrong interval. The part will be in tune with itself and out of tune with the track, which is a confusing problem to diagnose because it sounds internally correct.
If you do not know the sample’s pitch, find it: play it against a tuner or a reference tone until it matches. Or use SPC Tuner to identify the reference before mapping.
Range
Simple transposition changes playback speed. Up an octave, the sample plays twice as fast — shorter and thinner. Down an octave, twice as slow — longer and duller.
Within a few semitones this is fine. Across two octaves it is obvious, and the character changes in a way that rarely sounds intentional.
Two fixes:
- Multi-sampling: several recordings across the range, each covering a few semitones. This is why professional sampled instruments are large.
- Formant-preserving stretch: the sampler changes pitch without changing the perceived size of the source. Useful, and not free of artefacts.
Loop points
If you need the sound to sustain longer than the recording, loop a section of it.
Set the loop inside the sustained part, not across the attack. Match the loop points to zero crossings, or use a short crossfade between the loop end and start. Without one, you get a click on every cycle.
A long, gentle crossfade sounds smoother but blurs the material. A short one is cleaner but harder to place. Adjust by ear until the loop stops being audible as a loop.
Envelope
The sampler’s amplitude envelope reshapes the recording:
- Attack — soften a hard transient, or keep it.
- Decay and sustain — turn a long sample into a short percussive one.
- Release — decide what happens when you let go.
This is where a sample stops sounding like a sample. Cutting the release short on a pad turns it into a stab; lengthening the attack on a drum hit turns it into a swell.
Making sampled parts sound alive
Sampled parts sound stiff for three specific reasons, and each has a direct fix.
Every hit is identical audio. Real instruments never repeat exactly. Use round-robin samples if the instrument supports them, or vary the start point, pitch or filter slightly per note.
Every velocity is the same. Velocity should change both level and tone, because a real instrument played harder is brighter, not just louder. Map velocity to filter cutoff as well as amplitude.
Every note is on the grid. Small timing offsets are what makes a performance feel human. Move notes a few milliseconds, and not all in the same direction.
Velocity layers
Multiple samples recorded at different intensities, switched by MIDI velocity.
This is the difference between a drum library that sounds like a kit and one that sounds like a drum machine, because a soft snare hit and a hard one are genuinely different sounds — not the same sound at two volumes.
If you only have one sample, approximate it: map velocity to a filter so harder notes open up, and to saturation so they get denser.
Working with loops instead of one-shots
Slice it. Cut a loop at its transients and map each slice to a key. Now you can rearrange the loop, replace individual hits, or play it in a different order.
Warp it. Time-stretch the loop to the project tempo. Watch for artefacts — large stretches degrade audibly, particularly on material with strong transients.
Take a fragment. Often the most useful part of a loop is 200 milliseconds of it. Extract that, map it, and you have a new instrument rather than a borrowed groove.
Where samplers meet sound design
Once a sample is playable, everything else in sound design applies: filter it, saturate it, layer it against a synth, resample the result and start again.
Granular playback takes this further, breaking the sample into small grains that can be played back at any speed independently of pitch — what is granular synthesis covers how, and SPC Granular X is the instrument built around it.
A short checklist
- Root note verified, not assumed.
- Range limited, or multi-sampled.
- Loop crossfaded so there is no click.
- Envelope shaped for the part, not left at defaults.
- Velocity affecting tone as well as level.
- Timing varied slightly.
- Layers filtered so each owns a range.
Getting source material
Anything can be a sample. Field recordings, your own instruments, a fragment of something you made last year, a rendered synth patch.
If you need one-shots that do not exist in any library, SPC Craft Table generates them locally from text descriptions and exports directly into sampler formats — which removes the browsing step that eats most sample-based sessions.
Frequently asked questions
How do I play a sample with MIDI?
Load it into a sampler instrument, set the root note to the sample's actual pitch so the keyboard maps correctly, then play MIDI notes. The sampler transposes the audio to match each note.
Why does my sample sound wrong when I play it high or low?
Simple transposition changes playback speed, so the sample gets shorter and thinner as it goes up and longer and duller as it goes down. Beyond an octave in either direction this becomes obvious. Use multiple samples across the range, or a sampler with formant-preserving stretch.
What is a root note in a sampler?
The key at which the sample plays back at its original pitch. If the root note is set incorrectly, everything you play is transposed by the same wrong interval, so the part is in tune with itself but not with the track.
How do I loop a sample so it sustains?
Set loop points inside the sustained part of the sound, at matching zero crossings or with a crossfade between the loop end and start. A short crossfade removes the click that otherwise appears at the loop point.
Why do my sampled parts sound stiff?
Usually identical velocities, identical timing and one sample repeating. Vary velocity, move notes slightly off the grid, and use velocity layers or round-robin samples so repeated hits are not literally identical audio.