Compose an original piano etude as a MIDI file in one run

A Redditor had Claude Code on Fable 5.2 write a fast Chopin-style etude straight to MIDI in Python: 759 notes in 47 minutes for $13.30, with no rerolls or edits.

Done withClaude Code· Nov 10, 2026

What they did

The poster, u/oh-keh, gives every new Claude model the same job in Claude Code. One prompt asks for an original, fast piano piece in the manner of a Chopin etude, delivered as a MIDI file. The model cannot listen to anything, so it wrote the notes, timing, dynamics and pedal marks as a MIDI file from a Python script. The poster allows one run with no rerolls and does not change any notes. For the clip they played the file through a sampled grand piano (Salamander Grand Piano) and a falling-notes visualiser they had built themselves.

How it went

Fable 5.2 at max effort ran for 47 minutes and used 262,305 output tokens, 243,553 of them thinking, about $13.30 at API prices. It produced 759 notes covering the full keyboard from A0 to C8 and named the piece "Riptide", an etude in B-flat minor. On the same prompt Opus 5.5 at max effort had taken 45 minutes, cost $7.20 and written 651 notes. Most commenters, including self-described musicians, found the result busy, repetitive and without a clear thread or resolution, while agreeing it was a neat technical feat.

Worth knowing

The music is the model's but the sound is not: the timbre comes from a sample library and the visuals from the poster's own player. Expect a long, thinking-heavy run at max effort. Commenters suggested asking for a genre listeners know better, such as a film score, since an etude is meant to be a technical exercise rather than a showpiece.

Try it

With Claude Code· 6 parts to fill in

Compose an original [tempo, e.g. fast] piano piece in the style of [composer or genre], about [length] long. Write it as a MIDI file using a Python script you create in [project folder], including notes, timing, velocity and sustain pedal. Keep it playable by two hands and use the range [lowest to highest note]. Give the piece a title and key, print a short summary of its structure and note count, and stop once [output file name].mid is written and opens without errors.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related