Import a Folder of Samples as a Kit
A tutorial for orDrumbox 0.1.3, the program for Windows, Linux and macOS: from a folder of WAV files on your disk to a kit that plays your patterns, with the instrument of each sample checked, the samples adjusted, and the kit exported to keep or share.
The Need
You have sounds of your own: a sample pack, drum hits recorded from a hardware machine, or sounds cut from your own recordings. You want orDrumbox to play your patterns with them, in place of the built-in kits, without assigning each sound to each track by hand.
In orDrumbox, the sounds of the tracks come from a kit: a named set of samples, each with an instrument (KICK, SNARE, CHH…). A track named KICK plays the KICK sample of the kit selected in the header. Importing a folder makes a kit from its WAV files and guesses the instrument of each file from its name. The rest of this page goes through it in seven steps.
The import is designed so that a sample pack works as soon as it is unzipped, with no file to edit
and no setting to change, provided that its files are named after their instruments
(Kick 01.wav, Closed Hat 1.wav, Open HH.wav…) and are WAV
files placed directly in the folder imported. Unzip, import the folder, press play: the tracks of the
pattern take the pack's sounds. Steps 3 to 7 are then only needed to correct a name the import did
not understand, or to adjust the sounds.
Steps
- Prepare the folder
- Import the folder
- Check the instrument of each sample
- Play your patterns with the kit
- Choose a sample for one track
- Adjust the samples
- Keep and share the kit
Also on this page: messages and problems, and the same task in the web version.
Before You Start
- orDrumbox 0.1.3, the program (download page). On macOS, Cmd works wherever this page says Ctrl.
- A folder of WAV files. orDrumbox imports WAV only: convert FLAC, MP3 or AIFF files first, with any audio editor.
- Kit edits are saved directly in the user data folder (
kits.jsonandsamples/); unlike pattern edits, they are not steps of Edit › Undo.
1. Prepare the Folder
What the import reads from the folder:
| Element | What the import does with it |
|---|---|
| Folder name | Becomes the kit's name. A kit of the same name is replaced: give the folder a name no kit uses (my_kit, not 909_like). |
.wav files in the folder | Each one becomes a sample of the kit, in alphabetical order of file name. The extension may be in capitals (.WAV). |
| Subfolders | Not read. Put every file directly in the folder, or import each subfolder as a kit of its own. |
| Other files | Ignored (.flac, .mp3, .txt…). |
| File name | Gives the sample's instrument (table below). |
WAV formats read
| Property | Accepted |
|---|---|
| Encoding | Integer PCM 8, 16, 24 or 32 bits; floating point 32 or 64 bits; plain or WAVE_FORMAT_EXTENSIBLE |
| Channels | Mono or stereo; channels beyond the first two are dropped |
| Other formats | A file that cannot be decoded (compressed WAV, for example) is left out and counted in the import message |
Naming the files
The instrument is guessed from the words of the file name. Digits do not count
(kick_01.wav and kick_02.wav are both KICK), CamelCase is cut into words
(OpenHat.wav), and the words HI, LOW, MID, OPEN and CLOSED choose the variant
(tom_low.wav, hat_open.wav). Some names and abbreviations that work:
| Instrument | File names recognized (examples) |
|---|---|
| KICK | kick.wav, BD.wav, 808_bd_long.wav, kik.wav |
| SNARE | snare.wav, SD.wav, snr_tight.wav, brush.wav |
| CLAP | clap.wav, CP.wav, handclap.wav, snap.wav |
| CHH (closed hi-hat) | hat.wav, HH.wav, CH.wav, hat_closed.wav |
| OHH (open hi-hat) | OH.wav, OHH.wav, hat_open.wav |
| Toms | HT.wav, tom_hi.wav, tom_mid.wav, tom_low.wav |
| RIDE, CRASH | ride.wav, crash.wav, cymbal.wav, china.wav |
| Percussion | cowbell.wav, CB.wav, shaker.wav, clave.wav, conga_low.wav |
| BASS | bass_C2.wav, 808_bass.wav |
Files are read together: in a kit that has an RS.wav (rimshot), CL.wav is
read as the claves. A name that gives no instrument (take_07.wav) is imported all the same,
without an instrument; step 3 shows how to give it one.
A folder ready to import:
my_kit/
├── kick.wav
├── snare.wav
├── clap.wav
├── hat_closed.wav
├── hat_open.wav
├── tom_low.wav
├── tom_hi.wav
├── ride.wav
└── bass_C2.wav
A sample pack unzipped as it is
Drum packs often name their files after the instrument already. Names as they are found in packs, and what the import gives them:
| File name in the pack | Instrument |
|---|---|
Kick 01.wav, TR-909 Kick.wav | KICK |
Snare Rim.wav, Rimshot.wav | RIMSHOT |
Clap_Big.wav | CLAP |
Closed Hat 1.wav | CHH |
Open HH.wav, HatOpen_02.wav | OHH |
Tom Hi.wav | HI_TOM |
Cymbal Crash.wav | CRASH |
Ride Bell.wav | RIDE |
Perc 3.wav | PERC |
01.wav | none (step 3) |
Spaces, dashes, capitals, numbers and machine names (TR-909) do not get in the way. What
to check after unzipping:
- The format: WAV. A pack in FLAC, MP3 or AIFF has to be converted first.
- The folder level: many packs put their files in subfolders (
Kicks/,Snares/,Hats/), which the import does not read. Gather the files of one kit into one folder, or import the folder that holds them directly. - The names: a file named only by a number (
01.wavin aKicks/folder) gets no instrument, since the import reads the file name, not the name of the folder it came from. Rename such files, or give them an instrument in step 3.
2. Import the Folder
Two ways, with the same result:
- Kit › Import folder as kit... In the file browser, go into the folder (Enter or a second click opens a folder, Backspace goes to the parent) and choose [ Use this folder ].
- Drag and drop: drop the folder from the Explorer, the Finder or your file manager onto the orDrumbox window.
What happens then:
- The status line says
Imported 9 files into kit "my_kit", followed by(1 not decoded)when files were left out. - The WAV files are copied to
samples/imported/my_kit/in the user data folder (%APPDATA%\orDrumboxon Windows,~/.local/share/ordrumboxon Linux,~/Library/Application Support/orDrumboxon macOS). The kit no longer depends on the original folder: you can move or delete it. - The new kit becomes the selected kit (header KIT): the tracks of the pattern play its samples at once, as step 4 describes.
3. Check the Instrument of Each Sample
Open the kit editor: Ctrl+K, Kit › Kit editor, or KIT in the header's VIEW buttons. It shows the kit's name, the folder its samples are read from, and a table with one row per sample.
| Column / key | What to check or do |
|---|---|
| ↑ ↓ or a click | Select a sample. |
| Enter | Hear the selected sample. |
| Instrument | The instrument guessed at import. A click opens the instrument categories, then the instruments of a category: choose the right one when the guess is wrong or empty. |
| AUTO | Gives the sample the instrument its file name gives. It is lit while the instrument is that one; a name that gives none leaves the instrument as it is, with a message. |
| Played by track | The tracks of the pattern shown that play the sample; "-" when none does. |
| Delete | Remove the sample from the kit (confirmed). |
Under the table, the selected sample's details: detected pitch, length, peak and RMS levels, the instrument its name suggests, and its full path.
Why it matters: auto-assign (step 4) finds a track's sample by its instrument. A sample with no instrument, or the wrong one, is never chosen for the right track. Two samples may share an instrument (two kicks): both are in the kit, and a track can be set to either (step 5).
4. Play Your Patterns With the Kit
A track whose auto LED is lit (track editor, Sound tab) is on auto-assign: its sound follows its name and the selected kit. It is chosen again at play and on every kit change, in this order:
- the kit's sample of the track's instrument (KICK for a KICK track);
- else the kit's sample of a variant of it (its tom for a HI_TOM track);
- else the synth preset of the track's name (
CLAP_SYNTH,BASS_FM…); - else another kit's sample, else a substitute.
So a kit does not need every instrument: a pattern with a COWBELL track still plays with
my_kit, the cowbell coming from elsewhere.
| Command | Shortcut | What it does |
|---|---|---|
| Header KIT list | Choose the kit the tracks draw their samples from. It is kept with the library and its projects. | |
| Kit › Previous / Next kit | , . | Step through the kits while the pattern plays, to compare yours with the others. |
| Kit › Auto-assign all tracks | Shift+J | Every track back on auto-assign, for instance after choosing samples by hand. |
Start playback (Space) on a demo pattern and select your kit: the KICK, SNARE, CHH… tracks now play your files. Under each track's name, the grid shows the sample it plays.
5. Choose a Sample for One Track
To make one track play a given sample whatever its name, open the track editor on that track, Sound tab:
| Control | What it does |
|---|---|
| Sample | A specific sample of the kits, my_kit/kick_02.wav for instance. |
| File... | Loads a WAV file from the disk for this track. |
| auto (LED) | Back to auto-assign. |
A sample can also play notes: a note's Pitch (note editor, −24 to +24 semitones, or up and
down in the piano roll) transposes the sample by that many semitones. This is how
bass_C2.wav plays a bass line.
6. Adjust the Samples
Samples from different sources rarely have the same level or length. The kit editor sets each one; the settings are saved with the kit, for every pattern that uses it.
| Control | Range | What it does |
|---|---|---|
| Gain | −24 to +6 dB | Level trim. |
| Transpose | −12 to +12 st | Tuning. |
| Decay | 20–5000 ms | Shortens a long sample (a reverb tail, a ringing tom); the end shows on the envelope. |
| Start, End | 0 – the sample's length | Cut silence or a click at the start, or keep part of the sound. |
| Attack, Hold | 0–500 ms (default 5), 0–2000 ms | The rise to full level; the time kept at full level before the decay. |
| Reverse | on / off | Plays the region from its end to its start. |
| Loop, Loop in, Loop out | within Start – End | Repeats part of the sound until the decay ends it, for pads or drones. |
| Gate | on / off | Holds the sound for the note's length, then lets it decay. |
- On the waveform, drag the line of the start, the end, a loop point or the end of the decay. The start, the end and the loop points land on the nearest zero crossing (within 3 ms), so that they do not click.
- Normalize kit (N in the kit editor, or Kit › Normalize kit) brings every sample of the kit to 0 dB peak: a starting point before the gains.
- Choke groups (track editor, Sound tab, Choke: off or 1 to 8): a note of a track of the group cuts the sound of every track of it, as a closed hi-hat cuts an open one. A hi-hat track added or renamed joins group 1, unless it is in one.
7. Keep and Share the Kit
| Command | Result |
|---|---|
Kit › Add sample..., or a .wav dropped on the window | The file joins the selected kit, its instrument guessed from its name. |
Shift + a .wav dropped, or Kit › Replace sample... | The file replaces the sample selected in the kit editor. |
| Move to: (kit editor) | Moves the selected sample to another kit. |
| Kit › Export kit with its samples... | Writes a folder named after the kit: kit.json (instruments and every setting of step 6) and the WAV files. |
| Kit › Import folder as kit... on such a folder | Reads the kit.json: the kit comes back with its instruments and settings, on another computer or after a reinstall. It replaces the kit of its name. |
| Kit › Export kit mapping... (E in the kit editor) | Writes the mapping alone (.json), without the audio files. |
| File › Back up user data... | Copies all your files, kits and imported samples included, to a dated folder. |
Imported kits and their samples are read from the user data folder; a project
(.odbox) records the kit chosen, not the audio. To move a project to another computer,
export the kit with its samples as well.
Messages and Problems
| Message or symptom | Cause | What to do |
|---|---|---|
No audio files found in selected directory | No .wav file directly in the folder: the files are in a subfolder, or in another format. | Import the subfolder itself, or convert the files to WAV. |
(3 not decoded) after the import message | Files with a .wav extension in a format not read (compressed WAV) or damaged. | Export them again as PCM WAV (16 or 24 bits) and import the folder again. |
| A track does not play your sample | The sample has no instrument, or another one; or the track is not on auto-assign. | Set the instrument in the kit editor (step 3), or press Shift+J. |
| A built-in kit has changed | The folder had the name of that kit: the import replaced it. | Rename the folder and import it again; Help › Factory reset... restores the shipped kits (your files are backed up first). |
| Some samples are much louder than others | Different source levels. | Normalize the kit, then set the gains (step 6). |
| An open hi-hat rings over the closed one | The two tracks are not in the same choke group. | Put both in one group (step 6). |
The Same Task in the Web Version
The web version (ordrumbox.com/app) also imports a folder as a kit:
open the Drumkit Manager and choose
Import Directory. It reads .wav and .flac files and matches
them to instruments by name; Auto-detect assigns a sample of the kit to each track of
the pattern by track name. Its kit edits are kept in the browser only until the page is reloaded,
unless the kit is exported with ↓ Save.
See Also
- User manual, kit editor and files, import and export
- House beat tutorial: a complete pattern, step by step
- Download orDrumbox 0.1.3