On this page
DanceGAI is the team behind ManiaGAI, an AI osu! mania beatmap generator. DanceGAI is building AI infrastructure that turns music into playable experiences, and ManiaGAI is its first product: you upload a song, and it generates a complete, playable osu! mania mapset — timing, notes and a spread of difficulties — packaged as a standard .osz. The song can be an uploaded audio file or the song of an osu! beatmapset you link to; either way only the audio is used, never the existing charts. Version 3 of the system went live on this site on November 22, 2026. osu! mania is the first output format: the system is built for vertical scrolling rhythm games (VSRG) in general.
This page explains how it works and why it is designed the way it is. We are open about the architecture and the engineering decisions; we don't publish the details someone would need to rebuild it. Where a number isn't public yet, the page says so rather than guessing.
Technical summary
| Task | Audio → playable osu! mania mapset (.osz), a full spread of difficulties per run |
|---|---|
| Scope | Vertical scrolling rhythm games (VSRG) — osu! mania first; other VSRG formats planned |
| Timing | A timing model on the shared music encoder → our own grid fitting (variable tempo, kiai sections). In our 387-song benchmark, beat F-measure at ±25 ms is 0.952 (a fine-tuned Beat This baseline: 0.931) |
| Music representation | MERT-v2-FullSong (632M parameters): one pass over the whole song, read by both timing and the models |
| Planner | Gaussian diffusion over a per-beat gameplay plan, ~134M parameters |
| Note model | MaskGIT-style non-autoregressive transformer over pattern tokens on a 1/8 + 1/12 beat grid, ~116M parameters |
| Controls | 4K–9K · ★1–10 targets on rosu or Sunny · 5 style dimensions (LN ratio, LN inverse, jack, mini LN, delay) · Creative and Effort |
| Training data | 116,127 human-made charts · 50,687 songs · ~9,400 mappers · 2,345 h of audio |
| Validation | Timing-grid checks, invalid-note cleanup, silence guard, star ratings measured on rosu and Sunny, mapset consistency |
| Training | One RTX 4070 Ti SUPER · note model 425,000 steps, planner 160,000 steps |
| Generation | Requested difficulties are generated together in one batched GPU pass · 44 s end to end for a 5:39 song with five difficulties (NVIDIA T4) |
| Serving | Serverless GPU workers restored from a memory snapshot; audio normalised in the browser |
A beatmap is not a transcription
The obvious way to frame automatic beatmap generation is “audio in, neural network, notes out”. In practice that framing produces charts that technically follow the music and are unpleasant to play. A good osu! mania map is closer to an arrangement than a transcription: a mapper decides which sounds deserve notes, how dense a section should feel, where to put a jack or a long note, how patterns flow between hands, and how all of that changes between an Easy and an Expert difficulty.
So ManiaGAI treats beatmap generation as a sequence of distinct problems — understanding the music, planning the gameplay, placing the notes, and checking the result:
- Music
- Understanding
- Planning
- Generation
- Refinement
- Beatmap
1. Music understanding
Everything downstream depends on a precise picture of the song. The first stage turns raw audio into two things: a timing grid, and a high-resolution musical representation of every moment of the song.
Timing. A timing model reads the same music encoding the generators use and marks beats, downbeats and kiai sections. Turning those into an osu! timing grid — BPM and offset, including songs whose tempo changes — is our own grid-fitting method, and it produces the same family of grids the generation models were trained on. Timing is the part players notice first: a chart a few milliseconds off the beat is unplayable no matter how good its patterns are, so it is treated as a first-class problem, not a preprocessing step.
Musical features. The audio is encoded once with MERT-v2-FullSong, a self-supervised music model that attends over the whole song at once, and the models read it aligned to the timing grid — beat by beat: onsets, texture, intensity and how they change across the song. Silent stretches are detected separately, so nothing is charted over them.
2. Beatmap planning
The central design choice in ManiaGAI is to separate what should happen from how notes are placed.
A dedicated planning model reads the musical representation and decides the gameplay structure of the whole song before any note exists: how dense each beat should be, which kinds of patterns belong where, how the difficulty should rise and fall, and how all of that fits the requested difficulty and style. Its output is a plan that describes the chart beat by beat — local difficulty and the mix of long notes, jacks and other pattern types — not notes.
The planner is a Gaussian diffusion model (about 134M parameters). It generates the plan for every beat of the song jointly, conditioned on the music, the key count and the target difficulty and style. Diffusion suits this job: a plan is a smooth, continuous description of a song, and generating it as a whole lets the planner balance the entire song at once.
Planning at this level gives the system something a note-by-note model lacks: a view of the whole song. A chorus can be planned to hit harder than the verse before it; a breakdown can be planned to breathe.
3. Note generation
A second model turns the plan into actual note placement — which columns, which notes are taps and which are long notes, how patterns connect. Planning determines the structure; note generation turns that structure into playable notes that follow both the plan and the audio.
The note model is a MaskGIT-style non-autoregressive transformer (about 116M parameters). Charts are represented as discrete pattern tokens on a grid of 1/8 and 1/12 beat subdivisions, and instead of writing them one at a time from start to finish, the model fills in the whole chart and then refines it over many passes — committing the notes it is confident about and revisiting the rest. Every pass sees the context on both sides of every beat, which is what keeps patterns consistent across a song. How those passes are scheduled across a song is our own refinement method.
Read the ManiaGAI v3 launch post →
Why ManiaGAI uses a Planner + Noter →
4. Controllable generation
ManiaGAI is not a “generate and hope” system. The same song can be generated under explicit controls, and the controls are part of what the models were trained to follow:
- Key count — 4K to 9K.
- Difficulty — any selection of star ratings from ★1 to ★10, on rosu (the rating osu! itself shows) or on Sunny (Star-Rating-Rebirth). The models read Sunny; a rosu target is converted with a calibration fitted on our training charts that also accounts for the chart's style. One song produces a whole mapset, Easy through Expert, in a single run.
- Style — gameplay characteristics such as the share of long notes and how much jack, inverse-LN, short-LN and delay patterning a chart contains, each adjustable on the generator. Two more bars set how the note model works: Creative (how freely it explores before it settles) and Effort (how many refinement passes it makes).
- Density — follows from the target difficulty and the plan, rather than from a fixed rule.
Every difficulty is generated from the same understanding of the song, so a mapset reads as one family of charts rather than unrelated ones. Next, we are teaching both models the rosu rating directly — for the whole chart and for every beat — so targets follow the scale players read.
5. Validation and quality control
Before a chart reaches you, the system checks it:
- Timing — the written timing points are checked against the detected grid.
- Invalid and unplayable notes — overlapping notes, broken long notes and placements the game can't represent are resolved, and nothing is charted over obviously silent audio.
- Measured difficulty — every chart's star rating is measured twice: with rosu-pp, the same star-rating algorithm osu! uses, and with Sunny. The difficulty is named after the measured value on the scale you picked, not the requested one, and the share page can switch between the two.
- Consistency across the mapset — a chart that comes out easier than the one meant to sit below it, or nearly identical in difficulty to a neighbour, is dropped rather than shipped. On the generator, you see which stars were dropped and why.
- Output validity — the result is packaged as a standard .osz with audio, background and hitsounds that imports into osu! directly.
By the numbers
- Songs in the training set
- 50,687
- Training charts
- 116,127
- Mappers
- ~9,400
- Unique audio
- 2,345 h
- Training features on disk
- ~0.43 TB
- Training steps
- 425K notes · 160K planner
- Model parameters
- ~250M (116M notes + 134M planner)
- Full mapset generation (5:39 song, T4)
- ~44 s
- Key modes
- 4K–9K
- Difficulty range
- ★1–★10
- Difficulties per run
- up to 10 (fewer for long songs and higher Effort)
Training data
The production models learn from 116,127 human-made osu! mania charts across 50,687 songs — 2,345 hours of unique audio — by roughly 9,400 mappers, from 4K to 9K. Most of the work in a system like this is not the model; it is the data: deciding what counts as a chart worth learning from, making sure the timing of every training example is right, and representing charts in a form that captures what makes them playable. The deep dive below describes the dataset behind v2.
Explore the v2 training dataset →
Evaluation: timing accuracy
We benchmarked v3's timing against human timing on 387 songs with mapper-agreed timing, alongside a fine-tuned version of the open-source Beat This beat tracker run through the same kind of grid fitting. F25 is the beat F-measure within ±25 ms of the mapper's grid; a song counts as perfect when F25 is at least 0.98.
| Method | F25 | Perfect songs | Downbeats (±25 ms) | Tempo correct | Meter correct |
|---|---|---|---|---|---|
| ManiaGAI v3 | 0.952 | 58.9% | 91.5% | 92.1% | 95.1% |
| Beat This (fine-tuned) + grid fitting | 0.931 | 53.0% | 88.9% | 90.3% | 95.4% |
Scored inside each song's mapped span. The benchmark was used once, to choose the shipped configuration. The earlier 2,501-song benchmark of the v2 detector is in the deep dive below.
Read the v2 timing benchmark →
Training
The planner and the note model are trained separately, each on the representation it works with — the planner as a Gaussian diffusion model over a per-beat description of the gameplay, the note model by masked-token prediction over pattern tokens. Training samples are balanced across key counts and difficulty levels so that 8K and ★10 charts are not drowned out by 4K and ★4, and the note model trains in mixed precision.
Every change is judged on the generated charts themselves — timing accuracy, measured difficulty against the target, playability — not on training loss alone.
Inference and performance
A useful AI system is not only about model quality; it also has to be fast enough to use. A ManiaGAI request runs like this:
- In your browser: the song is decoded, loudness-normalised and re-encoded as soon as you pick the file, while you are still choosing settings — so the GPU never waits on audio processing.
- Music understanding on the GPU: one pass of the music encoder over the whole song, then the timing model, with the grid fitting and silence detection on the CPU.
- Planning and note generation for every requested difficulty in one batched pass.
- Validation — star rating measurement, consistency checks.
- .osz packaging, then the download.
GPU workers start from a pre-loaded snapshot, so even a cold worker is ready in seconds rather than spending that time loading models. One measured 5:39 song with five difficulties took 44 seconds end to end on an NVIDIA T4 at the default Low effort — music encoder 1.4 s, timing 2.5 s, planning 8.5 s, note generation for all five difficulties 24.7 s. A higher Effort makes more refinement passes and takes longer, so on long songs it generates fewer difficulties to stay inside the time limit.
How we made generation fast (v2) →
What we don't publish
We publish the architecture principles, the engineering decisions behind them, and what the system does and doesn't do — including the open models we build on (MERT) and the families our own models belong to (Gaussian diffusion, MaskGIT). We don't publish the methods we developed ourselves or the details that would let someone reproduce the system: how the timing grid is fitted and its tempo segments merged, how the note model's refinement passes are scheduled across a song, how the models are conditioned and the star scales calibrated, exact architectures, losses and hyperparameters, and how the training data is sourced, filtered and constructed. That is the line between being transparent about what we built and handing over the recipe. When we make claims about quality, we intend to back them with published benchmarks — not adjectives.
What's next
Beyond osu! mania. ManiaGAI is designed around a gameplay representation that is not specific to osu! mania: notes and long notes in columns, placed on a timing grid and conditioned on a target difficulty. osu! mania is the first output format, not the boundary of the system.
Deep dives
The research and engineering behind ManiaGAI, in depth:
- Introducing ManiaGAI v3 — Beat-by-Beat Models and Stars on the Scale osu! Shows
- How Accurate Is AI Beatmap Timing? ManiaGAI vs Mapperatorinator
- Inside the Dataset Behind an AI osu! mania Mapper
- Why DanceGAI Uses a Planner + Noter to Generate Beatmaps
- How We Made AI Beatmap Generation Fast Enough to Feel Interactive
Try ManiaGAI
Generate a complete osu! mania mapset from your song — free, in seconds.
Create a mapset →