---
title: "How to train a drum synthesis model: 12-bar house loops, 128 BPM fills, ghost notes off"
site: "getrhythmm.com"
kind: "article"
author: "Evelyn Porter"
date: "November 22, 2026"
canonical: "https://getrhythmm.com/blog/how-to-train-a-drum-synthesis-model-12-bar-house-loops-128-bpm-fills-ghost-notes-off.php"
markdown: "https://getrhythmm.com/blog/how-to-train-a-drum-synthesis-model-12-bar-house-loops-128-bpm-fills-ghost-notes-off.php/index.md"
description: "Takeaway Detail Ghost-off filter drops every closed-hat event under 55% of the loop's hat-median velocity before epoch 1 This hard dataset filter removes non-ac"
---

# How to train a drum synthesis model: 12-bar house loops, 128 BPM fills, ghost notes off

Evelyn Porter · November 22, 2026

> Takeaway Detail Ghost-off filter drops every closed-hat event under 55% of the loop's hat-median velocity before epoch 1 This hard dataset filter removes non-ac

| Takeaway | Detail |
| --- | --- |
| Ghost-off filter drops every closed-hat event under 55% of the loop's hat-median velocity before epoch 1 | This hard dataset filter removes non-accent closed-hats at the 55% velocity threshold prior to any training |
| A checkpoint is usable only if all 8 render seeds produce zero closed-hat events below the velocity floor | All eight render seeds must clear the dataset filter; even one sub-floor event disqualifies the checkpoint |
| The fill lands inside the two-bar window at steps 161–192 | The 128 BPM fill must resolve within steps 161–192 of the 12-bar loop structure |
| The model trains on 12-bar house loops at 128 BPM | The entire synthesis framework is built on the 12-bar, 128 BPM house drum pattern specification |

This guide trains a drum synthesis model on 12-bar house loops at 128 BPM with a strict ghost-off dataset filter.

A checkpoint passes only if all 8 render seeds produce zero sub-floor closed-hat events and the fill lands in steps 161–192.

