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

  1. Prepare the folder
  2. Import the folder
  3. Check the instrument of each sample
  4. Play your patterns with the kit
  5. Choose a sample for one track
  6. Adjust the samples
  7. Keep and share the kit

Also on this page: messages and problems, and the same task in the web version.

Before You Start

1. Prepare the Folder

What the import reads from the folder:

ElementWhat the import does with it
Folder nameBecomes 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 folderEach one becomes a sample of the kit, in alphabetical order of file name. The extension may be in capitals (.WAV).
SubfoldersNot read. Put every file directly in the folder, or import each subfolder as a kit of its own.
Other filesIgnored (.flac, .mp3, .txt…).
File nameGives the sample's instrument (table below).

WAV formats read

PropertyAccepted
EncodingInteger PCM 8, 16, 24 or 32 bits; floating point 32 or 64 bits; plain or WAVE_FORMAT_EXTENSIBLE
ChannelsMono or stereo; channels beyond the first two are dropped
Other formatsA 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:

InstrumentFile names recognized (examples)
KICKkick.wav, BD.wav, 808_bd_long.wav, kik.wav
SNAREsnare.wav, SD.wav, snr_tight.wav, brush.wav
CLAPclap.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
TomsHT.wav, tom_hi.wav, tom_mid.wav, tom_low.wav
RIDE, CRASHride.wav, crash.wav, cymbal.wav, china.wav
Percussioncowbell.wav, CB.wav, shaker.wav, clave.wav, conga_low.wav
BASSbass_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 packInstrument
Kick 01.wav, TR-909 Kick.wavKICK
Snare Rim.wav, Rimshot.wavRIMSHOT
Clap_Big.wavCLAP
Closed Hat 1.wavCHH
Open HH.wav, HatOpen_02.wavOHH
Tom Hi.wavHI_TOM
Cymbal Crash.wavCRASH
Ride Bell.wavRIDE
Perc 3.wavPERC
01.wavnone (step 3)

Spaces, dashes, capitals, numbers and machine names (TR-909) do not get in the way. What to check after unzipping:

2. Import the Folder

Two ways, with the same result:

What happens then:

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 / keyWhat to check or do
↑ ↓ or a clickSelect a sample.
EnterHear the selected sample.
InstrumentThe 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.
AUTOGives 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 trackThe tracks of the pattern shown that play the sample; "-" when none does.
DeleteRemove 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:

  1. the kit's sample of the track's instrument (KICK for a KICK track);
  2. else the kit's sample of a variant of it (its tom for a HI_TOM track);
  3. else the synth preset of the track's name (CLAP_SYNTH, BASS_FM…);
  4. 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.

CommandShortcutWhat it does
Header KIT listChoose 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 tracksShift+JEvery 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:

ControlWhat it does
SampleA 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.

ControlRangeWhat it does
Gain−24 to +6 dBLevel trim.
Transpose−12 to +12 stTuning.
Decay20–5000 msShortens a long sample (a reverb tail, a ringing tom); the end shows on the envelope.
Start, End0 – the sample's lengthCut silence or a click at the start, or keep part of the sound.
Attack, Hold0–500 ms (default 5), 0–2000 msThe rise to full level; the time kept at full level before the decay.
Reverseon / offPlays the region from its end to its start.
Loop, Loop in, Loop outwithin Start – EndRepeats part of the sound until the decay ends it, for pads or drones.
Gateon / offHolds the sound for the note's length, then lets it decay.

7. Keep and Share the Kit

CommandResult
Kit › Add sample..., or a .wav dropped on the windowThe 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 folderReads 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 symptomCauseWhat to do
No audio files found in selected directoryNo .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 messageFiles 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 sampleThe 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 changedThe 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 othersDifferent source levels.Normalize the kit, then set the gains (step 6).
An open hi-hat rings over the closed oneThe 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