build_drum_kit
Map sample files to drum lanes as ReaSamplOmatic5000 instances on General MIDI keys in REAPER, so patterns play the right sounds and samples stay swappable by name.
Instructions
Builds a drum kit from sample files in REAPER's own sampler (one ReaSamplOmatic5000 per drum, on the General MIDI keys), so drum patterns and genre grooves land on the right sounds and every sample can be swapped by name later. Works with any samples, including the ones other instruments ship with.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | Yes | An empty track, or one without another instrument | |
| samples | Yes | Drum lane -> sample file, e.g. {'kick': 'C:/.../XOX kick1.wav', 'snare': '...', 'closed hat': '...'}. Lanes: kick, snare, clap, rim, closed hat, pedal hat, open hat, low/mid/high tom, crash, ride, tambourine, cowbell, shaker, or any other name (placed from C4 up) | |
| release_s | No | Cut each hit this long after its note ends (for samples with long tails, e.g. 0.2 kicks, 0.45 taiko); default: play the whole sample | |
| velocity_db | No | Level at the softest velocity: -18 lets ghost notes and accents work, 0 ignores velocity | |
| trim_silence | No | Report samples that start late (silence at the start) |