@mthines/reaper-mcp 0.77.0 → 0.77.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: Vocal Alignment
3
+ id: vocal-alignment
4
+ description: Tighten doubles, harmonies and backing vocals to a lead by timing, and check the result without listening
5
+ ---
6
+
7
+ # Vocal Alignment
8
+
9
+ ## When to Use
10
+
11
+ - "Tighten the backing vocals to the lead"
12
+ - A double, harmony or call-and-response that drifts against the guide
13
+ - Any stretch or slow-down of a vocal where you need to know if it still sounds clean
14
+
15
+ The ear decides in the end. These steps find the problems the agent can measure and say which edits to hand to the user for listening.
16
+
17
+ ## Tools
18
+
19
+ - `align_audio_to_guide`: hits of a guide item and 1-8 doubles (read from their **source files**), paired in order within `maxShiftMs`, then one stretch marker per hit moves the double onto the guide. `dryRun` shows the move first, `strength` scales it, `protectConsonants` keeps high-band hits rigid. A guide that already has stretch markers is refused. It does not hear take FX: Melodyne and the like are take FX on the item, and the alignment ignores them.
20
+ - `verify_edit`: compares the result with the audio from before the edit (a kept copy on an unmuted reference track, or a bounce). Set `timeScale` to the playback rate when the timing changed (1.1 = the edit is 10% shorter) and `expect: "changed"` for a stretch.
21
+ - `measure_track_alignment`: delay and polarity between two tracks, with the play offset and phase to set.
22
+
23
+ ## Steps
24
+
25
+ 1. **Keep the originals.** Copy the guide and each double to new tracks (`T ref`, `T edit` are fine as temporary names, delete them when done) and edit the copies. Never touch the user's items or solo state. Tracks created without a master send are silent in playback but still render, so turn the master send on for tracks the user will audition.
26
+ 2. **Pick the guide.** The louder, tighter take. A quiet backing vocal against a loud lead is a good test: onsets are found per source file, so level does not matter.
27
+ 3. **Dry run.** `align_audio_to_guide` with `dryRun: true`: read the offset before and after (avg and max ms) per double. Start with `strength` around 0.8 and a `maxShiftMs` under the typical phrase gap; raise it only when hits are missed.
28
+ 4. **Apply** (same call without `dryRun`), then `verify_edit` against the kept copy with `timeScale: 1` for a pure alignment (stretch markers keep the length) and `expect: "changed"`. Judge it by the `discontinuity` check (no click) and the align call's after-offsets; the null residual is one number for the whole window and under `expect: "changed"` is only reported, so it does not say where audio moved.
29
+ 5. **Listen** before accepting: play the aligned range with the guide. The tool checks for damage, not for taste.
30
+
31
+ ## Stretching a vocal: what the checks mean
32
+
33
+ Measured on a real lead and backings with REAPER's stretch (42 edits, two listening rounds):
34
+
35
+ - **Pitch-kept stretches** from 0.92x to 1.25x sound clean: pitch drift within a few cents, tone under 1.5 dB.
36
+ - **Below 0.9x** a pitch-kept slow-down gets audible stretch artifacts (0.80x clearly, 0.85x and 0.88x slightly, 0.90x clean). They pass pitch, tone and transients; `verify_edit` adds a **dropout** check there (deepest loudness dip under the original, warn from 12 dB). The line is provisional (one phrase), and the rate gate does most of the work: treat anything below 0.9x as "listen first", and use it as a dub rather than a lead.
37
+ - **A plain speed change** (preserve pitch cleared, so the pitch follows the speed) is reported as `info`, not a warning, when the speed alone predicts a pitch move of at least 55 cents (rates outside about 0.97x-1.03x): pitch moves by `1200*log2(rate)` cents and the tone moves with it. Up to about 1.5 semitones was accepted by ear. Nearer 1.0 the move is too small to tell from an error, so a drift of 20 cents or more there still warns, and so does any pitch move the speed does not explain.
38
+ - A pitch shift with the timing unchanged (`timeScale` 1) gets no pitch check; shifting and stretching in one edit does.
39
+ - A pass is evidence, not proof. Ratings near the audible edge are noisy (the same audio was heard as artifacted once and clean twice).
40
+
41
+ ## REAPER gotchas for building test edits
42
+
43
+ - `playRate` does not change an item's length: set length = source length / rate.
44
+ - A copied item has preserve pitch on; run action 40796 (clear take preserve pitch) for a varispeed, 40795 sets it.
45
+ - Item pitch: actions 40204 / 40205 (one semitone up / down) act on the selected items.
46
+ - **Put each copy straight at its final position** (`copy_media_items` with `position`). Batch-moving items on one track re-sorts their indexes mid-edit and edits land on the wrong items.
@@ -3,12 +3,12 @@ name: editing
3
3
  description: >
