Claude Composer
Recently I was listening to music and doing some late night vibe coding when I had an idea. I love art and music, but unfortunately have no artistic talent whatsoever. So I wondered, maybe Claude Code does?
I know Claude Code is getting pretty damn good at building software, but it seems like we're still not really scratching the surface of its full potential.
For complex AI generated music, tools like Suno and Udio are obviously in a different league as they're trained specifically on audio and can produce genuinely impressive results. But that's not what this experiment was about.
Here are some one-shot prompts I ran to learn more about Claudé (the name for this expressive version of Claude Code I made up).
Write an original song
Claudé immediately started writing Python code. It built sounds from scratch using sine waves and a bunch of other math I don't really understand.
It mapped out frequencies for each musical note, wrote functions to make notes fade in and out naturally, then structured a full song: intro, verse, chorus, bridge and finale.
It sounds like something between a ringtone and a video game from 1985, but it is technically a song.
Write an original EDM song
For the second experiment, I gave a similar prompt but specified the EDM genre:
With the same restrictions, but now some genre guidance Claudé went full raver, this time it built out drums, bass, lead synth, pads.
Write an original rock song with vocals
For the third experiment, I wanted to see if Claudé could create something with vocals (which it didn't want to do without being explicitly told to):
For vocals, Claudé used macOS's built-in say command to synthesize sung lyrics. For the rock instrumentation, it wrote Python code to generate power chords and drums via raw waveform synthesis. It named it's creation "Breaking Through", with original lyrics about perseverance, complete with verses, chorus, and bridge.
▸ View Lyrics
Standing at the edge of night
Fire burning deep inside
Every doubt I cast aside
This is where I come alive
Breaking through the walls tonight
Nothing's gonna stop this fight
Rise up from the ground below
Let the whole world finally know
Shadows try to hold me down
But I won't make a single sound
Strength is what I've always found
When my back is on the ground
We are the ones who never fade
We are the storm that won't be stayed
Standing tall and unafraid
This is the choice that we have made
Listen to the songs you made, create a visual component
I wanted to see what Claudé would create if I asked it to reflect on the music it created and create a visual component. Using the songs from Experiments 2 and 3, I gave Claudé this prompt:
Claudé analyzed the audio frequencies and generated synchronized visual components using Python and FFmpeg.
Write an original album
Songs of Claudé is Claudé's 5 song debut LP. After generating the songs, it also created it's own cover art using Nanobanana.
Some thoughts on Claudé
Neon is the word
Unsurprisingly, when I tried repeating these experiments, Claudé kept gravitating toward similar patterns. It had a weird draw to the word "Neon" showing up when naming songs: neon heartbeats, neon dreams, neon minds, Claudé just really likes neon apparently.
Other experiments
I got curious whether having Claudé listen to music and reflect on it before a task would affect its performance. I ran a quick eval, but didn't really see any noticeable difference. I might revisit this later with a more structured approach.
I also tried having Claude Code try to sample a song and create a new song, but it was pretty bad (first sample attempt is at 00:15).
When Claudé doesn't listen
Not every attempt went smoothly. I had a really hard time getting vocals on songs. Here's one where I had very explicitly asked for vocals multiple times and Claudé just really didn't want to sing english for me so it came up with it's own sort of robotic singing (starts around 0:50).
I really believe there's still a lot left to be explored with the power of agentic coding, even within the realms of what's possible right now.
If you try anything like this yourself, I'd love to hear what you come up with. Drop me a line on Twitter.
Share this post