Interactive instrument

Chop Club

A sampler that lives in a browser tab. Drop in a song and it finds the tempo and every place a sound starts. Chop it onto sixteen pads, play them from your keyboard, and let a drum loop run underneath at the song's own speed.

FIND A LITTLE. PLAY A LOT.

DROP A SONG. MAKE SOMETHING GOOD.

No song yet

MP3 OR WAV / STAYS IN THIS TAB

Drop an MP3 or WAV anywhere on the sampler

It's decoded and chopped right here, in your browser. Nothing is uploaded.

CHOP01

C1 · MIDI 036

CHOP CLUB

0 / 16 SLICES
LEVEL0 dB
ATTACK2 ms
RELEASE40 ms
SENSITIVITY60%
TEMPO · CHOPS + LOOP120 BPM
DRUM LOOP, AT THE SAME TEMPO AS THE CHOPS
LOOP LEVEL70%
● READYDrop an MP3 or WAV on the sampler, or try the demo song.KEYS 1–8 · Q–I / SPACE PLAYS
The Chop Club sampler: a waveform with chop markers above sixteen pads.
Made for a keyboard

Chop Club needs a big screen and a keyboard to play its pads. Open this page on a desktop to drop in a song.

Why this one

Chopping is the slow part of sampling: scrubbing back and forth for the one hit worth keeping. Code is good at finding every place a sound starts. Picking the one that fits is a matter of taste, so I gave that part to a model.

The small details

The song never leaves the tab.

01 / Listening, in code

The song is decoded in the browser and read about 86 times a second. Whenever the spectrum suddenly gets louder, something new has started. Those moments give the onsets, and the gaps between them give the tempo. A pass over the whole song then fixes the exact BPM and where each bar begins.

02 / Auto Mark asks JEV

AUTO MARK takes the 48 strongest onsets (SENSITIVITY decides how soft one can be) and describes each one in numbers and a few words: where it falls in the bar, how sharp, bright and bassy it is, and how long it rings. JEV, a TypeSafe model that answers with a rating instead of text, scores every one as a chop in a single request. The sixteen best, at least a beat apart, go on the pads. Only those numbers are sent, never the audio.

03 / Or place them yourself

That's the only time JEV is asked. AUTO MARK can also pick sixteen hits at random, or cut the song into sixteen equal parts of whole beats, and every mode works between a START and END you drag along the timeline. ADD MARK, a double-click on the waveform, and the red trim handles are plain code too. Each chop plays until the next one starts, either all the way through (ONE SHOT) or only while you hold its pad (GATE).

04 / One tempo for everything

The four drum loops aren't recordings. Each hit is synthesized and placed on a 16th-note grid, so they start at the song's tempo and follow any change exactly. The chops follow too: change the tempo and every chop is time-stretched to it without changing its pitch, and while a loop runs, pad hits land on its next 16th.