Skip to content
agentusehub

Generate live-coding music with Claude and perform it

An author had Claude write Strudel music code from a style description, hand-fixed hallucinated sample names, then restructured it for live performance and recorded it.

Time saved
Not reported
Setup time
Not reported
Running cost
Not reported
Cost range
Not reported

Use case overview

An author had Claude write Strudel music code from a style description, hand-fixed hallucinated sample names, then restructured it for live performance and recorded it.

Reported experience

  1. What they did

    Emmet Connolly, who had never used Strudel, described a musical style to Claude and asked for Strudel code. He tweaked every line by hand and discarded many, including hallucinated sample filenames. Because he was mostly commenting chunks in and out, he pasted the code back to Claude to restructure for live performance. He ran the output through an audio interface and an effects pedal, then recorded it.

  2. How it went

    He got a recorded piece on his second attempt, in about 4 hours total including the write-up. He doesn't claim artistic merit and wouldn't listen to it at home.

  3. Worth knowing

    Expect to hand-fix Claude's Strudel output, since it invented sample names that don't exist. Treat the generated lines as a bank of candidates to whittle down.

Example prompts

Try with Claude Code
Write me a live-coding music piece in Strudel in the style of [describe genre, mood, tempo, and artists]. Use only sample names that exist in Strudel's default sample library and check each one rather than guessing. Then restructure it into sections I can trigger live, such as [intro, build, drop, outro], and save it as [filename] with a short note on how to perform it.
Content & Creative

Turn AI newsletters into a daily podcast

An agent runs overnight, collects the author's AI newsletter subscriptions and produces a daily podcast to listen to on walks.

Other or custom