# Drum Loop Slicer

Detect drum-hit transients in an audio loop, slice it into individual hits, and export them as a ZIP with timing and optional MIDI.

> Canonical page: https://elysiatools.com/en/tools/audio-drum-loop-slicer

- **Category:** Media

- **Keywords:** drum loop, transient detection, onset detection, audio slicing, midi, beat chopping, sample chopping

## Overview

A content-based drum-loop chopper. It decodes the audio to mono PCM, runs an energy-based onset detector (Hann-windowed frame energy → half-wave-rectified novelty function → adaptive-threshold peak picking with backtracking to the attack), then slices the in-memory PCM at each detected onset with a small pre-roll. Output is a ZIP containing correctly encoded slice_001 files in the selected format, timing.json (onset times + sample offsets), and optionally slices.mid (one note per slice on GM drum channel 10). An optional one-based rearrangement pattern such as 1,2,1,3 also writes a reassembled loop in the chosen format. Unlike a beat-grid slicer, this is driven by the actual transient content, so it works on loops of unknown or uneven tempo.

## Inputs

- **Drum loop audio** (file)
- **Sensitivity** (select)
- **Min hit spacing (ms)** (number)
- **Slice format** (select)
- **Rearrange pattern (optional)** (text): 1,2,1,3
- **Export MIDI timing** (checkbox)

## When to use

- You need to turn a complete drum loop into individual hits for sampling or beat chopping.
- You are working with a loop whose tempo or beat grid is unknown or uneven.
- You want slice timing, optional MIDI, or a reordered version of the loop alongside the audio slices.

## How it works

- Upload a drum loop audio file.
- The tool analyzes the audio content and detects likely drum-hit attacks using transient detection.
- It slices the audio at detected onsets, applying a small pre-roll and respecting the minimum hit spacing.
- It creates a ZIP with numbered slices in the selected format, timing.json, and optionally slices.mid; a valid rearrangement pattern also adds a reordered loop.

## Use cases

- Create individual drum samples from a full loop for beat production and sound design.
- Extract timing information from loops with irregular or unknown tempos.
- Generate a reordered loop from slice numbers such as 1,2,1,3 and export matching MIDI timing when needed.

## Frequently asked questions

### What audio can I upload?

Upload one audio file accepted by the tool through the audio file input.

### How does hit detection work?

The tool uses the loop's audio content and energy changes to identify drum-hit transients rather than relying on a fixed beat grid.

### What does Sensitivity control?

Low sensitivity finds fewer hits, Medium provides a balanced setting, and High sensitivity finds more potential hits.

### What is the minimum hit spacing?

It sets the shortest allowed distance between detected hits in milliseconds. The value can range from 15 to 300 ms.

### What is included in the ZIP?

The ZIP includes numbered audio slices in the selected format, timing.json with onset times and sample offsets, and optionally slices.mid.

## Related tools

- [Audio Ambience Loop Generator](https://elysiatools.com/en/tools/audio-ambience-loop-generator): Extract the background ambience/room tone from a fragment and generate a seamless loop of any target length.
- [Audio Breath Control Editor](https://elysiatools.com/en/tools/audio-breath-control-editor): Detect breaths in speech and naturally crossfade to reduce, remove, or keep them.
- [Audio Caption Timing Shifter](https://elysiatools.com/en/tools/audio-caption-timing-shifter): Shift SRT or WebVTT captions to a likely speech onset or by a manual offset.
- [Audio Channel Mixer](https://elysiatools.com/en/tools/audio-channel-mix): Mix left and right channels into mono with specific ratios
- [Audio Fade In and Out](https://elysiatools.com/en/tools/audio-fade-in-and-out): Apply both fade-in and fade-out effects to an audio file
- [Audio Filler Word Removal Map](https://elysiatools.com/en/tools/audio-filler-word-removal-map): Combine a timestamped transcript with the audio to mark filler words (um, uh, 嗯, 那个…) and optionally mute or remove them.
- [Language Learning Loop Maker](https://elysiatools.com/en/tools/audio-language-learning-loop-maker): Turn speech phrases into a repeatable practice track with a configurable pause between repetitions.
- [Audio Loop Concat](https://elysiatools.com/en/tools/audio-loop-concat): Concatenate an audio file with itself multiple times to create a loop

## Samples

- [Copyright-Free FLAC Audio Samples](https://elysiatools.com/en/samples/flac-samples): Lossless FLAC audio samples for testing and development, mirrored from MP3 set with nature sounds and meditation music
- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Copyright-Free WAV Audio Samples](https://elysiatools.com/en/samples/wav-samples): Uncompressed PCM WAV audio samples for testing and development, mirrored from MP3 set with nature sounds and meditation music
- [Copyright-Free Raw PCM Audio Samples](https://elysiatools.com/en/samples/pcm-samples): Raw PCM s16le audio samples featuring nature ambience and relaxing music for waveform, playback, and conversion workflows

## Related content

- [Karaoke, Stem Separation & Vocal Tools](https://elysiatools.com/en/hubs/karaoke-and-stem-separation-tools): Remove vocals for karaoke tracks, split songs into stems, isolate or double vocals, slice beats, and balance your mix with free browser-based audio tools.
- [Audio Encoding and Format Conversion Tools](https://elysiatools.com/en/hubs/audio-convert): Compare audio format conversion, bitrate changes, sample-rate conversion, codec swaps, and export tools in one hub for delivery and archive workflows.
- [Audio Editing and Cleanup Tools](https://elysiatools.com/en/hubs/audio-utility): Compare audio trimming, silence removal, fades, mixing, and denoise tools in one hub for podcast, voiceover, and music cleanup workflows.
- [Audio Preview, Tone, and Effect Generator Tools](https://elysiatools.com/en/hubs/audio-generate): Compare audio preview generation, silence creation, ringtone building, fingerprinting, loudness reports, and effect-style audio generators in one hub.
