How to sample an instrument and make it playable (the full guide)
Sampling an instrument means recording its notes and turning them into a playable instrument you can perform across a keyboard. The full chain is: record a note (or several), split the recording into one note per file, detect each note's pitch, trim and fade the edges so it's clean, loop sustained notes so they can be held, map each sample to its key, and export to a format your sampler or keyboard reads. You don't sample every key — every few notes is enough, and the sampler pitch-shifts between them. Xampler automates the split, pitch detection, looping and mapping, and exports to SFZ, SF2 or Korg KMP — all in the browser.
- 1Record the instrument — play the notes you want to capture, with short gaps between them.
- 2Split the recording into one note per sample (Xampler does this on the silences).
- 3Detect each note's pitch and map it to its key (Xampler reads the pitch from the audio).
- 4Loop sustained notes and trim/fade the edges so nothing clicks.
- 5Export to SFZ, SF2 or Korg KMP/KSF and load it in your sampler or keyboard.
01How do I sample a synth, piano, or hardware instrument?
How do I sample a synth, piano, or hardware instrument?
Play and record the notes you want — ideally a few notes spread across its range, at a consistent volume, with a gap between each so they can be separated later. Then split the recording into individual notes, tune and map each to a key, loop the sustained ones, and export. Recording is the manual part; Xampler handles everything after the recording — split, pitch, loop, map, export.
02Do I record every single note, or just some?
Do I record every single note, or just some?
Just some. Sampling every third or fourth note is normal — the sampler pitch-shifts the nearest sample to fill the gaps, and small shifts are inaudible. Recording all 88 keys is overkill for most sounds. Simple, even-toned instruments need fewer samples; ones that change a lot across their range need more. Xampler maps however many you give it.
03How do I record the notes in the first place?
How do I record the notes in the first place?
Draw or play a series of notes in your DAW (or play them live), keep them all at the same velocity for consistent volume, and leave enough silence between notes to capture the full tail of each one. Then export that as a WAV. That single WAV — or one file per note — is what you feed into the sampler tool. Xampler accepts either.
04Why do my samples need trimming and fading?
Why do my samples need trimming and fading?
Raw recordings often have a little silence or noise before the note and an abrupt cut at the end. Trimming tightens the start to the attack; a short fade-out stops the end from clicking. Clean edges make the instrument feel tight and click-free. Xampler trims each note to its onset and can fade the edges automatically.
05What does 'root key' mean and why does it matter?
What does 'root key' mean and why does it matter?
The root key is the note a sample was actually recorded at — its true pitch. The sampler uses it as the reference: on the root key the sample plays unshifted; on nearby keys it shifts relative to the root. If the root is wrong, the whole instrument plays out of tune. Xampler detects the root from the audio so the mapping is in tune automatically.
06Do I need to loop the samples?
Do I need to loop the samples?
Only the ones you'll hold longer than the recording. Sustained instruments (pads, strings, organs) need a loop so the tone continues as long as you press the key. Short or percussive sounds can stay as one-shots. Xampler finds a sustain loop where it's needed and leaves short sounds as one-shots.
07What format should I export the finished instrument as?
What format should I export the finished instrument as?
Depends on what will play it. For software samplers, SFZ (text + WAVs) or SF2 (one file) are the common choices. For Korg Pa/Kronos/Triton hardware, you need KMP/KSF. Xampler exports all of them from the same project, so you pick whatever your target reads.
08Is there a faster way than doing all this by hand in a DAW?
Is there a faster way than doing all this by hand in a DAW?
Yes — that's the whole point of an auto-mapping tool. Instead of chopping, tuning, looping and mapping each note manually, you drop your recordings in and it builds the instrument. Xampler does the split, pitch detection, looping and key mapping automatically, in the browser, then exports SFZ/SF2/Korg — turning an afternoon of editing into a couple of minutes.
09Can I sample my own voice and play it across the keyboard?
Can I sample my own voice and play it across the keyboard?
Yes — a voice is just another sound source. Record a sustained vowel (or a few notes of it), and the same chain applies: split, detect pitch, loop, map. Then you can play your voice chromatically. Xampler treats a vocal sample like any other pitched sample and maps it across the keys.
