English
FrançaisEnglishEspañolPortuguêsРусский中文हिन्दीالعربية
Play

Home › Guides › How the AI works

How the AI turns a song into a level

When you import an MP3, Rythmo Bille builds a playable level from it in one to two minutes. Everything happens in your browser: the file is never uploaded. Here are the steps, with the settings and measurements that guided us.

The loading screen: the AI separates vocals and instruments, then listens to the notes
During analysis, the game shows each step: separation, listening to the vocals, listening to the instruments.

1. Separating vocals and instruments

The first step isolates the singing. The game uses a Spleeter-style source-separation model (developed by Deezer), run on the graphics card through WebGL. The song is analysed in stereo at 44.1 kHz with the model's original settings: 93-millisecond windows, moved forward by 23 milliseconds at each step, and masks up to 11 kHz. Above that, the game extends the highest masks so the “s” sounds and breaths of the voice are removed too.

The result is twofold: the vocals, which the transcription AI will listen to, and the instrumental (the song minus the voice), which can play behind you during the run with the “Accompaniment” option.

2. Listening to the notes

Notes are recognised by Basic Pitch, a transcription model released by Spotify under the Apache 2.0 licence. It listens to the vocals and the instruments separately. Three techniques improve its result:

3. What the platforms follow

The vocals lead, and the instruments take over when nobody is singing (intro, bridge, ending): the closest to the whole song. If the AI hears no vocals, the platforms follow every note of the song.

4. Building the level

Notes become platforms: height follows pitch, and the minimum gap between two platforms depends on the difficulty (0.55 s on Easy, 0.40 s on Normal, 0.30 s on Hard). Notes that are too close together become bonus notes. On Extreme and Demon, the game adds its obstacles, then checks with the bot that everything can still be played with PERFECTs.

How long it takes

Measured on the first three minutes of the same song, in full mode:

DeviceAnalysis time
Laptop with a recent graphics card (RTX 4060)about 1 minute (24 s of it for separation)
Computer with integrated graphics (Intel UHD)about 2 minutes
Without graphics accelerationalmost half an hour

On a slow device, fast mode (in the settings) skips vocal separation: the AI then listens to the whole song. The result is less precise on songs with vocals, but much quicker.

The same device always gives the same level for the same file. Between two different graphics cards, tiny calculation differences can change a few notes out of several hundred.

What about your music?

The imported file and the analysis stay on your device. If you publish the level, only the notes are shared by default. You can choose to also share the instrumental and vocals of music you own: read the audio sharing rules. For supported formats and import tips, see Import your music.