An AI game music generator your coding agent can call
Silence in a level reads as unfinished, and a single borrowed loop gets old by the third stage. asset music writes a track from a short line of words: what it should feel like, what style it is, how fast it goes, which instruments carry it. One call gives one 30 second .mp3, named after the word you chose, so the village theme is village.mp3 and the boss fight is boss.mp3. Your agent can ask for a track per place in the game while it builds the rest.
The commands
asset music village "warm folk village theme, slow tempo, accordion and acoustic guitar"
asset music boss "driving orchestral battle, fast tempo, brass and taiko drums"
asset music menu "quiet ambient menu, soft synth pads, no drums"
asset music cave "dripping, hollow cave mood, low strings, very slow" --mock
asset spendFour things to say in every ask
A music ask works when it names four things, in any order:
- Mood: calm, tense, playful, sad, triumphant.
- Genre: folk, chiptune, orchestral, lo-fi, synthwave, jazz.
- Tempo: slow, steady, fast, or a beat count if you know one.
- Instruments: fiddle and harp, a lone piano, brass and drums, soft pads.
"Upbeat chiptune, fast tempo, square wave lead and noise drums" leaves little to guess. "Something for level two" leaves everything to guess. Say what is missing too: "no drums" keeps a menu track out of the way of the buttons.
One track for each place in the game
Think of the soundtrack as a list of places rather than one song. A title screen, a hub, two or three kinds of level, a shop and a boss cover most small games. Ask each with its own name and its own words, and keep the instruments related across them if you want the game to sound like one world: the same fiddle in the village and the forest, a heavier version of it for the boss.
Every track is 30 seconds long. Your game plays it on a loop, so a steady groove usually suits better than a track that builds to a big ending.
Asked, quoted and kept
Before a paid call runs it is quoted, and refused if your credits cannot cover it. asset spend prints what you have used and what remains. A track you asked for before, with the same words, comes back from your account's cache without a second charge. --mock writes a placeholder file offline, so the game's code can load boss.mp3 before the real one exists.
The service picks the model behind each verb, so this page is about what asset music makes rather than which model makes it. The rates are on the pricing page, and the sound effect page covers effects, voice and free retro sounds.
Questions people ask
Does the game’s look change the music?
No. The look guides pictures, models and the interface. A track follows only its own words, so put the mood of the place into each ask.
Can I get a longer track?
Each call writes 30 seconds. For a longer stretch, ask two related tracks and let the game play one after the other, or loop the one you like most.
Where does the file land?
In ./public/assets/ of the game, or wherever TYRBO_ASSET_OUT points, as <name>.mp3. The command also prints a JSON line naming the file, which a coding agent reads to wire it in.
Install it, then ask for the look.
Get an asset keyMake a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.