![How to train a drum synthesis](https://static.mm-ais.com/article-images-ai/how-to-train-a-drum-synthesis-model-12-b-ai-9a28acdc.jpg)

## The 192-step grid is where 12-bar loops fail

The Synthesis Documentation’s installation page says the SDK compiles patchers while the Runtime runs them, and that the Runtime alone is not enough to compile. I borrow that split as a preflight rule for drum synthesis: a file can contain notes and still fail as a 12-bar object. At 128 BPM, a 4/4 bar is 1.875 s, a 16th note is 117.1875 ms, and a 12-bar loop is exactly 22,500 ms. Read the rendered region length before anything else; a loop that is not 22,500 ms has a tail or a dropped final step, not a vibe.

Twelve bars times sixteen steps gives 192 time positions per lane; with kick, clap, and closed hat, that is 576 possible events. Print the loss-mask shape and confirm it is (192, 3) or transposed. If the code flattens the target into a 576-length vector, I treat that as a masking risk: it quietly lets the model move a hat onto a neighboring step or another drum lane without the mask catching it. The lane axis has to survive training, not just playback.

I fix the fill window at steps 161–192 (3.75 s), the last two bars of the loop. That is the only span in which I allow fill-shaped density; before it, the grid should read as the established loop pattern. My check is positional, not aesthetic: if a fill onset lands before the first slot of that span or after the last slot, the render fails the grid test even if it sounds exciting. If the fill is absent inside that span, it also fails.

The velocity floor still depends on this grid being honest. I set ghost-off as a hard dataset filter before epoch 1: any non-accent closed-hat event under 55% of that loop’s hat-median velocity is dropped. But I do not let that filter become an excuse for sloppy timing. If the region length is wrong, if the mask is flat, or if the fill sits outside its span, I fix the representation before I trust any sub-floor closed-hat count.

My preflight log is deliberately small: region length, mask shape, fill-slot bounds, and floor setting. Those four entries tell me whether the render is eligible for a musical verdict. I keep the log with the checkpoint so a later pass cannot quietly reinterpret a clipped tail as feel or a shifted hat as syncopation. When the grid is exact, the remaining question is content; when the grid is wrong, the content result is noise.

![The 192-step grid is where 12-bar loops fail — How to train a drum synthesis](https://static.mm-ais.com/article-images-ai/how-to-train-a-drum-synthesis-model-12-b-ai-99d55ce3.jpg)

## Audit the corpus before you audit the model

The first step in any drum-synthesis audit is to strip the corpus of velocity noise before a single model checkpoint is touched. Open your dataset and apply a hard ghost-off filter: drop every closed-hat event whose velocity falls below 55% of that loop’s hat-median. This threshold acts as a binary gate—any event under it is excised from the training pool, ensuring that subsequent envelope sweeps are not diluted by sub-floor artifacts. If you skip this, you risk training a model that treats silence as signal, and your later falsification tests will be contaminated by the very noise you are trying to eliminate.

With the corpus cleaned, turn your attention to the 128 BPM timing geometry that governs every 12-bar loop. At 128 BPM, one bar spans 1.875 seconds, and a single 16th-note step occupies exactly 117.1875 milliseconds. This arithmetic fixes the critical fill window: it begins at step 161 and ends at step 192, a 3.75-second interval that sits squarely in the loop’s second half. Any generated fill that lands outside these steps fails the temporal integrity check, regardless of velocity or timbre. Verify your playback cursor aligns to this grid before recording any comparative data.

The heart of this audit is the three-way convergence check, a protocol that pairs every drum synthesis claim with an independent measurement capable of falsifying it. For instance, if a source claims that envelope shape is the primary adjustable axis in drum synthesis, you test that hypothesis by sweeping hat decay from 40 to 400 milliseconds at a fixed velocity and counting how many rendered sub-floor events appear. If the model produces even one closed-hat event below your dataset’s velocity floor, the claim is invalidated. This method turns subjective assertions into objective pass/fail conditions.

Finally, distinguish between two outcomes when the ghost-off filter is enforced. In most cases, the hard velocity floor removes only artificial artifacts, preserving the musical intent of the performance. However, there are exception cases where the floor is so aggressive that it deletes legitimate musical information—ghost notes that carry rhythmic weight. If your audit reveals that a checkpoint passes the closed-hat velocity test but the resulting 12-bar loop feels thinner or less groovy, you have encountered one of these edge cases. Document these instances; they are the boundary conditions where strict falsifiability meets artistic compromise.

![Audit the corpus before you audit the model — How to train a drum synthesis](https://static.mm-ais.com/article-images-pixabay/how-to-train-a-drum-synthesis-model-12-b-025bb196.jpg)

## Three training targets, one winner

Three training targets are on the table for a 12-bar, 128 BPM house drum model, and only one survives the MIDI-only falsification test. Option A is end-to-end generation: a single 192-step sequence with no state carry. It is the cheapest to build, but the fill has no separate supervision, so you cannot tell a memorized fill from a generated one, and every audition costs a full 192-step sample pass. Option B is loop-plus-fill separation with state carry: bars 1–10 train as a loop model, bars 11–12 as a fill model conditioned on the last loop bar's latent. Fill ablations then run at 32 steps instead of 192, a 6× shorter sequence per experiment. Option C is masked inpainting: mask the fill window, let the model reconstruct it, and hope the mask boundary teaches the transition.

Run the arithmetic before you run the epochs. At 128 BPM a bar is 1.875 s, so 12 bars is 22.5 s and the fill window at steps 161–192 is 3.75 s. Under Option B, the fill model sees 32 steps, which is 3.75 s of audio, and the loop model sees 160 steps, which is 18.75 s. Check the split: 160 + 32 = 192, and 18.75 + 3.75 = 22.5. If your split does not sum to the full grid, you have a bookkeeping error, not a modeling result.

The verdict comes from the render test, not from loss curves. Apply ghost-off as a hard dataset filter before epoch 1: drop every non-accent closed-hat event under 55% of that loop's hat-median velocity. Then render all 8 seeds per checkpoint and reject any checkpoint with even one sub-floor closed-hat event. Option A fails this test structurally: with no separate fill supervision, a sub-floor ghost in the fill region cannot be attributed to the loop model or the fill model, so you cannot fix it without retraining the whole sequence. Option C fails differently: the mask boundary is a reconstruction target, not a transition constraint, so the model can satisfy the mask while producing a fill that starts on the wrong grid position.

Option B passes because the state carry makes the failure localizable. The fill model conditions on the last loop bar's latent, so a sub-floor ghost at step 170 traces to the fill model, and a ghost at step 150 traces to the loop model. That is the difference between a checkpoint you can debug and a checkpoint you can only discard. The 32-step fill ablation also means you can run 6 fill experiments in the time one 192-step pass takes, which is how you find the velocity floor that survives all 8 seeds.

One caveat on the comparison: Option B's advantage is conditional on the state carry being real, not nominal. Verify it by ablating the carry — train the fill model with a zeroed latent and confirm the fill degrades at the loop-fill boundary. If it does not degrade, the carry is doing nothing and you are back to Option A with extra plumbing. The Synthesis documentation makes the same distinction for toolchains: the .NET SDK compiles patchers while the Runtime only runs them, and the Runtime alone is not enough to compile. A state carry that is passed but not used is a Runtime without an SDK — present, and useless.

![Three training targets, one winner — How to train a drum synthesis](https://static.mm-ais.com/article-images-pixabay/how-to-train-a-drum-synthesis-model-12-b-ec8b4236.jpg)

## When ghost-off breaks and when it still wins

The hard velocity floor functions as a binary gate: if any seed renders a closed-hat event below the defined threshold, the checkpoint fails. In a standard four-on-the-floor house pattern—kick on 1, snare on 2 and 4, and off-beat hats on the sixteenth-notes—the sub-floor hat is unambiguously an error. Because the groove relies on the precise placement of accented hats, any ghost beneath the floor in this grid signals a synthesis defect. This makes the zero-tolerance rule safe for this configuration, costing exactly one count per seed if the model falters.

However, the floor breaks when the drum lane carries information that is not ghostly ornamentation. Brush layers, live shaker or conga overdubs, and any lane where low-velocity events drive the groove all fall into this exception class. Applying a uniform velocity floor to these lanes does not remove artefacts; it deletes real performance data. The corrective action is not to lower the global threshold, but to exclude those specific lanes from the filter. Doing so prevents the silent re-admission of ghosts into the hat lane while preserving the integrity of the performed groove.

This section alone lists the exception cases where a hard velocity floor deletes musical information rather than artefacts. In the brush-and-conga scenario, a low-velocity event might be the primary time-keeper. A global floor would silence the rhythm entirely, whereas an excluded lane allows the checkpoint to pass without compromising the musical intent. The rule, therefore, must be applied lane-by-lane, not as a blunt instrument across the entire drum map.

Readers should note that the arithmetic governing the 128 BPM grid is fixed: one bar lasts 1.875 seconds, and a sixteenth-note occupies 117.1875 milliseconds. The fill window is consequently fixed at steps 161 through 192, spanning a duration of 3.75 seconds. This precise timing ensures that the “fill” lands inside the two-bar window at steps 161–192, providing a deterministic pass/fail condition independent of subjective feel.

![When ghost-off breaks and when it still wins — How to train a drum synthesis](https://static.mm-ais.com/article-images-pixabay/how-to-train-a-drum-synthesis-model-12-b-a1e2d8a2.jpg)

## Worked check: one loop, eight seeds, zero ghosts

If your workflow uses a 480 PPQ tick grid, then at 120 ticks per 16th note a full 12-bar phrase spans exactly 23,040 ticks, and the fill window occupies the final 3,840 ticks. Treat 23,040 as the expected total; if a seed reports a different total, check the tokenizer for a stray or dropped step before scoring. No listening test recovers that index shift. The first gate is therefore to verify that the tick total matches the chosen PPQ grid and yields 48 beats per 12-bar loop.

Checkpoint validation proceeds to the fill window, which is defined as steps 161 through 192. At 120 ticks per step, this span is precisely 3,840 ticks. The fill’s first hit must fall within this interval, and its offset should be checked against the same anchor grid used for bars 1 through 10. If the fill starts inside the window but drifts relative to that anchor grid, treat it as a timing failure that breaks the 12-bar structural integrity required for house music generation.

The ghost-off filter is the hard dataset precondition applied before epoch 1. Every closed-hat event with velocity below 55% of that loop’s hat-median is dropped from the corpus. A checkpoint is rejected if even one sub-floor hat survives the render. This ensures that the model never learns to synthesize ghost notes below the velocity threshold, keeping the drum track tight and quantized. The filter is non-negotiable; it is the first line of defense against velocity noise corrupting the tick-level arithmetic.

When ghost-off is enforced, verify the tick-total gate, the fill-window bounds at steps 161–192, and the ghost-off filter using the checks above before deeming a checkpoint usable for the 12-bar generation pipeline.

![How to train a drum synthesis, photo 2](https://static.mm-ais.com/article-images-pixabay/how-to-train-a-drum-synthesis-model-12-b-faf49880.jpg)

## Five if/then rules before your next run

Run these five checks in order before you spend another GPU-hour. Each one has a numeric abort threshold, and each threshold is set so that a failure tells you something about the model rather than about your measurement rig. The first is the cheapest and the most fatal: if any render seed's tick total is not 23,040 at 480 PPQ, stop and fix the tokenizer before you score anything. A length error silently shifts every event index, which means your sub-floor hat count, your fill-onset offset, and your anchor comparison are all measuring the wrong grid. The arithmetic is fixed by the format itself: 12 bars at 16 steps per bar is 192 steps, and 192 steps at 120 ticks per 16th is 23,040 ticks. If a seed disagrees, the seed is wrong, not the target.

Second, apply the ghost-off filter as a hard dataset gate before epoch 1. Drop every non-accent closed-hat event under 55% of that loop's hat-median velocity, then re-scan the surviving corpus. If any sub-floor closed hat remains, the filter is mis-specified — usually because the median was computed over the whole corpus instead of per loop — and no checkpoint trained on it can pass the render test below. As with the Synthesis documentation distinction, the filter is the compile step and the render test is the run step; skipping the first does not make the second pass.

Third, the render gate itself: 8-of-8 seed pass. Render each checkpoint under all 8 seeds and count closed-hat events below the velocity floor. Accept the checkpoint only if sub-floor hats appear on 0 of 8 seeds and then move to the fill check. If they appear on even 1 of 8 seeds, reject the checkpoint outright under the zero-tolerance rule above.

Fourth, the fill check. The fill must land inside the two-bar window at steps 161–192, and its anchor offset versus bars 1–10 must stay within ±10 ms. Measure the offset against the same anchor you used for the body bars, not against the window edge, or you will pass a fill that is internally consistent but late against the groove. A fill that starts inside the window but drifts past ±10 ms is a timing failure, not a placement failure, and it will read as sloppy at 128 BPM where a 16th is 117.1875 ms.

Fifth, log the pass/fail vector for all four checks per checkpoint, not a single score. A checkpoint that fails the tokenizer check and passes the rest is a different artifact from one that passes the tokenizer and fails the seed gate, and collapsing them into one number hides which fix to make next. Keep the vector in the run manifest so the next run starts from evidence rather than from memory.

## What to do next

| Step | Action | Why it matters |
| --- | --- | --- |
| 1 | Before epoch 1, apply the ghost-off filter to your 12-bar, 128 BPM house loop dataset: drop every non-accent closed-hat event that falls under the hat-median velocity threshold named above. | This is a hard dataset filter, not a training-time tweak — the constraint must be baked into the data before the model ever sees it. |
| 2 | Verify the filter actually removed the sub-floor hats by re-scanning the filtered dataset for any remaining closed-hat event below the threshold. | If a stray event survives the filter, every downstream checkpoint check is compromised from the start. |
| 3 | Train on the filtered 12-bar loops at 128 BPM, keeping the fill confined to the two-bar window at steps 161–192. | The fill must resolve inside that window; a fill that spills outside it breaks the loop structure the model is meant to learn. |
| 4 | At each checkpoint, render 8 seeds × 12 bars and reject any checkpoint that produces even one closed-hat event below the velocity floor. | All eight seeds must clear the filter — a single sub-floor event disqualifies the checkpoint outright. |
| 5 | Do not repair a rejected checkpoint with a velocity curve; discard it and move to the next checkpoint. | A curve hides which checkpoints actually learned the constraint, defeating the purpose of the hard filter. |
| 6 | Only ship a checkpoint that passes the 8-seed × 12-bar render test with zero sub-floor hats and a fill that lands within steps 161–192. | This is the single acceptance gate: the constraint must be learned, not masked. |

## Frequently Asked Questions

**What velocity threshold does the Ghost-off filter apply to closed-hat events?**

The Ghost-off filter drops every closed-hat event under 55% of the loop's hat-median velocity prior to training.

**How many render seeds must pass the dataset filter for a checkpoint to be considered usable?**

All eight render seeds must produce zero closed-hat events below the velocity floor; even one disqualifies the checkpoint.

**Within which step range must the 128 BPM fill resolve in the 12-bar loop?**

The fill must land inside the two-bar window at steps 161–192 of the 12-bar loop structure.

**What is the duration of a 12-bar loop at 128 BPM?**

A 12-bar loop at 128 BPM is exactly 22,500 ms.

**What does the 192-step grid represent in the context of 12-bar loops?**

The 192-step grid is where 12-bar loops fail.

**What must a file contain to pass as a valid 12-bar object in the drum synthesis framework?**

A file can contain notes and still fail as a 12-bar object if it does not meet the structural and filter requirements.

## Quick answers

| What does the Ghost-off filter do to closed-hat events? | Ghost-off filter drops every closed-hat event under 55% of the loop's hat-median velocity before epoch 1 |
| --- | --- |
| What must all eight render seeds produce to make a checkpoint usable? | zero closed-hat events below the velocity floor |
| Within which steps must the 128 BPM fill resolve in the 12-bar loop? | steps 161–192 |
| What is the model trained on? | 12-bar house loops at 128 BPM |

Also worth reading: **AI podcast intro music: pick 92 BPM, then cut loops at 8 bars**: [AI podcast intro music: pick](https://getrhythmm.com/blog/ai-podcast-intro-music-pick-92-bpm-then-cut-loops-at-8-bars.php) · **How to add swing to trap drums: MIDI 70 ghost tier vs rigid hits**: [How to add swing to](https://getrhythmm.com/blog/how-to-add-swing-to-trap-drums-midi-70-ghost-tier-vs-rigid-hits.php) · **Lo-fi drum patterns: 90 Beats Per Minute Ableton Live Freeze Wins vs Bounce**: [Lo-fi drum patterns: 90 Beats](https://getrhythmm.com/blog/lo-fi-drum-patterns-90-beats-per-minute-ableton-live-freeze-wins-vs-bounce.php)

### Related reading

- [2026 A/B Test: AI Drum Loops vs DAW Patterns for Podcast Intros](https://getrhythmm.com/blog/2026-ab-test-ai-drum-loops-vs-daw-patterns-for-podcast-intros.php)
- [AI podcast intro music: pick 92 BPM, then cut loops at 8 bars](https://getrhythmm.com/blog/ai-podcast-intro-music-pick-92-bpm-then-cut-loops-at-8-bars.php)
- [Ableton Live 12 AI Drum Patterns: Verify the 12-Minute Intro Workflow](https://getrhythmm.com/blog/ableton-live-12-ai-drum-patterns-verify-the-12-minute-intro-workflow.php)
- [Ableton Live 12 MIDI Transform for drums: 2026 probability vs manual step-entry](https://getrhythmm.com/blog/ableton-live-12-midi-transform-for-drums-2026-probability-vs-manual-step-entry.php)
- [How to Make Lo-Fi Beats: Lane-Specific AI Lock vs Swing at 70-90 BPM](https://getrhythmm.com/blog/how-to-make-lo-fi-beats-lane-specific-ai-lock-vs-swing-at-70-90-bpm.php)
- [EU AI Act 2026: How Transparency Rules Touch Stem Plugin Royalty Splits](https://getrhythmm.com/blog/eu-ai-act-2026-how-transparency-rules-touch-stem-plugin-royalty-splits.php)

### Latest

- [AI podcast intro music: pick 92 BPM, then cut loops at 8 bars](https://getrhythmm.com/blog/ai-podcast-intro-music-pick-92-bpm-then-cut-loops-at-8-bars.php)
- [Ableton Live 12 AI Drum Patterns: Verify the 12-Minute Intro Workflow](https://getrhythmm.com/blog/ableton-live-12-ai-drum-patterns-verify-the-12-minute-intro-workflow.php)
- [Ableton Live 12 MIDI Transform for drums: 2026 probability vs manual step-entry](https://getrhythmm.com/blog/ableton-live-12-midi-transform-for-drums-2026-probability-vs-manual-step-entry.php)

Canonical: https://getrhythmm.com/blog/how-to-train-a-drum-synthesis-model-12-bar-house-loops-128-bpm-fills-ghost-notes-off.php
Markdown: https://getrhythmm.com/blog/how-to-train-a-drum-synthesis-model-12-bar-house-loops-128-bpm-fills-ghost-notes-off.php/index.md

```json
{"@context":"https://schema.org","@type":"BlogPosting","headline":"How to train a drum synthesis model: 12-bar house loops, 128 BPM fills, ghost notes off","url":"https://getrhythmm.com/blog/how-to-train-a-drum-synthesis-model-12-bar-house-loops-128-bpm-fills-ghost-notes-off.php","description":"Takeaway Detail Ghost-off filter drops every closed-hat event under 55% of the loop's hat-median velocity before epoch 1 This hard dataset filter removes non-ac","datePublished":"November 22, 2026","author":{"@type":"Person","name":"Evelyn Porter"},"articleBody":"| Takeaway | Detail | | --- | --- | | Ghost-off filter drops every closed-hat event under 55% of the loop's hat-median velocity before epoch 1 | This hard dataset filter removes non-accent closed-hats at the 55% velocity threshold prior to any training | | A checkpoint is usable only if all 8 render seeds produce zero closed-hat events below the velocity floor | All eight render seeds must clear the dataset filter; even one sub-floor event disqualifies the checkpoint | | T..."}
```
