Composing music with LLM artifacts

Claude Opus 5.5 can compose competent music by designing a simple text-based format and building an interactive artifact to play it out loud.


Simon Willison recently tested whether Claude Opus 5.5 could compose music by giving the model a double challenge: design a brand-new, text-based format for writing music, and then build an interactive player to render that music out loud.

"I wanted to see if Claude Opus 5.5 could compose music, so I tried this :"

To carry out the test, Willison used the following prompt:

"I want you to write some computer game music for me. First design simple text based format for the music and build an artifact that can play it out loud - include some example tracks in that artifact"

The model responded by defining a lightweight text notation for musical properties like notes, tempo, and pitch. It then used its artifacts feature—a built-in tool that allows the assistant to output interactive software alongside its chat responses—to construct a working web widget. That widget interprets the text score and uses the browser's native audio capabilities to synthesize sound on the fly.

This technique matters because it bridges the gap between text prompts and custom audio generation without requiring specialized software. Normally, creating playable background audio involves using complex Digital Audio Workstations, understanding audio engineering, or writing custom code to synthesize sound. By instructing the assistant to design both the notation system and the rendering engine in a single step, you can generate custom, interactive audio directly inside a chat window.

This setup is built for creators, hobbyists, and non-developers who want custom interactive audio or background tracks for project ideas. You do not need to write code or read sheet music. You simply describe the kind of audio you want, and the assistant handles the underlying structure and the playback tool.

This is functional and shipping today. Anyone with access to Claude Opus 5.5 and interactive artifacts can use a similar text prompt right now to produce a working music player.

There are, however, clear limits to what this approach delivers. The resulting audio is constrained by basic browser-based sound synthesis. The generated tracks sound like retro computer game tunes rather than studio-quality recordings or realistic orchestral arrangements. Additionally, while the model generates the notation for you, fine-tuning or tweaking specific notes manually requires learning the custom text format the assistant made up for that specific session, or repeatedly prompting the AI to revise it. It works as a quick tool for playable audio prototypes, but it is not a replacement for dedicated audio software if you need polished sound design.

productsautomation