Free tool

Drum pattern generator. Pick a genre and watch it try thousands of patterns for every drum, keeping the ones that fit the genre's rules best. Hear the loop as it improves, then download it as WAV or MIDI. Free, in your browser, no sign-up.

Updated

Genre

Genre

House

Tempo

125 BPM

Swing

56%

Run

#1

1234

Stronger colour is a louder hit; split cells are hi-hat rolls. Tap a drum to see its rules.

The rules

Rules for the kick drum

Each rule scores a pattern from 0 to 100%. The fit is their average, weighted as shown. This drum hasn't been searched yet.

  • Four on the floor ×3

    –

    A kick on every beat, the pulse the genre is built on.

    ConventionButler, Unlocking the Groove (2006)

  • Space for the bass ×2

    –

    Nothing between the beats, so the bass line has room.

    ConventionSnoman, The Dance Music Manual, 4th ed. (2019)

  • Even and strong ×1

    –

    Its main hits loud and at about the same level.

    ConventionSnoman, The Dance Music Manual, 4th ed. (2019)

How to generate a drum pattern

  1. Step 1: Pick a genre and press Start

    House, Techno, Boom bap, Trap, Drill, Drum & bass, Reggaeton, Afrobeats. It sets a tempo from the genre's range, then searches one drum at a time, the kick first. You hear the loop improve as it goes.

  2. Step 2: Watch it score

    Every candidate pattern is scored against the genre's written rules (118 across all genres), from four on the floor to the drill snare, each with its source. Tap a drum to see its rules.

  3. Step 3: Download the loop

    Get 4 bars as a WAV that loops seamlessly, or as a MIDI file to play on your own drum sounds.

At a glance

Drum Pattern Generator specifications
GenresHouse, Techno, Boom bap, Trap, Drill, Drum & bass, Reggaeton, Afrobeats
Tempo (BPM)House 118–125, Techno 128–140, Boom bap 85–100, Trap 130–160, Drill 138–150, Drum & bass 170–176, Reggaeton 88–100, Afrobeats 95–115
DrumsKick, snare or clap, closed and open hi-hats, percussion; two-bar loops for trap, drill and drum & bass
SoundSynthesised in the browser on the SoundGen studio's own drum kits; no samples
Output4-bar stereo WAV (44.1 kHz, 16-bit, loop points set) and a Standard MIDI File on channel 10
Sign-upNot needed

How it writes a beat without hearing it

It writes random patterns, scores each against rules about what the genre's drums do, and keeps the best. A trap snare on beat 3 of each bar scores well on "half time"; a snare on top of the kick scores badly on "out of the way". Most candidates are fresh random patterns, the rest small changes to the best one so far.

Drums are searched in order and each is scored against those already chosen: the snare keeps off the kick, the closed hats keep off the open hat, and the percussion fills the gaps the kick and snare leave.

Where the rules come from

The grooves are the conventions taught in SoundGen University's beat-making course and played by SoundGen's AI arranger, with their sources: Mark Butler's Unlocking the Groove for house and techno, Rick Snoman's Dance Music Manual, and producers' own accounts for hip-hop, drill and Afrobeats. Two rules come from studies: accents follow the meter (Lerdahl and Jackendoff, 1983), and listeners want to move most to a medium amount of syncopation (Witek and colleagues, 2014).

Tempo and swing come from the same genre profiles the AI arranger uses: boom bap swings its sixteenths and lays the snare back, trap and drill stay straight.

Questions

Is this AI?
Not a neural network. It is a search: it writes random patterns and scores them against written rules of each genre, keeping the best. Nothing is trained on anyone's music.
Can I use the beats in my music?
Yes. The patterns are generated fresh on your device and every drum is synthesised, so there are no samples to clear. The WAV and MIDI are yours to use.
Which drum notes does the MIDI use?
General MIDI drum notes on channel 10: kick 36, snare 38, clap 39, closed hat 42, open hat 46, and percussion such as rim 37, shaker 70 and congas 62 and 63. Most DAW drum racks map them already. The MIDI is on a straight grid, so add your DAW's own swing.
Why does the same run number give the same beat?
The search uses a seeded random generator, so a run number always replays the same choices for the same genre. Press New run for a different beat.
Is it free?
Yes, with no sign-up and no limit. It runs entirely in your browser.

The beat is written.
Now build the song.

Open the loop in the SoundGen studio to add bass, chords and vocals, or describe a song and generate one with AI.