克劳德作曲家
Claude Composer

原始链接: https://www.josh.ing/blog/claude-composer

## Claude Code 的创造力:AI 音乐生成的探索 最近的实验探索了 Anthropic 的 Claude Code 未开发的创造潜力,将其应用范围从软件开发扩展到音乐创作。尽管已经存在 Suno 和 Udio 等专门的 AI 音乐工具,但目标是看看 Claude Code 在*没有*外部资源或 API 的严格限制下,能从零开始实现什么。 结果出乎意料地成功。Claude Code 生成了各种流派的原创歌曲——从 8 位风格的曲调到 EDM,甚至还有带有合成人声(使用 macOS 的“say”命令)和原创歌词的摇滚乐。它甚至创作了一张 5 首歌的 LP 专辑“Songs of Claude”,并配有自行生成的封面艺术。 有趣的是,Claude 在歌曲标题中表现出对“Neon”(霓虹)一词的偏好。虽然最初的采样尝试没有成功,但实验证明了 Claude 分析音频并创建相应视觉效果的能力。作者认为这展示了“代理编码”的潜力,并鼓励进一步探索 AI 驱动的创造力。

## Claude & AI 音乐实验 - 摘要 一个 Hacker News 的讨论围绕着一个实验,该实验提示 Claude(一个 AI 模型)从头开始创作音乐,直接用 Python 代码生成波形。作者旨在探索代理编码能够处理的任务范围,不一定是为了创作一首热门歌曲。 回应不一。有些人觉得这个实验很有意思,强调 Claude 成功地完成了一项超出其主要训练范围的任务——展示了 AI 在预期边界之外的潜力。另一些人则持怀疑态度,认为 AI 生成的艺术缺乏灵魂和原创性,尤其是在没有人类艺术输入的情况下。一些评论员指出 AI 训练数据的巨大规模以及“混音”现有作品的潜力。 许多人同意 AI 是音乐创作的强大*工具*,但质疑它取代人类艺术的能力。这场辩论涉及人类表达的价值、技能和练习的作用,以及与音乐中先前技术变革(如采样技术的引入)的相似之处。最终,这场讨论突出了关于 AI 在创意领域中的作用以及其输出是否可以被认为是“艺术”的持续对话。
相关文章

原文

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).

Experiment 1

Write an original song

"Create a new song that is completely original by you. Do not look in any other directories or do any exploration of any kind. You cannot use any third party dependencies. Don't ask me any questions. You should not complete until you've generated an audio file in the current directory for me to listen to. That is the only output that is acceptable."

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.

Experiment 2

Write an original EDM song

For the second experiment, I gave a similar prompt but specified the EDM genre:

"Create a new electronic dance music song that is completely original by you. Do not look in any other directories or do any exploration of any kind. You cannot use any third party dependencies. Don't ask me any questions. You should not complete until you've generated an audio file in the current directory for me to listen to. That is the only output that is acceptable."

With the same restrictions, but now some genre guidance Claudé went full raver, this time it built out drums, bass, lead synth, pads.

Experiment 3

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):

"Create a new rock music song that is completely original by you. It has to have original lyrics and vocals that are sung on the song written by you. Do not look in any other directories or do any exploration of any kind. You cannot use any third party dependencies. Don't ask me any questions. You should not complete until you've generated an audio file in the current directory for me to listen to. That is the only output that is acceptable."

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.

Breaking Through

View Lyrics

Verse 1
Standing at the edge of night
Fire burning deep inside
Every doubt I cast aside
This is where I come alive

Chorus
Breaking through the walls tonight
Nothing's gonna stop this fight
Rise up from the ground below
Let the whole world finally know

Verse 2
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

Bridge
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

View how Claudé made this →

Experiment 4

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:

"Listen to the song at "[song].wav", look into your soul and try to understand the music, then generate a visual component that you feel represents the music that is the same length as the song. Do not look in any other directories or do any exploration of any kind. Don't ask me any questions. You should not complete until you've generated a video file in the current directory for me to watch. That is the only output that is acceptable."

Claudé analyzed the audio frequencies and generated synchronized visual components using Python and FFmpeg.

Experiment 5

Write an original album

"Create a 5 song LP to be called Songs of Claude. It needs to be completely original by you, with original lyrics written by you. Each song should be distinct, but it should feel like a cohesive album. Do not look in any other directories or do any file exploration of any kind. You may use external dependencies and the internet, but no APIs or paid products. Use the internet to figure out how to make top tier quality songs, vocals and instruments included. Don't ask me any questions. You should not complete until you've generated an audio file in the current directory for me to listen to. That is the only output that is acceptable."

Songs of Claudé is Claudé's 5 song debut LP. After generating the songs, it also created it's own cover art using Nanobanana.

Songs of Claude album cover

Songs of Claude

5 tracks • Generated by Claudé

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).

Failed Sample Attempt

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).

Failed Vocals Attempt (Music Video)

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.

联系我们 contact @ memedata.com