4
4
  Edits a live REAPER session through the reaper MCP tools: MIDI parts (writing,
5
5
  rewriting, quantizing, importing), arrangement (split, move, copy, insert or
6
- remove time), timing and phase, crossfades and comping, voice recordings into
6
+ remove time), timing and phase, vocal alignment and stretch checks, crossfades and comping, voice recordings into
7
7
  arrangements, audio stem separation, and A/B-testing variations in fixed lanes.
8
8
  Changes notes and items, not levels or FX; use /mixer for those. Use when asked
9
9
  to edit, rewrite, tighten, comp, change the groove, compare parts, turn humming
10
10
  or beatboxing into music, or split a recording into stems. Triggers on "edit
11
- the drums", "change the chorus", "make a variation", "A/B these takes",
11
+ the drums", "align the backing vocals", "change the chorus", "make a variation", "A/B these takes",
12
12
  "comp this", "tighten the timing", "compose from this recording", "turn my
13
13
  humming into a song", "split stems", "/editing".
14
14
  argument-hint: '[what to edit, voice recording, stems, or versions to compare]'
@@ -261,6 +261,23 @@ Gotchas:
261
261
  arrangement, snapshots (`/mixer`) for faders, EQ and the master.
262
262
  - For a few-note tweak, edit in place; lanes are for whole alternatives.
263
263
 
264
+ ## Aligning and stretching vocals
265
+
266
+ Tightening doubles, harmonies or backing vocals to a lead, and judging a stretch,
267
+ use `knowledge/workflows/vocal-alignment.md`; load it first. In short:
268
+
269
+ 1. Edit **copies** on temporary tracks (the user's items and solo state stay
270
+ untouched) and delete them when the user is done.
271
+ 2. `align_audio_to_guide` with `dryRun` first, then apply; it reads the items'
272
+ source files, so take FX such as Melodyne are not heard.
273
+ 3. Check the result with `verify_edit` (`timeScale` = the playback rate,
274
+ `expect: "changed"` for a stretch), then **tell the user which edits to
275
+ listen to**. A plain speed change (rates outside about 0.97x-1.03x) is reported as info (pitch follows speed);
276
+ a pitch-kept slow-down below 0.9x gets stretch artifacts that only the
277
+ dropout check and the user's ear catch. A pass is evidence, not a verdict.
278
+ 4. Put each copied item straight at its final position; batch-moving items on a
279
+ track re-sorts their indexes.
280
+
264
281
  ## Workflow
265
282
 
266
283
  1. **Understand** the edit and the song structure (`list_regions`, `list_markers`,
@@ -132,7 +132,7 @@ Shipped baseline at the project `.claude/knowledge/` or `~/.claude/knowledge/`
132
132
  - `genres/{genre}.md` — genre EQ/compression/LUFS conventions (if a genre is named)
133
133
  - `workflows/{task}.md` — step-by-step procedures; map the request to one:
134
134
  gain-staging · session-prep · vocal-chain · drum-bus · low-end · stereo-image ·
135
- master-bus · stem-prep · delivery · section-levels · transient-lighting
135
+ master-bus · stem-prep · delivery · section-levels · transient-lighting · editing · vocal-alignment
136
136
  - `reference/*.md` — frequencies, compression, metering, perceived-loudness, aesthetics-scoring,
137
137
  common-mistakes (read these instead of guessing).
138
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mthines/reaper-mcp",
3
- "version": "0.77.0",
3
+ "version": "0.77.1",
4
4
  "type": "module",
5
5
  "description": "MCP server for controlling REAPER DAW — real-time mixing, FX control, and frequency analysis for AI agents",
6
6
  "license": "MIT",