Skip to content

Write HTML. Render video. Built for agents.

feat(hyperframes-audio): default the voiceover carve strength to 0.8

Vance Ingalls2e2b5c853058
diff --git a/skills-manifest.json b/skills-manifest.json
index b4ca287843..5a54d502c5 100644
--- a/skills-manifest.json
+++ b/skills-manifest.json
@@ -26,7 +26,7 @@
"files": 121
},
"hyperframes-audio": {
- "hash": "d893452e066a0c38",
+ "hash": "24871fc8a76d942f",
"files": 7
},
"hyperframes-cli": {
diff --git a/skills/hyperframes-audio/SKILL.md b/skills/hyperframes-audio/SKILL.md
index 8cb5fa7911..7a2e809278 100644
--- a/skills/hyperframes-audio/SKILL.md
+++ b/skills/hyperframes-audio/SKILL.md
@@ -221,8 +221,8 @@ where it can actually act as a ceiling.
**Required whenever music plays under a voice.** If a composition places a
music bed (BGM) under any voice track — narration, avatar speech, interview,
voiceover — carving the bed is part of finishing the mix, not an optional polish.
-Run `node <SKILL_DIR>/scripts/carve.mjs --comp <file.html>` (add `--bed` /
-`--voice` when detection picks wrong), confirm the written `data-fx-carve`,
+Run `node <SKILL_DIR>/scripts/carve.mjs --comp <file.html>` (default strength
+`0.8`; add `--bed` / `--voice` when detection picks wrong), confirm the written `data-fx-carve`,
`data-fx-chain` and `data-automation` with `npx hyperframes check`, and only then
render. A volume duck on its own is not a finished mix: it leaves the voice and
the bed fighting in the 1–3 kHz band and costs the bed all of its presence for the
@@ -262,11 +262,7 @@ analysis time, so a clip added to the group later is covered without touching
<audio id="vo-middle" data-audio-group="voiceover" …></audio>
<audio id="vo-outro" data-audio-group="voiceover" …></audio>
-<audio
- id="music"
- data-fx-carve='{"enabled":true,"sources":["voiceover"],"strength":0.25}'
- …
-></audio>
+<audio id="music" data-fx-carve='{"enabled":true,"sources":["voiceover"],"strength":0.8}' …></audio>
```
A `sources` list naming two or more plain clip ids instead of a group is caught
@@ -365,12 +361,15 @@ many bands, how wide, how far to favour intelligibility over raw voice energy,
how far the level may drop, how far under the voice to aim. Those six move
together in any real mix — a gentle carve is a shallow cut in few bands with
little ducking, a hard one is deeper in more bands with more — so they are one
-relationship written once, in `carveProfile`. Default is `0.25` — a 6 dB dip in
-three bands with 6 dB of level room, audible without sounding like a hole. At
-`0.5` the dip reaches 10 dB, which is where a carve starts being heard as an
-effect rather than as room for the voice; above that is deliberate territory for
-a loud bed under a quiet voice. `0` is spectral only — one band, no level match
-at all.
+relationship written once, in `carveProfile`. `carve.mjs` defaults to `0.8` —
+six bands from 250 Hz to 2.5 kHz cut about 7 dB each and 15 dB at 1.6 kHz, with
+19 dB of level room — because a bed under narration has to get out of the way
+first and be music second; `0.25` (a 6 dB dip in three bands, 6 dB of room) kept
+the bed present but still let it fight the voice, and was judged too weak in
+practice. At `0.5` the dip reaches 10 dB, which is where a carve starts being
+heard as an effect rather than as room for the voice. Drop the strength when the
+bed is the point and the voice is sparse. `0` is spectral only — one band, no
+level match at all.
**Carve by default.** A bed playing under narration wants a carve; it is not a
polish step to get to if there is time. Place both tracks, run the command below,
@@ -409,9 +408,9 @@ dynamically at the default strength, and prints what it decided:
```
bed music-bed (name looks like music)
voice narration (only track left)
-carve strength 0.25 dynamic
-bands 400Hz -6dB q1.4, 1000Hz -3dB q1.4, 1600Hz -3.17dB q1.4
-level 216-point envelope, floor -6 dB
+carve strength 0.8 dynamic
+bands 250Hz -7.4dB q2.06, 400Hz -7.4dB q2.06, 630Hz -7.4dB q2.06, 1000Hz -7.4dB q2.06, 1600Hz -14.8dB q2.06, 2500Hz -7.4dB q2.06
+level 273-point envelope, floor -19.2 dB
```
Name the tracks with `--bed` / `--voice` (repeatable) when the automatic choice is
diff --git a/skills/hyperframes-audio/scripts/carve.mjs b/skills/hyperframes-audio/scripts/carve.mjs
index a3ee147fb8..5cf7870e6d 100644
--- a/skills/hyperframes-audio/scripts/carve.mjs
+++ b/skills/hyperframes-audio/scripts/carve.mjs
@@ -39,12 +39,12 @@ const usage = `carve.mjs --comp <file.html> [--bed <elementId>] [--voice <elemen
--bed id of the music track that gets carved (detected if omitted)
--voice id of a voice to make room for; repeatable (detected if omitted)
- --strength how hard to carve, 0..1 (default 0.25)
+ --strength how hard to carve, 0..1 (default 0.8)
--dry-run report what it would write, touch nothing
--core directory to resolve @hyperframes/core from (default: the comp's)`;
function parseArgs(argv) {
- const args = { strength: 0.25, dryRun: false, voices: [] };
+ const args = { strength: 0.8, dryRun: false, voices: [] };
for (let i = 0; i < argv.length; i += 1) {
const flag = argv[i];
const next = () => {