First try: the example

Nineteen patterns range from simple beats, rock and hip-hop to trap, drum and bass, metal, cumbia, samba, afropop and a son 3–2 clave adapted to ride. These are practice starting points in 4/4, not complete definitions of a genre. Choose a pattern and select “Load pattern” to apply it to the base. It loads editable hits, not song samples.

Open MIDI Groove Lab. The example is ready: listen, stop playback and press “Create three variations”. The first generation loads approximately 18 MB from HertzKit; variations are calculated on your device. Under Compare and choose, select Your base pattern or a Variation: that choice controls playback, the grid and Download MIDI. Added/removed hits and velocity/timing changes are listed. A match with the base or another proposal is identified. To edit it, choose Use as base and edit; it replaces the base and discards previous proposals. Download any you want to keep first.

Edit without coding

The grid represents two bars of 4/4. Choose either bar with the grid buttons. Each column is a sixteenth note: four per beat. Tap a cell to add or remove a hit. With a keyboard, arrows move selection and Enter activates the button. On mobile, scroll the table horizontally. Open the optional editor to select hits without deleting them. While open, tapping a hit only selects it; Apply to hit saves MIDI velocity from 1 to 127 and the permitted timing offset. Close the panel to add or remove hits again.

What AI changes

GrooVAE is a pretrained Magenta neural drum model. The tool encodes your pattern, explores its representation and decodes three proposals. “Change strength” controls exploration and, when keeping hits, the blending of velocities and timing offsets. “Keep my hits” retains instruments and grid positions. Disable it to let the model add or remove hits. It does not guarantee a genre, musical improvement or exclusivity; choose by listening.

Playback and the grid identify the file and section actually loaded. Choosing another section does not change them until you apply it. Bar buttons retain the source file’s numbering; the downloaded MIDI starts at bar 1. When you choose a variation, both panels show its number and source base. It remains a preview until you choose “Use as base and edit”.

Import your drum MIDI

Active base is always identified with its source and tempo. After reading a file, the chosen section may be empty: this does not apply the file or replace your pattern. The notice stays visible while playing the base. Go to first hit changes the chosen section; Load these two bars applies it. Leading silence is not removed without being indicated.

Use a standard MIDI file up to 1 MB, in 4/4, with General MIDI percussion on channel 10. Confirm you are authorized to use it. Choose the starting bar: that bar and the next are used without removing leading silence. Melodic tracks are excluded. Hits are organized into sixteenth notes and nine percussion families; duplicate hits within a cell are grouped using the strongest velocity. The tool reports normalization, grouping and adjustments needed when a hit falls outside the permitted timing offset. Unsupported percussion is rejected. A missing second bar is padded with silence. Section tempo changes are reported and not reproduced. Controls are ignored and the tempo at the selection start becomes constant playback speed if between 40 and 240 BPM.

Use it in your music software

With Loop enabled, choosing the base or a variation during playback queues the change for the end of the two bars. The current choice remains marked until the new one begins. Choose again or Stop to cancel the pending change. After stopping, the download uses the choice that remained active. Undo/Redo restore up to 50 base-hit/source changes during this session; they do not change tempo or restore discarded proposals. A new change after Undo clears Redo.

Download base or variation MIDI and import it into your DAW. The file uses 4/4, your tempo and drums on channel 10, lasting two bars. It retains velocity and small timing offsets; it contains no audio. Assign a General MIDI drum kit. HertzKit playback uses recorded percussion adapted for this reference; it may sound different from your final instrument. Download before closing the tab: these patterns are not autosaved.

Scope, privacy and credits

Supports kick, snare, closed and open hi-hat, low/mid/high tom, crash and ride. It does not generate songs, melodies, lyrics or audio from text. Your MIDI is not uploaded; the browser receives model files and computes locally. Cancel generation or playback at any time. Examples were created for HertzKit and include no commercial samples. GrooVAE and Magenta.js are work of the Magenta project; TensorFlow.js is by Google and contributors. Groove MIDI Dataset is published under CC BY 4.0. Links and license texts are in Credits.