Four Prompts, Five Minutes: Codex Composes a Concerto with Scores, Animation, and Real Instruments
mhmazur · x · 2026-09-06
The author told Codex (with GPT-6 Astra) to "compose a concerto" and got "Lanterns at the Water," a three-movement miniature concerto for piano and strings, in five minutes over four short prompts.
- Scores: MIDI, editable MusicXML, and a synthesized audio preview.
- Visualization: An agent-written Python renderer reads the score — piano notes become floating lanterns (pitch sets horizontal position), sustained strings shape rippling water — drawn frame by frame with Pillow/NumPy and encoded to 720p via FFmpeg.
- Real instruments: To replace MIDI sound, it found Apple's built-in instrument bank and wrote a Swift renderer using AVAudioEngine with sampled piano, strings, and cello, adding stereo placement and hall reverb.
- Final sync: FFmpeg swapped in the new soundtrack without re-encoding visuals.
A representative end-to-end agent demo: scores → animation → real audio → final mux, fully reproducible.
More from coding & agent
- Claude Code's real shift: from chat assistant to workspace, plus a beginner setup guide — bibryam · 2026-09-06
- Agent runs unattended for 24h, stays silent and wastes zero tokens — BLUECOW009 · 2026-09-06
- Autonomous OS open-sources on GitHub: an 'Android for robots' that runs agentic reasoning onboard — dee_hw · 2026-09-06
- Burkov Adds the Best Free Computer Networking Textbook With an AI Tutor — burkov · 2026-09-06
- Running 3 agents in Antigravity IDE needs 4-8GB RAM, and 'autonomy' is a stretch — Muted-Contact-6665 · 2026-09-06
- People are talking to the Claude Code model that predicts your next message — it's called Keyhole — repligate · 2026-09-06