Skip to content
agentusehub
Sign in+ Submit
Compose songs by writing synthesis code

Compose songs by writing synthesis code

The author ran one-shot experiments where Claude Code wrote Python to synthesize music, including a rock song with sung lyrics via macOS say; sampling a song failed.

Read the experience
Time saved
Not reported
Setup time
Not reported
Running cost
Not reported
Cost range
Not reported

Use case overview

“Compose songs by writing synthesis code” is a Content & Creative AI agent workflow from Any. It connects Claude Code in 3 steps.

The author ran one-shot experiments where Claude Code wrote Python to synthesize music, including a rock song with sung lyrics via macOS say; sampling a song failed.

Reported experience

  1. What they did

    Josh Cohenzadeh gave Claude Code one-shot prompts: no exploration, no third-party dependencies, no questions, and it had to produce an audio file. It wrote Python that built notes from raw waveforms and arranged full songs. For the rock song, it used macOS say for vocals. He also had it generate videos from the audio, and an album.

  2. How it went

    It produced an original song, an EDM track, a rock song with lyrics, music videos and a 5-track album. Sampling an existing song came out poorly. Getting vocals was hard, and one attempt produced robotic non-English singing.

  3. Worth knowing

    Claude Code only added vocals when explicitly told to, and repeated runs kept reusing themes like the word "Neon".

Example prompts

Try with Claude Code
Write a Python script that synthesizes a short [genre] song from scratch, with a [mood] feel, a clear melody, bass, and drums, and render it to a WAV file. If you can, add sung lyrics about [topic] using the macOS say command. Finish by playing or exporting the file and telling me what to tweak to improve it.

Frequently asked questions

What does the “Compose songs by writing synthesis code” workflow do?

The author ran one-shot experiments where Claude Code wrote Python to synthesize music, including a rock song with sung lyrics via macOS say; sampling a song failed.

Which tools do I need?

You need Claude Code.

How long does it take to set up?

The guide walks through 3 steps, starting with “What they did”.

Coding · Advanced
  1. Write migration plan
  2. Agent edits in batches
  3. Tests per batch

Ship a 40-file refactor with a coding agent

Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.

Claude Code · GitHub Copilot
Add this badge to your site

Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges

Featured on AgentUseHub