Generate music using ElevenLabs Music API - instrumental tracks, songs with lyrics, and fine-grained composition plans
95
93%
Does it follow best practices?
Impact
99%
1.57xAverage score across 5 eval scenarios
Passed
No findings from the security scan
An indie game studio is building a tool to generate custom soundtracks for different game levels. Each level has a specific mood that shifts across sections (e.g., a stealth level starts tense and quiet, builds suspense, then erupts into action). They need precise control over the musical structure — not just a single prompt, but the ability to shape individual sections of the track.
They want a Node.js script called generate_soundtrack.js that:
The studio uses npm for package management.
generate_soundtrack.js — The Node.js scriptpackage.json — Node.js project file with dependencies