# 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://test.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 Add Silence](https://test.elysiatools.com/en/tools/audio-add-silence): Add a specified duration of silence to the start or end of an audio file. The output keeps the source sample rate and channels by default.
- [Audio Ambience Loop Generator](https://test.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 Automatic Fade Designer](https://test.elysiatools.com/en/tools/audio-automatic-fade-designer): Design and render musical fade-ins and fade-outs: bar-based lengths at your BPM or lengths auto-derived from detected silence, fades placed against the real music span, logarithmic curves, optional silence trimming.
- [Audio Balance](https://test.elysiatools.com/en/tools/audio-balance): Free online audio balance adjuster: fix a louder left or right channel. Set each channel from 0% to 400% and download the corrected stereo audio as MP3, WAV, or FLAC.
- [Audio Breath Control Editor](https://test.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://test.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://test.elysiatools.com/en/tools/audio-channel-mix): Mix left and right channels into mono with specific ratios
- [Audio Fade In and Out](https://test.elysiatools.com/en/tools/audio-fade-in-and-out): Apply both fade-in and fade-out effects to an audio file

## Samples

- [Copyright-Free FLAC Audio Samples](https://test.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://test.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://test.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://test.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 and Stem Separation Tools](https://test.elysiatools.com/en/hubs/karaoke-and-stem-separation-tools): Separate vocals and accompaniment, clean the resulting stems, set a controlled balance, and prepare a karaoke or remix-ready delivery.
