# Claude Composer Reaper

> Compose and produce music with Claude, and drive REAPER from Claude Code. Use when the user wants Claude to make a track for them ("make me a song", "build a tr

- Skill: `jonogitty/claude-composer-reaper` (Agent Skill, multi-file: 21 files)
- Install (CLI): `npx get-skill add jonogitty/claude-composer-reaper`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jonogitty/claude-composer-reaper/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: JonoGitty (https://skillmd.com/u/jonogitty)
- Updated: 2026-12-05
- Page: https://skillmd.com/skills/jonogitty/claude-composer-reaper

---

---
name: claude-composer-reaper
description: Compose and produce music with Claude, and drive REAPER from Claude Code. Use when the user wants Claude to make a track for them ("make me a song", "build a track around this sample", "write me a loop") — composing the music, authoring the MIDI, and rendering finished audio either live through the REAPER MCP bridge or offline (macOS GM synth) when REAPER is unavailable. Also use to write/debug ReaScript (Lua/EEL2/Python), build JSFX effects, automate mixing/rendering/export, set up an MCP server for live agent control of REAPER, or plug AI music tools (stem separation, mastering, hum-to-MIDI, AI vocals) into a REAPER workflow. Aimed at people who know music well but are new to coding.
---

# claude-composer-reaper

A head start for using Claude Code (or any coding agent) with REAPER. The person you are helping usually knows music and audio engineering well but is new to scripting. Meet them there: explain the music outcome first, keep the code honest, and never let them run something destructive on a real session without a backup.

## How to use this skill

When the user asks for REAPER help, work out which lane they are in and read the matching reference file in `reference/`:

0. **The user wants YOU to compose / produce a track for them** ("make me a song", "build a track around this sample", "write me a loop") -> `reference/08-composing-as-the-agent.md`. This is the headline use: you do the composing, end to end, with or without REAPER. It pulls in `03`/`07` (live MCP) and the offline renderer as needed.
1. **Writing/debugging ReaScript** (the everyday lane) -> `reference/02-scripting-with-claude.md`
2. **Letting an agent control REAPER live via MCP** -> `reference/03-agent-control-mcp.md`, and **`reference/07-mcp-field-notes.md`** (read this before any long live session: real failure modes, setup + recovery playbook, and bridge-free fallbacks)
3. **Building a custom effect or MIDI tool in JSFX** -> `reference/04-jsfx-effects.md`
4. **Plugging AI music tools into the workflow** (stems, mastering, MIDI, vocals) -> `reference/05-music-ai-toolkit.md`
5. **Getting from a finished mix to release files** -> `reference/06-from-mix-to-release.md`

If they have never opened REAPER's scripting side before, start with `reference/01-getting-started.md`.

## Novice mode: "make me a song"

When someone says "make me a song" (or similar: "build me a track", "give me something to start with"), you have two modes. If they want **you to compose the whole thing** (the usual ask now), follow `reference/08-composing-as-the-agent.md` — pick key/tempo/structure, generate the MIDI, and render it (live via MCP, or offline with `scripts/render_midi_macos.swift`). If instead they want a **REAPER skeleton to edit themselves**, point them at `scripts/05_make_me_a_song.lua`. It builds a full multi-track skeleton in one run: drums, bass, chords and melody, with section markers, the tempo set, and ReaSynth loaded on the melodic tracks so it plays immediately.

Drive it conversationally:

1. Ask them one or two questions: which genre (lofi, house, synthwave, ambient, rock) and what key.
2. Set `GENRE` and `KEY_ROOT` at the top of the script to match, then have them run it.
3. From there, take edit requests in plain English ("make the chorus busier", "add a bridge", "swap to a minor key", "make the bass simpler") and edit the script's settings or generation logic for them.

The drum track uses correct General MIDI drum notes but no kit is loaded (ReaSynth cannot play a real kit). Tell the user to point the Drums track at a drum sampler or VSTi they own. Everything is one undo step.

For a fully conversational "make me a song" with no script at all, the alternative is an MCP server (see `reference/03-agent-control-mcp.md`); `bonfire-audio/reaper-mcp` is aimed exactly at this.

**If the live MCP bridge stalls** (writes time out, tracks "vanish", commands hang — see `reference/07-mcp-field-notes.md` for why), don't keep fighting it. Two reliable bridge-free fallbacks:

- **Author the project file directly.** A `.RPP` is plain text; generate tempo, tracks, a copied ReaSynth FX block, and inline `<SOURCE MIDI>` events, write it to disk, and the user double-clicks it. (Read a small REAPER-saved project first as a syntax template.)
- **Render MIDI to real-instrument audio offline** with `scripts/render_midi_macos.swift` — it plays a GM MIDI file through macOS's built-in DLS synth (real instruments + a real drum kit on channel 10), no soundfont download needed. Then master with ffmpeg (`loudnorm`, fade). This is how to deliver finished audio when REAPER itself is uncooperative.

## Ready-to-run starters

The `scripts/` folder has working Lua ReaScripts. Tell the user to drop them into REAPER's Scripts folder (`Options > Show REAPER resource path`), then `Actions > Show action list > New action > Load ReaScript`. Walk them through one before writing anything new:

- `scripts/01_hello_list_tracks.lua` - prints every track name to the console. The "hello world" of ReaScript.
- `scripts/02_color_and_route_by_name.lua` - finds tracks whose name contains a keyword, colours them, and folders them. Shows the real loop most utilities use.
- `scripts/03_generate_chord_progression.lua` - writes a 4-bar MIDI chord progression onto the selected track at the edit cursor. The "composer" starter.
- `scripts/04_humanize_selected_midi.lua` - nudges velocity and timing on selected MIDI notes so programmed parts feel less rigid.
- `scripts/05_make_me_a_song.lua` - the novice headline. Builds a whole genre-aware song skeleton in one run (see above).
- `scripts/06_export_release_bundle.lua` - takes a finished master WAV and produces a 320 kbps MP3 plus a waveform peaks JSON, ready to upload. Needs ffmpeg and audiowaveform installed. macOS/Linux; ask for a Windows variant.

There is also `jsfx/velocity_randomizer.jsfx`, a small MIDI effect they can load in front of an instrument.

`prompts/starter-prompts.md` has copy-paste prompts that produce good results.

## Rules that keep people safe

These are not optional. Bake them into anything you generate.

- **Always wrap edits in an undo block.** `reaper.Undo_BeginBlock()` at the top, `reaper.Undo_EndBlock("description", -1)` at the end. One Ctrl+Z then reverses the whole script.
- **Tell the user to save a copy before running anything new on a real project.** ReaScript edits are real edits.
- **Do not invent API functions.** REAPER's ReaScript API is large and easy to hallucinate. If unsure whether a function exists, say so, and point the user at the official reference (`Help > ReaScript documentation` inside REAPER, or https://www.reaper.fm/sdk/reascript/reascripthelp.html). Prefer functions you can confirm.
- **Prefer calling REAPER's own actions over re-implementing them.** Normalising, rendering and trimming already exist as actions. `reaper.Main_OnCommand(id, 0)` runs a built-in; `reaper.NamedCommandLookup("_SWS_...")` resolves an SWS or extension action by name.
- **Quieten the UI during bulk work.** `reaper.PreventUIRefresh(1)` before the loop, `reaper.PreventUIRefresh(-1)` and `reaper.UpdateArrange()` after. Stops flicker and speeds things up.

## House style when explaining

- Lead with what it does to their music, then the code.
- Lua is the default language. It needs no setup inside REAPER. Only reach for Python if they specifically need a library REAPER cannot give them.
- When a script errors, ask them to copy the REAPER console text back to you, then fix and resend. That loop is the whole workflow.

