Music for video gamesA soundtrack written for your game, looping without a seam.
While EvonX builds your game, its AI writes each track's brief: the mood, the instruments, the tempo and the sections bar by bar. ElevenLabs' music model composes it as an instrumental, EvonX measures its beat and marks the bars the game loops, and the code starts, loops and crossfades each track.
- Bar
- 2 / 36
- Pass
- 2
- mm:ss
- 0:03
How it works
From a mood to a track that loops.
You do not compose, edit or set loop points. These are the steps a build runs for its music.
- Step 1
The game gets its tracks
Each screen that needs music gets a track of its own: a calm theme for the home screen, a livelier one for the levels. Background sound such as a crowd or a bazaar is planned as a separate ambience loop, never mixed into the music.
- Step 2
A brief per track, in whole bars
The brief names the mood, the instruments, what to avoid and the tempo in BPM, then the sections: an intro, a main part, an answer, a bridge. Each section is given in bars and turned into seconds at that tempo, so a new section starts on a beat.
- Step 3
Composed as an instrumental
The plan goes to ElevenLabs' music model with vocals, singing, spoken words, tempo changes and silence ruled out, and comes back as an MP3 at 44,100 Hz and 128 kbps. The game fetches a long track the first time it plays, never while it starts up.
- Step 4
The beat is measured, the loop is set
EvonX measures the tempo off the audio itself and sets the loop between two bar lines, from the start of one section to the start of another. It then nudges both points to where the waveforms match and warns when the seam scores under 0.6.
- Step 5
The game plays it
One call starts a track: music(scene, "theme"). It waits for the phone's first tap, plays the intro once, goes round the loop and crossfades into the next track when the screen changes. Ambience plays on underneath, and the Music switch mutes both.
A whole soundtrack
A video game soundtrack is tracks that take turns.
Coffee Mania, one of EvonX's own game templates, has four looping tracks, and the mixer shows how they share the game. The home screen plays Corner Café, a calm theme at 92 BPM, at volume 0.6. Switch to the level and Pour It Up, a 126 BPM groove, fades in over 900 ms while the theme fades out; going home takes 600 ms. Those times come from the game's own calls. Press Listen to hear the real files.
Under both runs a covered bazaar: two ambience loops at 0.38 and 0.32, started on the home screen and never restarted by a change of screen. They were generated as separate seamless loops, 22 and 19 seconds long, so the pair only lines up again every 418 seconds and the murmur never sounds like a short loop. In the game's settings, the Music switch turns off the music and the ambience together.
The composition plan
How to compose video game music a model can follow.
A song for a game is planned before it is composed. This is the plan EvonX's art tool sent the music model for Pour It Up: the brief and the tempo as global styles, a list of what must not appear, and six sections, each with its own duration in milliseconds. Point at a section to read the words it was given, such as an intro of bouncy chords that sets the groove, or two closing bars that carry on as if the song repeats.
Every section is written in whole bars and converted at the tempo: bars × 4 beats × 60 ÷ BPM. Drag the tempo and watch the durations follow; at 126 BPM, eight bars take 15.238 seconds, exactly what the brief asked for. Planning in bars is what later lets the game loop on a downbeat instead of somewhere in the middle of one.
positive_local_styles the main melody on glockenspiel and celesta enters over the bouncy groove
seconds = bars × 4 × 60 ÷ BPM · 36 bars = 68.6 s · the brief's own numbers
The loop
Background music for games with no audible seam.
A track looped from its last second back to its first stutters: the model wrote an ending, and an MP3 starts and ends on a little silence. So EvonX loops between two measured bar lines instead. For Pour It Up that is from 3,800 ms to 64,737 ms, 32 bars; after that, playback jumps back to where section a begins and the intro never plays again.
The magnifier lays the last 50 ms before the end point over the first 50 ms after the start point. The art tool slides both points a few milliseconds until those two stretches match; this pair scores 0.862, where 1 would be identical and under 0.6 the tool asks for a listen or a new take. On top are the game's 60 ms equal-power crossfade curves. Hear the seam, then hear the same file looped from its end to its start.
Loop points sit on bar lines measured at 126 BPM, 32 bars apart, then nudged to where the two waveforms match.
Music the game reads
Video game music the gameplay can follow.
In Rhythm Tiles, an EvonX template where every level is a song, the music is the clock. Its 15 songs were generated at set tempos, but a tempo asked for is not proof of a tempo played, so EvonX measures each file: a spectrum every 10 ms split into lows, mids and highs, then the beat grid that fits it best. That map, one value per sixteenth note, is the strip of coloured cells.
The tiles under it are the level's own, read from its file, and they land on that measured grid. Pick a song and play four bars: Pixel Hearts is chiptune pop with an 8-bit square-wave lead at 120 BPM, City Lights nu-disco at 112, Velvet Night lo-fi at 90. The list beside it compares the tempo each brief asked for with the tempo measured, and how many tiles each level has.
- Brief asked
- 120 BPM
- Measured
- 120.01 BPM
- Beat drift
- 3 ms
- Tiles in 4 bars
- 19
- Sunrise Keys116 → 116.0139
- Paper Planes124 → 123.9977
- Lemon Soda132 → 132.0189
- Palm Breeze100 → 100.0180
- Thunder Road168 → 168.00188
- City Lights112 → 112.00125
- Pixel Hearts120 → 120.01148
- Velvet Night90 → 90.00175
- Baile Fever130 → 130.00195
- Golden Hour125 → 124.99206
- Sun Dancer110 → 110.00215
- Storm Chaser150 → 150.00237
- Comet Rush174 → 174.01257
- Crystal Cascade140 → 139.99196
- Grand Finale160 → 160.01299
What you get
Music that fits how a game is played.
A track for each screen
A home theme and level music, each with its own mood and tempo, instead of one song on repeat from start to finish.
Loops you do not notice
Loop points on measured bar lines, nudged to where the waveforms match, and a 60 ms crossfade at the seam.
Ambience on its own channel
A crowd, rain or a bazaar runs as separate loops under the music at its own volume, and a change of screen does not restart it.
Nothing extra at start-up
Long tracks are fetched the first time they play, so the game opens without waiting for its music.
Need just a loop?
Make a game music loop, free, in your browser.
The free game music generator builds a seamless loop from one of eight moods and a 16-step grid you can edit while it plays, and exports one to eight bars as a WAV or as MIDI. It runs on your own device; the same page has a paid AI mode that composes a full track from a description.
Open the game music generatorHonest limits
What it does not do.
Instrumental only
Every music request rules out vocals, singing and spoken words, so songs with lyrics are not made.
Up to two minutes a track
EvonX's music model takes 3 to 120 seconds per track. A game loops a track rather than playing a longer one.
It cannot listen to a reference
The AI reads pictures and the still frames of a video, not their sound. Describe the mood, the instruments and the tempo in words.
No uploads, on credits
You cannot add your own MP3 to a build today; the chat takes pictures, videos and spreadsheets. Each composed track uses credits.
Questions
Game music, answered.
What makes music for video games different?
It has to loop, because a level lasts as long as the player takes, and it has to change with the screen. Game music is planned in sections that loop on a bar line, with separate tracks for the home screen and the levels, and ambience kept apart from the music.
How do I make music for my video game?
Decide which screens need a track and what mood each has, pick a tempo, plan the sections in whole bars, compose or generate it, set loop points on bar lines, then start, loop and crossfade the tracks in code. In EvonX the AI does all of that while it builds the game.
Can AI compose a game soundtrack?
Yes. EvonX writes a brief per track and ElevenLabs' music model composes each one as an instrumental. EvonX then measures the beat, sets the loop and wires the tracks into the game's screens.
Can I get 8 bit music or chiptune?
Yes, if the brief asks for it. One of EvonX's own songs, Pixel Hearts, is chiptune pop with an 8-bit square-wave lead at 120 BPM. For a quick retro loop without building a game, use the free game music generator.
Does the music loop without a gap?
It loops between two bar lines measured off the audio, not from the end of the file to its start, and the game crossfades for 60 ms at the seam. The tool scores how well the two points match and flags a loop that scores low.
Will the music slow down my game's loading?
No. A long track is marked lazy: the game fetches it the first time it plays, never during start-up.
Does the music have vocals?
No. Every track is composed as an instrumental, with vocals, singing and spoken words excluded.
Can players turn the music off?
Yes. The game's settings have a Music switch for music and ambience and a separate Sound switch for effects.
Which AI music tools are there for games?
EvonX composes with ElevenLabs' music model inside its builds. For the tools you can use on their own, read the guide to AI music generators.
Your game, with its own soundtrack. Play it.
Describe your game. EvonX builds it with a theme for the home screen, music for the levels and, where it fits, ambience underneath, already looping.
Make a game