Update to JuicyLucy Ads
Snapshot Oct 24, 2026 · 13:24 UTC · version 0.33.2
Collection source: downloaded plugin package. These snapshots do not have a confirmed matching collection source. Differences in file lists alone do not establish changes to the package.
Instructions updated for hyperframes-audio
Full description — Now says: (an `hf-audio-group` element).
Observed in instructions or declared skills. Runtime behavior has not been tested.
Up to 3 plugins free · no card required.
All fields and original values.
Full description
Sep 30, 2026 · 23:16 UTC
(`<hf-audio-group>`).
Oct 24, 2026 · 13:24 UTC
(an `hf-audio-group` element).
Skill instructions
Sep 30, 2026 · 23:16 UTC
(`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`." > Modified by Juicy Lucy AI, UAB for Ju...
Oct 24, 2026 · 13:24 UTC
(an `hf-audio-group` element). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`." > Modified by Juicy Lucy AI, U...
Supporting files
Sep 30, 2026 · 23:16 UTC
[{"relative_path":"references/attributes.md","size_in_bytes":6216},{"relative_path":"references/diagnosis.md","size_in_bytes":12300},{"relative_path":"references/fx-registry.md","size_in_bytes":6928},{"relative_path":"references/presets....
Oct 24, 2026 · 13:24 UTC
[{"relative_path":"references/attributes.md","size_in_bytes":6697},{"relative_path":"references/diagnosis.md","size_in_bytes":12798},{"relative_path":"references/fx-registry.md","size_in_bytes":7981},{"relative_path":"references/presets....
Compare saved observations
Download comparison JSONSKILL.md text changes
− removed · + added
--- before +++ after @@ -1,9 +1,9 @@ --- name: hyperframes-audio -description: "Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`." +description: "Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (an `hf-audio-group` element). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`." --- -> Modified by Juicy Lucy AI, UAB for JuicyLucy Ads: CLI invocation, the review-approval reference and/or frontmatter (description layout, upstream-only metadata) adjusted at build time. See the plugin root NOTICE for details. +> Modified by Juicy Lucy AI, UAB for JuicyLucy Ads: CLI invocations (pointed at the installed launchers, never npm latest), the review-approval reference, the pointer to HyperFrames' own plugin rules, third-party install instructions, references to omitted provider integrations and usage telemetry, unpinned install and HeyGen video instructions, the environment a script passes to its local preview server and the pattern it reads Chrome's local address with, one line break and/or frontmatter (description layout, upstream-only metadata) adjusted at build time. See the plugin root NOTICE for details. # HyperFrames Audio @@ -43,7 +43,7 @@ | `data-fx-carve` | the carve's own settings, so it can be re-derived | The shipped effect families are gain, EQ (highpass, lowpass, peaking, shelves), -compressor, limiter, gate, saturate, delay, reverb, chorus, phaser, and bitcrush. +compressor, limiter, truepeak (lookahead true-peak limiter), gate, saturate, delay, reverb, chorus, phaser, and bitcrush. Exact JSON for each, and the rules a lane must satisfy: `references/attributes.md`. Every effect with its parameters, ranges and units: `references/fx-registry.md`. @@ -65,7 +65,7 @@ subgraph AUTHOR["Authoring — the only things that write attributes"] panel["Studio<br/>Voiceover carve control"] - script["scripts/carve.mjs<br/>detects the pair, dynamic by default"] + script["scripts/carve.mjs<br/>detects the pair"] analysis["core/audioCarve.ts<br/>carveProfile · analyseCarveBands<br/>analyseCarveDuck · analyseCarveDynamics"] panel --> analysis script --> analysis @@ -75,7 +75,7 @@ bed --> analysis subgraph ATTRS["Written onto the bed element"] - carveAttr["data-fx-carve<br/>source · strength · dynamic"] + carveAttr["data-fx-carve<br/>sources · strength"] chainAttr["data-fx-chain<br/>peaking xN + gain, tagged fromCarve"] autoAttr["data-automation<br/>a lane per carved parameter"] end @@ -126,8 +126,6 @@ l4["lane fx.n4.gain"] -.->|"how far the bed<br/>ducks overall"| g ``` -A static carve is the same graph with fixed values and no lanes at all. - ## First, work out what is wrong The table below starts from "it sounds boomy" — which presumes somebody already @@ -188,10 +186,14 @@ the whole thing down costs the mix. A high-pass on a voice is the standard fix for rumble; a low-pass darkens or muffles deliberately. -**Dynamics** (`gain`, `compressor`, `limiter`, `gate`) decide how a track's level +**Dynamics** (`gain`, `compressor`, `limiter`, `truepeak`, `gate`) decide how a track's level behaves over time. Compression narrows the distance between loud and quiet so the -quiet parts can come up. A limiter is a ceiling — it does not shape anything, it -guarantees nothing gets past. A gate removes what is below a threshold, which is +quiet parts can come up. A limiter pulls peaks down toward a ceiling and does not +shape anything else. `limiter` follows the level and has no lookahead, so a fast +or inter-sample peak can pass its ceiling; for a delivery ceiling use `truepeak`, which looks ahead and measures the inter-sample peak. It +holds a 4x estimate at the ceiling, not the waveform itself, so full-band noise can +end up to 1.7 dB over: under a hard delivery limit set the ceiling at least 2 dB +below it. A gate removes what is below a threshold, which is how you silence room tone between phrases. `gain` is a plain level stage, and it is what an automation lane rides when a track has to move out of the way. @@ -266,8 +268,8 @@ that wrote the attribute never measured it. Both are invisible at the moment the carve is written: the analysis sums the -voices it detected and never round-trips through group resolution, so the first -pass is genuinely correct and only the next one is wrong. So give each role its +voices it detected and never round-trips through group resolution, so the +first pass is genuinely correct and only the next one is wrong. So give each role its own group — `music` for the bed, `voiceover` for the narration, `sfx` for the hits — and keep the group named in `sources` holding nothing but voices. @@ -333,6 +335,13 @@ so the bed then runs through the bus's filters AND its own. The `audio_group_carve_attr` lint rule catches it. +**One effect across the whole mix: the master bus.** A clip names exactly one +group, so a limiter or EQ over everything cannot be a group. Put it in +`data-fx-chain` on the top-level composition root: it runs once over the sum of all clips and groups, after each +group's chain and fader. A delivery ceiling is the usual use — `truepeak` last in +the master chain. Only the top-level root is read as the master bus; a +sub-composition root's `data-fx-chain` is not applied inside a parent composition. No master automation. + **One clip is not a bus.** A group exists to give several tracks one chain, one fader and one clock. Wrapping a single clip in a bus buys nothing the clip's own `data-fx-chain` does not already do, and it doubles the places a later edit has @@ -360,7 +369,7 @@ carve as part of finishing the mix, not as a polish step to get to if there is time. Place both tracks, run the command below (default strength `0.8`; add `--bed` / `--voice` when detection picks wrong), confirm the written -`data-fx-carve`, `data-fx-chain` and `data-automation` with `hyperframes check`, +`data-fx-carve`, `data-fx-chain` and `data-automation` with `~/.juicylucy/bin/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 whole voiceover. Skip the carve only when there is no voice for @@ -374,31 +383,30 @@ **Level matching is part of it.** Spectral carving cannot fix a bed that is simply louder than the voice. So the carve also measures how far over the voice -the bed sits and writes a `gain` stage: held at one value for a static carve, -driven by an envelope for a dynamic one. That envelope releases slowly on +the bed sits and writes a `gain` stage driven by an envelope. That envelope releases slowly on purpose — music that snaps back to full the instant a word ends sounds like a machine doing it. **Running it.** In Studio the carve is one module at the top of a track's effect -rack — voice, strength, dynamic, and the analysis it produced, in one card. It is +rack — voice, strength, and the analysis it produced, in one card. It is there whenever another track could be the voice, and a bed with exactly **one** -candidate above it is carved by default, dynamically, at the default strength: +candidate above it is carved by default, at the default strength: that is what a bed under narration wants, and the module is where you change or switch it off. Several candidates leaves the picker waiting rather than guessing. Headless — which is the path when you are authoring a composition rather than editing one: ```bash -node <SKILL_DIR>/scripts/carve.mjs --comp index.html +~/.juicylucy/bin/adsnode <SKILL_DIR>/scripts/carve.mjs --comp index.html ``` That is the whole command. It finds the voice and the bed itself, carves -dynamically at the default strength, and prints what it decided: +at the default strength, and prints what it decided: ``` bed music-bed (name looks like music) voice narration (only track left) -carve strength 0.8 dynamic +carve strength 0.8, 1 voice 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 ``` @@ -434,8 +442,8 @@ `fx.<nodeId>.<param>` for an effect's knob. **Only some parameters can be automated, and a lane on the others is silently -inert.** A knob is automatable when a Web Audio `AudioParam` backs it. The four -worklet-based effects — `compressor`, `limiter`, `gate`, `bitcrush` — expose +inert.** A knob is automatable when a Web Audio `AudioParam` backs it. The +worklet-based effects — `compressor`, `limiter`, `truepeak`, `gate`, `bitcrush` — expose none at all, so no lane on any of their parameters will ever move: to make a compressor's behaviour change over time, automate a `gain` stage before it instead. `references/fx-registry.md` marks every parameter. @@ -463,7 +471,7 @@ longer ends exactly at its `data-duration`; that is expected, not a bug. Beyond that, a mix is verified by rendering and listening. For a carve: the voice -should be legible without the bed sounding hollowed, and with `dynamic` the bed +should be legible without the bed sounding hollowed, and the bed should come back up between phrases rather than staying flat. If the bed sounds notched rather than simply quieter under the voice, the strength is too high — that is the one failure mode with an obvious sound.
Full technical diff · 3 changed fields
changed /description
"Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`."
"Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (an `hf-audio-group` element). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`."
changed /included_files
[
{
"relative_path": "references/attributes.md",
"size_in_bytes": 6216
},
{
"relative_path": "references/diagnosis.md",
"size_in_bytes": 12300
},
{
"relative_path": "references/fx-registry.md",
"size_in_bytes": 6928
},
{
"relative_path": "references/presets.md",
"size_in_bytes": 13155
},
{
"relative_path": "scripts/carve.mjs",
"size_in_bytes": 24261
}
][
{
"relative_path": "references/attributes.md",
"size_in_bytes": 6697
},
{
"relative_path": "references/diagnosis.md",
"size_in_bytes": 12798
},
{
"relative_path": "references/fx-registry.md",
"size_in_bytes": 7981
},
{
"relative_path": "references/presets.md",
"size_in_bytes": 13155
},
{
"relative_path": "scripts/carve.mjs",
"size_in_bytes": 23848
},
{
"relative_path": "scripts/lib/main-module.mjs",
"size_in_bytes": 479
}
]changed /skill_md_contents
"---\nname: hyperframes-audio\ndescription: \"Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.\"\n---\n\n> Modified by Juicy Lucy AI, UAB for JuicyLucy Ads: CLI invocation, the review-approval reference and/or frontmatter (description layout, upstream-only metadata) adjusted at build time. See the plugin root NOTICE for details.\n\n\n# HyperFrames Audio\n\nA mix is a set of relationships, not a stack of processors. Two tracks that each\nsound right alone can be unlistenable together, and the fix is almost never \"turn\none down\" — it is finding what they are fighting over and giving it to whichever\none needs it. Every tool here exists to express one of those relationships.\n\nEffects live on the element as `data-fx-chain`, and preview and render run the\nsame Web Audio graph — the studio in a live context, the engine in an offline one\ninside the browser it already drives. There is one implementation of each effect,\nso what you hear while scrubbing is what gets written. You never tune twice.\n\nClip timing remains `/hyperframes-core`: audio/video trims and source ranges use\n`data-start`, `data-duration`, and `data-media-start`, and crossfades overlap\nclips on different tracks. This skill owns placed-track fade-in/fade-out,\ncrossfade envelopes, track gain/track volume, volume and effect automation,\nducking/voiceover carve, and the effect chain. `/media-use` owns sourcing,\ngeneration, and preprocessing.\n\nConstant `data-playback-rate` (`0.1..10`) is render-safe for picture and\npitch-preserved sound when matching audio/video elements use the same timing,\nsource offset, and rate. A speed ramp is a `rate` lane in `data-automation`\n(see `docs/reference/speed-ramps`); it wins over the constant and keeps pitch\nin preview and render. HyperFrames does not\nprovide automatic waveform sync or drift correction.\nFor copyable cut/crossfade/retime recipes, use `/hyperframes-core` → `references/creator-editing-recipes.md`.\n\nThree attributes carry everything, on the audio/video element itself — or, for\nthe first two, on an `<hf-audio-group>` bus (see \"One bus for many tracks\"):\n\n| Attribute | Holds |\n| ----------------- | --------------------------------------------------------- |\n| `data-fx-chain` | the effects, in signal order |\n| `data-automation` | envelopes on this track's volume or its effect parameters |\n| `data-fx-carve` | the carve's own settings, so it can be re-derived |\n\nThe shipped effect families are gain, EQ (highpass, lowpass, peaking, shelves),\ncompressor, limiter, gate, saturate, delay, reverb, chorus, phaser, and bitcrush.\n\nExact JSON for each, and the rules a lane must satisfy: `references/attributes.md`.\nEvery effect with its parameters, ranges and units: `references/fx-registry.md`.\nHow to work out what is wrong with a file you cannot hear:\n`references/diagnosis.md`.\n**Presets, named jobs and one-knob profiles, plus a symptom-to-fix table:\n`references/presets.md`** — read that before hand-building a chain, because one\nof the presets or named jobs usually already names the problem.\n\n## How it fits together\n\nTwo authoring surfaces write those attributes; two runtimes read them through the\nsame builders. That shared middle is why preview predicts the render.\n\n```mermaid\nflowchart TB\n voice[\"voice track<br/>media file\"]\n bed[\"music bed<br/>media file\"]\n\n subgraph AUTHOR[\"Authoring — the only things that write attributes\"]\n panel[\"Studio<br/>Voiceover carve control\"]\n script[\"scripts/carve.mjs<br/>detects the pair, dynamic by default\"]\n analysis[\"core/audioCarve.ts<br/>carveProfile · analyseCarveBands<br/>analyseCarveDuck · analyseCarveDynamics\"]\n panel --> analysis\n script --> analysis\n end\n\n voice --> analysis\n bed --> analysis\n\n subgraph ATTRS[\"Written onto the bed element\"]\n carveAttr[\"data-fx-carve<br/>source · strength · dynamic\"]\n chainAttr[\"data-fx-chain<br/>peaking xN + gain, tagged fromCarve\"]\n autoAttr[\"data-automation<br/>a lane per carved parameter\"]\n end\n\n analysis --> carveAttr\n analysis --> chainAttr\n analysis --> autoAttr\n\n subgraph SHARED[\"One implementation, read by both\"]\n build[\"audioFxGraph.ts · buildFxChain\"]\n sched[\"audioFxAutomation.ts · scheduleChainAutomation\"]\n end\n\n chainAttr --> build\n autoAttr --> sched\n\n build --> preview[\"Preview<br/>live AudioContext<br/>attachElementFxChain\"]\n sched --> preview\n build --> render[\"Render<br/>OfflineAudioContext in the headless browser<br/>applyAudioFxChain\"]\n sched --> render\n\n preview --> heard[\"what you hear while scrubbing\"]\n render --> wav[\"processed WAV<br/>+ chainTailSeconds so the mix lets the tail through\"]\n wav --> mix[\"engine · audioMixer<br/>volume lane baked into the PCM here, not in the graph\"]\n mix --> out[\"the rendered mix\"]\n\n edit[\"editing the attribute mid-playback\"] -.->|MutationObserver| preview\n```\n\nThe carve's own settings are never read at playback — the chain and lanes it\nproduced are what play. `data-fx-carve` exists so strength can be changed on an\nexisting carve instead of guessed back out of the filters.\n\nInside a carved bed the signal runs through the dips first, then the level match,\nthen anything you built yourself — which is why a limiter you add still acts as\nthe last ceiling:\n\n```mermaid\nflowchart LR\n src[\"decoded bed\"] --> p1[\"peaking<br/>400 Hz\"]\n p1 --> p2[\"peaking<br/>1 kHz\"]\n p2 --> p3[\"peaking<br/>1.6 kHz\"]\n p3 --> g[\"gain<br/>level match\"]\n g --> hand[\"your own effects<br/>e.g. limiter\"]\n hand --> dest[\"track gain, then out\"]\n\n l1[\"lane fx.n1.gain\"] -.->|\"envelope of the voice's<br/>level in that band\"| p1\n l4[\"lane fx.n4.gain\"] -.->|\"how far the bed<br/>ducks overall\"| g\n```\n\nA static carve is the same graph with fixed values and no lanes at all.\n\n## First, work out what is wrong\n\nThe table below starts from \"it sounds boomy\" — which presumes somebody already\nlistened and said so. Handed a file and \"fix this\", you have no such sentence\nand you cannot listen, so you have to measure. One rule governs all of it:\n\n> **The absolute spectrum of a single unknown voice cannot be diagnosed.**\n> Formants are ±10 dB, fundamentals run 85–255 Hz, and sentences decline 5–6 dB\n> as they end. Every one of those reads as a defect on its own, and every one of\n> them is the speaker.\n\nSo compare, and compare against something **inside the same file**: the clean\noriginal if it exists, otherwise the pauses — whatever is audible in a gap is\nadditive, and the gap's spectrum is the channel rather than the voice. Comparing\nagainst a published average spectrum or a synthesised control voice does not\nwork: two speakers differ by more than most defects, and both wrong answers in\nthe evaluation behind this guidance came from exactly that.\n\nWhen there is no original and no usable silence, a static tonal defect is\ngenuinely under-determined. Say so and offer the readings that fit, rather than\npicking one and building a chain on it.\n\nCommands, traps and worked recipes: **`references/diagnosis.md`**. Read it\nbefore diagnosing a file nobody has described.\n\n## Start from the symptom\n\nOnce you know the band and the kind, name what is wrong with the audio. Most bad audio is\none or two of these, and each has a shipped answer:\n\n| It sounds like | Reach for |\n| ---------------------------------- | -------------------------------------------------- |\n| Hum or thump underneath | `rumble-cut`, or a `highpass` at 80 Hz |\n| Boomy, chesty | **Tame Boominess** job (200 Hz) |\n| Muffled, behind cardboard | **Reduce Mud** job (250 Hz) |\n| Words hard to make out | **Add Clarity** job (3 kHz), or carve the bed |\n| Harsh and tiring | **Soften Harshness** job (3.2 kHz) |\n| Some words much louder than others | **Evenness** on a compressor, or Even Out Levels |\n| Room tone between sentences | `room-gate` |\n| Voice and music fighting | **Voiceover carve** — not an EQ on either |\n| Dry, recorded nowhere | `room-tight` or `room-natural` |\n| Just \"amateur\" | `voice-clean`, which is four of the above in order |\n\nFull catalogue, what each preset contains, the band vocabulary, and what is\ndeliberately NOT covered (de-essing, noise removal, tone match):\n`references/presets.md`.\n\nSubtract before you add, level after you filter, relationships after level,\ncharacter and ceiling last. Each step changes what the next one hears — a\ncompressor set before a high-pass spends its time chasing rumble.\n\n## Reach for a family by the problem, not the name\n\n**Filters** (`highpass`, `lowpass`, `peaking`, `lowshelf`, `highshelf`) decide\nwhich frequencies a track is allowed to occupy. This is the first tool for two\nsources colliding, because collisions happen in bands: a bed and a voice both\nwant 1–3 kHz, and taking that from the bed costs the bed far less than turning\nthe whole thing down costs the mix. A high-pass on a voice is the standard fix\nfor rumble; a low-pass darkens or muffles deliberately.\n\n**Dynamics** (`gain`, `compressor`, `limiter`, `gate`) decide how a track's level\nbehaves over time. Compression narrows the distance between loud and quiet so the\nquiet parts can come up. A limiter is a ceiling — it does not shape anything, it\nguarantees nothing gets past. A gate removes what is below a threshold, which is\nhow you silence room tone between phrases. `gain` is a plain level stage, and it\nis what an automation lane rides when a track has to move out of the way.\n\n**Nonlinear** (`saturate`, `bitcrush`) changes the waveform's shape, which adds\nharmonics that were not there. Reach for it when a track needs character or\ngrit rather than correction — and remember it is generative: it makes a thin\nsource denser, not cleaner.\n\n**Time** (`delay`, `reverb`, `chorus`, `phaser`) puts a track in a space or gives\nit width. These are the ones that most easily wreck a mix, because a tail or a\ndetuned copy occupies the same room a voice needs. Use them on the thing that\nshould sit _behind_ something else, and keep the wet amount lower than sounds\nright in isolation.\n\nThe chain is serial: each effect processes what the one before it produced. So\ncorrective filtering goes early, character in the middle, and a limiter last\nwhere it can actually act as a ceiling.\n\n## Voiceover carve\n\n**The problem it solves.** A music bed under a voice makes the voice hard to\nfollow. The reflex is to duck the whole bed, which works and costs the bed all of\nits presence — the music goes limp for the entire voiceover. But the voice does\nnot need the whole spectrum. It needs the few bands it actually occupies. Carve\ntakes only those, and the bed keeps its low end and its top, so it is still music\nwhile the voice is still intelligible.\n\n**It is a relationship, not an effect.** The settings live on the _bed_ — the\ntrack that gets processed — and they name the voices to listen to, exactly as a\nsidechain compressor does: you select the track that gets quieter and pick what\nmakes it quieter. **Never put a carve on a voice track.** A voice carved against\nitself is a bug, not a subtle mix choice.\n\n**Every voice, not one of them.** `sources` is a list, because a bed usually runs\nunder a whole sequence — a narrator, an interview answer, a second presenter. They\nare summed onto the bed's own clock before anything is measured (`mixCarveSources`),\nso one analysis covers all of them: the bands come from all the speech there is, and\nthe envelopes rise wherever any of it is happening. Voices that never play while the\nbed does are left out; they cannot mask it.\n\n**A carve against more than one clip id is wrong. Group the clips and carve\nagainst the group.** This is an invariant, not a tip. Naming clips one by one has\nto be exhaustively right and stays right only until the next edit — a fourth\nnarration clip added later plays outside the carve's awareness, and the bed\nfails to duck under it silently. Naming the group instead resolves membership at\nanalysis time, so a clip added to the group later is covered without touching\n`sources` at all:\n\n```html\n<!-- group the narration, then carve the bed against the group -->\n<audio id=\"vo-intro\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-middle\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-outro\" data-audio-group=\"voiceover\" …></audio>\n\n<audio id=\"music\" data-fx-carve='{\"enabled\":true,\"sources\":[\"voiceover\"],\"strength\":0.8}' …></audio>\n```\n\nA `sources` list naming two or more plain clip ids instead of a group is caught\nby the `audio_carve_ungrouped_sources` lint rule — it still works, but it is the\nversion that silently rots when a clip is added.\n\n**Keep the carve group a voice group: no bed, no SFX, no music.** A group id in\n`sources` resolves to every _current_ member on _every_ analysis, so the group\nyou name is the group you get later — not the tracks that were measured when it\nwas written. Two ways that bites:\n\n- **The bed in its own source group.** It is handed to itself as a voice and\n carved against its own content — the \"never carve a track against itself\" rule\n arriving one re-analysis later.\n- **An SFX or music clip in the voice group.** It enters the sidechain on the\n next analysis and the bed starts ducking under a whoosh, even though the run\n that wrote the attribute never measured it.\n\nBoth are invisible at the moment the carve is written: the analysis sums the\nvoices it detected and never round-trips through group resolution, so the first\npass is genuinely correct and only the next one is wrong. So give each role its\nown group — `music` for the bed, `voiceover` for the narration, `sfx` for the\nhits — and keep the group named in `sources` holding nothing but voices.\n\n`carve.mjs` refuses to write the group form when it sees either case, records\nclip ids, and says on stderr which member blocked it. The\n`audio_carve_ungrouped_sources` rule then points at the arrangement instead of\nthe CLI quietly persisting a wider carve than it measured.\n\nA voice that this run left out is **not** one of these cases and does not block\nthe group form: `carve.mjs` only analyses voices that overlap the bed, and\npicking up a clip that plays later without an edit to `sources` is the whole\nreason to name the group.\n\n### One bus for many tracks\n\nMembership alone is enough to carve against, as above — but add an\n`<hf-audio-group>` element with that id and the group becomes a real submix bus:\none chain, one fader, one automation clock for every member.\n\n```html\n<hf-audio-group\n id=\"voiceover\"\n data-label=\"Voiceover\"\n data-volume=\"0.9\"\n data-fx-chain='{\"version\":1,\"nodes\":[\n {\"type\":\"compressor\",\"id\":\"g1\",\"params\":{\"threshold\":-18,\"ratio\":3}},\n {\"type\":\"peaking\",\"id\":\"g2\",\"params\":{\"frequency\":3000,\"gain\":2,\"q\":1}}]}'\n></hf-audio-group>\n\n<audio id=\"vo-intro\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-middle\" data-audio-group=\"voiceover\" …></audio>\n```\n\n**Reach for the bus when the same treatment belongs on several tracks.** Four\nnarration clips that each want the same compressor is four chains to keep in\nstep, and they drift the moment one is edited; on the bus it is one chain, and\nthe compressor sees the whole voice rather than each clip in isolation — which is\nthe point, since a compressor cannot ride a sequence it only hears a third of.\nPer-clip chains remain right for what is genuinely per-clip: one noisy take that\nneeds its own de-esser.\n\n| On the bus | Does |\n| ----------------- | ----------------------------------------- |\n| `data-fx-chain` | one chain over the summed members |\n| `data-automation` | envelopes on the bus, in COMPOSITION time |\n| `data-volume` | one fader for every member (default 1) |\n| `data-label` | the display name; falls back to the id |\n| `data-hidden` | drops every member from the mix |\n\n**Group automation is composition time, not clip time.** A bus has no\n`data-start` — members are already at their composition positions when they\nreach it — so `t: 0` in a group lane is the start of the composition, not of any\nclip. A lane on a clip is clip-local; the same numbers mean different instants on\nthe two, which is the one thing to get right when moving an envelope from a clip\nup onto its bus.\n\n**A carve stays on the clip.** `data-fx-carve` is not a group attribute. The bed\nbeing carved is a single track, and it is that track which carries\n`data-fx-carve` — pointed AT a group, per the rule above. Group and carve meet in\n`sources`, not on one element. A carve written onto a bus is half an effect\napplied twice: the level half measures the bed's own audio, which a bus has none\nof, so only the filters survive — and a bus and its members are one signal path,\nso the bed then runs through the bus's filters AND its own. The\n`audio_group_carve_attr` lint rule catches it.\n\n**One clip is not a bus.** A group exists to give several tracks one chain, one\nfader and one clock. Wrapping a single clip in a bus buys nothing the clip's own\n`data-fx-chain` does not already do, and it doubles the places a later edit has\nto land. The one reason to do it anyway: a bus's automation clock is composition\ntime, so a single-member bus is how a lane on that clip gets composition-time\ntiming.\n\n**One knob.** `strength` is 0..1 and derives everything: how deep to cut, how\nmany bands, how wide, how far to favour intelligibility over raw voice energy,\nhow far the level may drop, how far under the voice to aim. Those six move\ntogether in any real mix — a gentle carve is a shallow cut in few bands with\nlittle ducking, a hard one is deeper in more bands with more — so they are one\nrelationship written once, in `carveProfile`. `carve.mjs` defaults to `0.8` —\nsix bands from 250 Hz to 2.5 kHz cut about 7 dB each and 15 dB at 1.6 kHz, with\n19 dB of level room — because a bed under narration has to get out of the way\nfirst and be music second; `0.25` (a 6 dB dip in three bands, 6 dB of room) kept\nthe bed present but still let it fight the voice, and was judged too weak in\npractice. At `0.5` the dip reaches 10 dB, which is where a carve starts being\nheard as an effect rather than as room for the voice. Drop the strength when the\nbed is the point and the voice is sparse. `0` is spectral only — one band, no\nlevel match at all.\n\n**Carve by default — required whenever music plays under a voice.** A bed\nunder any voice track (narration, avatar speech, interview, voiceover) gets a\ncarve as part of finishing the mix, not as a polish step to get to if there is\ntime. Place both tracks, run the command below (default strength `0.8`; add\n`--bed` / `--voice` when detection picks wrong), confirm the written\n`data-fx-carve`, `data-fx-chain` and `data-automation` with `hyperframes check`,\nand only then render. A volume duck on its own is not a finished mix: it leaves\nthe voice and the bed fighting in the 1–3 kHz band and costs the bed all of its\npresence for the whole voiceover. Skip the carve only when there is no voice for\nthe music to sit under — a music video, a title card, a montage cut to the track.\n\n**It always follows the voice.** There is no static mode: a fixed depth thins the\nbed through every pause, and once you have heard both there is no reason to want it.\nEvery value becomes an envelope of the speech's own level — silence leaves the bed\nalone, a loud passage pushes the carve to full depth — written as ordinary automation,\nwhich is why the lanes show up in the timeline and can be edited afterwards.\n\n**Level matching is part of it.** Spectral carving cannot fix a bed that is\nsimply louder than the voice. So the carve also measures how far over the voice\nthe bed sits and writes a `gain` stage: held at one value for a static carve,\ndriven by an envelope for a dynamic one. That envelope releases slowly on\npurpose — music that snaps back to full the instant a word ends sounds like a\nmachine doing it.\n\n**Running it.** In Studio the carve is one module at the top of a track's effect\nrack — voice, strength, dynamic, and the analysis it produced, in one card. It is\nthere whenever another track could be the voice, and a bed with exactly **one**\ncandidate above it is carved by default, dynamically, at the default strength:\nthat is what a bed under narration wants, and the module is where you change or\nswitch it off. Several candidates leaves the picker waiting rather than guessing.\nHeadless —\nwhich is the path when you are authoring a composition rather than editing one:\n\n```bash\nnode <SKILL_DIR>/scripts/carve.mjs --comp index.html\n```\n\nThat is the whole command. It finds the voice and the bed itself, carves\ndynamically at the default strength, and prints what it decided:\n\n```\nbed music-bed (name looks like music)\nvoice narration (only track left)\ncarve strength 0.8 dynamic\nbands 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\nlevel 273-point envelope, floor -19.2 dB\n```\n\nName the tracks with `--bed` / `--voice` (repeatable) when the automatic choice is\nwrong, `--strength` to push it, `--dry-run` to see that report and write nothing.\n\n**How it picks the tracks.** Names first, because that is what you already told it\nand the answer is explainable — `classifyAudioName` in core, the same classifier\nStudio's own picker uses, so the two cannot disagree. A track whose id or filename\nlooks like music (`music`, `bgm`, `bed`, `score`…) is the bed; everything else that\nplays over it and is not SFX-shaped is a voice. Audio elements are preferred: video\ncounts only when no audio track is left to be the voice, or every B-roll clip in the\ncomposition would read as somebody talking. **It refuses when it cannot tell which\ntrack is the bed** rather than carving the wrong one — typing one id is cheap.\n\nSame analysis functions as the panel, so the result is identical. Needs `ffmpeg`\non PATH and `@hyperframes/core` installed in the project (`npm i -D\n@hyperframes/core`) — the CLI inlines core rather than shipping it, so it cannot\nbe borrowed from there.\n\n**What it writes** is an ordinary chain of peaking filters plus a gain stage,\ntagged `fromCarve`. That tagging is the whole trick: a re-run replaces the\nprevious carve and leaves every effect you built by hand — and every lane you\ndrew by hand — exactly where it was. So re-carving at a new strength is safe and\nrepeatable, and `data-fx-carve` exists so the settings can be read back rather\nthan guessed from the filters.\n\n## Automation\n\nA lane is a set of breakpoints on one parameter: `{t, v}` in clip-local seconds\nand the parameter's own units. Targets are `volume` for the track's level, or\n`fx.<nodeId>.<param>` for an effect's knob.\n\n**Only some parameters can be automated, and a lane on the others is silently\ninert.** A knob is automatable when a Web Audio `AudioParam` backs it. The four\nworklet-based effects — `compressor`, `limiter`, `gate`, `bitcrush` — expose\nnone at all, so no lane on any of their parameters will ever move: to make a\ncompressor's behaviour change over time, automate a `gain` stage before it\ninstead. `references/fx-registry.md` marks every parameter.\n\n## Verify\n\nAlmost no static gate covers the mix. The linter reads `data-automation` for\nexactly one conflict — `audio_volume_double_automation`, a volume lane on a track\nthat also has a GSAP tween on `volume`, where the lane wins and the tween is\nignored — plus `audio_volume_tween_overrides_gain`, an authored `data-volume`\non a track whose `volume` is tweened, where the tween's values are absolute and\nreplace that gain instead of scaling it. Nothing validates the\nchain or the effect lanes at all. What\nenforces those is the render: a chain it cannot parse fails the whole mix rather\nthan quietly writing the dry signal, because a mix that sounds plausible and is\nwrong is worse than a refusal. Preview is the opposite by design: an unreadable\nchain plays dry so the composition stays workable.\n\nA lane pointing at a node the chain does not have is pruned on read, not an\nerror — so a typo'd `nodeId` costs you the envelope silently. Read the ids back\nout of the chain rather than assuming what was minted.\n\nEffects with a tail (`reverb`, `delay`) make the rendered track **longer** than\nits source, and the mix is told how much by the chain. So a bed with reverb no\nlonger ends exactly at its `data-duration`; that is expected, not a bug.\n\nBeyond that, a mix is verified by rendering and listening. For a carve: the voice\nshould be legible without the bed sounding hollowed, and with `dynamic` the bed\nshould come back up between phrases rather than staying flat. If the bed sounds\nnotched rather than simply quieter under the voice, the strength is too high —\nthat is the one failure mode with an obvious sound.\n""---\nname: hyperframes-audio\ndescription: \"Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (an `hf-audio-group` element). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.\"\n---\n\n> Modified by Juicy Lucy AI, UAB for JuicyLucy Ads: CLI invocations (pointed at the installed launchers, never npm latest), the review-approval reference, the pointer to HyperFrames' own plugin rules, third-party install instructions, references to omitted provider integrations and usage telemetry, unpinned install and HeyGen video instructions, the environment a script passes to its local preview server and the pattern it reads Chrome's local address with, one line break and/or frontmatter (description layout, upstream-only metadata) adjusted at build time. See the plugin root NOTICE for details.\n\n\n# HyperFrames Audio\n\nA mix is a set of relationships, not a stack of processors. Two tracks that each\nsound right alone can be unlistenable together, and the fix is almost never \"turn\none down\" — it is finding what they are fighting over and giving it to whichever\none needs it. Every tool here exists to express one of those relationships.\n\nEffects live on the element as `data-fx-chain`, and preview and render run the\nsame Web Audio graph — the studio in a live context, the engine in an offline one\ninside the browser it already drives. There is one implementation of each effect,\nso what you hear while scrubbing is what gets written. You never tune twice.\n\nClip timing remains `/hyperframes-core`: audio/video trims and source ranges use\n`data-start`, `data-duration`, and `data-media-start`, and crossfades overlap\nclips on different tracks. This skill owns placed-track fade-in/fade-out,\ncrossfade envelopes, track gain/track volume, volume and effect automation,\nducking/voiceover carve, and the effect chain. `/media-use` owns sourcing,\ngeneration, and preprocessing.\n\nConstant `data-playback-rate` (`0.1..10`) is render-safe for picture and\npitch-preserved sound when matching audio/video elements use the same timing,\nsource offset, and rate. A speed ramp is a `rate` lane in `data-automation`\n(see `docs/reference/speed-ramps`); it wins over the constant and keeps pitch\nin preview and render. HyperFrames does not\nprovide automatic waveform sync or drift correction.\nFor copyable cut/crossfade/retime recipes, use `/hyperframes-core` → `references/creator-editing-recipes.md`.\n\nThree attributes carry everything, on the audio/video element itself — or, for\nthe first two, on an `<hf-audio-group>` bus (see \"One bus for many tracks\"):\n\n| Attribute | Holds |\n| ----------------- | --------------------------------------------------------- |\n| `data-fx-chain` | the effects, in signal order |\n| `data-automation` | envelopes on this track's volume or its effect parameters |\n| `data-fx-carve` | the carve's own settings, so it can be re-derived |\n\nThe shipped effect families are gain, EQ (highpass, lowpass, peaking, shelves),\ncompressor, limiter, truepeak (lookahead true-peak limiter), gate, saturate, delay, reverb, chorus, phaser, and bitcrush.\n\nExact JSON for each, and the rules a lane must satisfy: `references/attributes.md`.\nEvery effect with its parameters, ranges and units: `references/fx-registry.md`.\nHow to work out what is wrong with a file you cannot hear:\n`references/diagnosis.md`.\n**Presets, named jobs and one-knob profiles, plus a symptom-to-fix table:\n`references/presets.md`** — read that before hand-building a chain, because one\nof the presets or named jobs usually already names the problem.\n\n## How it fits together\n\nTwo authoring surfaces write those attributes; two runtimes read them through the\nsame builders. That shared middle is why preview predicts the render.\n\n```mermaid\nflowchart TB\n voice[\"voice track<br/>media file\"]\n bed[\"music bed<br/>media file\"]\n\n subgraph AUTHOR[\"Authoring — the only things that write attributes\"]\n panel[\"Studio<br/>Voiceover carve control\"]\n script[\"scripts/carve.mjs<br/>detects the pair\"]\n analysis[\"core/audioCarve.ts<br/>carveProfile · analyseCarveBands<br/>analyseCarveDuck · analyseCarveDynamics\"]\n panel --> analysis\n script --> analysis\n end\n\n voice --> analysis\n bed --> analysis\n\n subgraph ATTRS[\"Written onto the bed element\"]\n carveAttr[\"data-fx-carve<br/>sources · strength\"]\n chainAttr[\"data-fx-chain<br/>peaking xN + gain, tagged fromCarve\"]\n autoAttr[\"data-automation<br/>a lane per carved parameter\"]\n end\n\n analysis --> carveAttr\n analysis --> chainAttr\n analysis --> autoAttr\n\n subgraph SHARED[\"One implementation, read by both\"]\n build[\"audioFxGraph.ts · buildFxChain\"]\n sched[\"audioFxAutomation.ts · scheduleChainAutomation\"]\n end\n\n chainAttr --> build\n autoAttr --> sched\n\n build --> preview[\"Preview<br/>live AudioContext<br/>attachElementFxChain\"]\n sched --> preview\n build --> render[\"Render<br/>OfflineAudioContext in the headless browser<br/>applyAudioFxChain\"]\n sched --> render\n\n preview --> heard[\"what you hear while scrubbing\"]\n render --> wav[\"processed WAV<br/>+ chainTailSeconds so the mix lets the tail through\"]\n wav --> mix[\"engine · audioMixer<br/>volume lane baked into the PCM here, not in the graph\"]\n mix --> out[\"the rendered mix\"]\n\n edit[\"editing the attribute mid-playback\"] -.->|MutationObserver| preview\n```\n\nThe carve's own settings are never read at playback — the chain and lanes it\nproduced are what play. `data-fx-carve` exists so strength can be changed on an\nexisting carve instead of guessed back out of the filters.\n\nInside a carved bed the signal runs through the dips first, then the level match,\nthen anything you built yourself — which is why a limiter you add still acts as\nthe last ceiling:\n\n```mermaid\nflowchart LR\n src[\"decoded bed\"] --> p1[\"peaking<br/>400 Hz\"]\n p1 --> p2[\"peaking<br/>1 kHz\"]\n p2 --> p3[\"peaking<br/>1.6 kHz\"]\n p3 --> g[\"gain<br/>level match\"]\n g --> hand[\"your own effects<br/>e.g. limiter\"]\n hand --> dest[\"track gain, then out\"]\n\n l1[\"lane fx.n1.gain\"] -.->|\"envelope of the voice's<br/>level in that band\"| p1\n l4[\"lane fx.n4.gain\"] -.->|\"how far the bed<br/>ducks overall\"| g\n```\n\n## First, work out what is wrong\n\nThe table below starts from \"it sounds boomy\" — which presumes somebody already\nlistened and said so. Handed a file and \"fix this\", you have no such sentence\nand you cannot listen, so you have to measure. One rule governs all of it:\n\n> **The absolute spectrum of a single unknown voice cannot be diagnosed.**\n> Formants are ±10 dB, fundamentals run 85–255 Hz, and sentences decline 5–6 dB\n> as they end. Every one of those reads as a defect on its own, and every one of\n> them is the speaker.\n\nSo compare, and compare against something **inside the same file**: the clean\noriginal if it exists, otherwise the pauses — whatever is audible in a gap is\nadditive, and the gap's spectrum is the channel rather than the voice. Comparing\nagainst a published average spectrum or a synthesised control voice does not\nwork: two speakers differ by more than most defects, and both wrong answers in\nthe evaluation behind this guidance came from exactly that.\n\nWhen there is no original and no usable silence, a static tonal defect is\ngenuinely under-determined. Say so and offer the readings that fit, rather than\npicking one and building a chain on it.\n\nCommands, traps and worked recipes: **`references/diagnosis.md`**. Read it\nbefore diagnosing a file nobody has described.\n\n## Start from the symptom\n\nOnce you know the band and the kind, name what is wrong with the audio. Most bad audio is\none or two of these, and each has a shipped answer:\n\n| It sounds like | Reach for |\n| ---------------------------------- | -------------------------------------------------- |\n| Hum or thump underneath | `rumble-cut`, or a `highpass` at 80 Hz |\n| Boomy, chesty | **Tame Boominess** job (200 Hz) |\n| Muffled, behind cardboard | **Reduce Mud** job (250 Hz) |\n| Words hard to make out | **Add Clarity** job (3 kHz), or carve the bed |\n| Harsh and tiring | **Soften Harshness** job (3.2 kHz) |\n| Some words much louder than others | **Evenness** on a compressor, or Even Out Levels |\n| Room tone between sentences | `room-gate` |\n| Voice and music fighting | **Voiceover carve** — not an EQ on either |\n| Dry, recorded nowhere | `room-tight` or `room-natural` |\n| Just \"amateur\" | `voice-clean`, which is four of the above in order |\n\nFull catalogue, what each preset contains, the band vocabulary, and what is\ndeliberately NOT covered (de-essing, noise removal, tone match):\n`references/presets.md`.\n\nSubtract before you add, level after you filter, relationships after level,\ncharacter and ceiling last. Each step changes what the next one hears — a\ncompressor set before a high-pass spends its time chasing rumble.\n\n## Reach for a family by the problem, not the name\n\n**Filters** (`highpass`, `lowpass`, `peaking`, `lowshelf`, `highshelf`) decide\nwhich frequencies a track is allowed to occupy. This is the first tool for two\nsources colliding, because collisions happen in bands: a bed and a voice both\nwant 1–3 kHz, and taking that from the bed costs the bed far less than turning\nthe whole thing down costs the mix. A high-pass on a voice is the standard fix\nfor rumble; a low-pass darkens or muffles deliberately.\n\n**Dynamics** (`gain`, `compressor`, `limiter`, `truepeak`, `gate`) decide how a track's level\nbehaves over time. Compression narrows the distance between loud and quiet so the\nquiet parts can come up. A limiter pulls peaks down toward a ceiling and does not\nshape anything else. `limiter` follows the level and has no lookahead, so a fast\nor inter-sample peak can pass its ceiling; for a delivery ceiling use `truepeak`, which looks ahead and measures the inter-sample peak. It\nholds a 4x estimate at the ceiling, not the waveform itself, so full-band noise can\nend up to 1.7 dB over: under a hard delivery limit set the ceiling at least 2 dB\nbelow it. A gate removes what is below a threshold, which is\nhow you silence room tone between phrases. `gain` is a plain level stage, and it\nis what an automation lane rides when a track has to move out of the way.\n\n**Nonlinear** (`saturate`, `bitcrush`) changes the waveform's shape, which adds\nharmonics that were not there. Reach for it when a track needs character or\ngrit rather than correction — and remember it is generative: it makes a thin\nsource denser, not cleaner.\n\n**Time** (`delay`, `reverb`, `chorus`, `phaser`) puts a track in a space or gives\nit width. These are the ones that most easily wreck a mix, because a tail or a\ndetuned copy occupies the same room a voice needs. Use them on the thing that\nshould sit _behind_ something else, and keep the wet amount lower than sounds\nright in isolation.\n\nThe chain is serial: each effect processes what the one before it produced. So\ncorrective filtering goes early, character in the middle, and a limiter last\nwhere it can actually act as a ceiling.\n\n## Voiceover carve\n\n**The problem it solves.** A music bed under a voice makes the voice hard to\nfollow. The reflex is to duck the whole bed, which works and costs the bed all of\nits presence — the music goes limp for the entire voiceover. But the voice does\nnot need the whole spectrum. It needs the few bands it actually occupies. Carve\ntakes only those, and the bed keeps its low end and its top, so it is still music\nwhile the voice is still intelligible.\n\n**It is a relationship, not an effect.** The settings live on the _bed_ — the\ntrack that gets processed — and they name the voices to listen to, exactly as a\nsidechain compressor does: you select the track that gets quieter and pick what\nmakes it quieter. **Never put a carve on a voice track.** A voice carved against\nitself is a bug, not a subtle mix choice.\n\n**Every voice, not one of them.** `sources` is a list, because a bed usually runs\nunder a whole sequence — a narrator, an interview answer, a second presenter. They\nare summed onto the bed's own clock before anything is measured (`mixCarveSources`),\nso one analysis covers all of them: the bands come from all the speech there is, and\nthe envelopes rise wherever any of it is happening. Voices that never play while the\nbed does are left out; they cannot mask it.\n\n**A carve against more than one clip id is wrong. Group the clips and carve\nagainst the group.** This is an invariant, not a tip. Naming clips one by one has\nto be exhaustively right and stays right only until the next edit — a fourth\nnarration clip added later plays outside the carve's awareness, and the bed\nfails to duck under it silently. Naming the group instead resolves membership at\nanalysis time, so a clip added to the group later is covered without touching\n`sources` at all:\n\n```html\n<!-- group the narration, then carve the bed against the group -->\n<audio id=\"vo-intro\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-middle\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-outro\" data-audio-group=\"voiceover\" …></audio>\n\n<audio id=\"music\" data-fx-carve='{\"enabled\":true,\"sources\":[\"voiceover\"],\"strength\":0.8}' …></audio>\n```\n\nA `sources` list naming two or more plain clip ids instead of a group is caught\nby the `audio_carve_ungrouped_sources` lint rule — it still works, but it is the\nversion that silently rots when a clip is added.\n\n**Keep the carve group a voice group: no bed, no SFX, no music.** A group id in\n`sources` resolves to every _current_ member on _every_ analysis, so the group\nyou name is the group you get later — not the tracks that were measured when it\nwas written. Two ways that bites:\n\n- **The bed in its own source group.** It is handed to itself as a voice and\n carved against its own content — the \"never carve a track against itself\" rule\n arriving one re-analysis later.\n- **An SFX or music clip in the voice group.** It enters the sidechain on the\n next analysis and the bed starts ducking under a whoosh, even though the run\n that wrote the attribute never measured it.\n\nBoth are invisible at the moment the carve is written: the analysis sums the\nvoices it detected and never round-trips through group resolution, so the\nfirst pass is genuinely correct and only the next one is wrong. So give each role its\nown group — `music` for the bed, `voiceover` for the narration, `sfx` for the\nhits — and keep the group named in `sources` holding nothing but voices.\n\n`carve.mjs` refuses to write the group form when it sees either case, records\nclip ids, and says on stderr which member blocked it. The\n`audio_carve_ungrouped_sources` rule then points at the arrangement instead of\nthe CLI quietly persisting a wider carve than it measured.\n\nA voice that this run left out is **not** one of these cases and does not block\nthe group form: `carve.mjs` only analyses voices that overlap the bed, and\npicking up a clip that plays later without an edit to `sources` is the whole\nreason to name the group.\n\n### One bus for many tracks\n\nMembership alone is enough to carve against, as above — but add an\n`<hf-audio-group>` element with that id and the group becomes a real submix bus:\none chain, one fader, one automation clock for every member.\n\n```html\n<hf-audio-group\n id=\"voiceover\"\n data-label=\"Voiceover\"\n data-volume=\"0.9\"\n data-fx-chain='{\"version\":1,\"nodes\":[\n {\"type\":\"compressor\",\"id\":\"g1\",\"params\":{\"threshold\":-18,\"ratio\":3}},\n {\"type\":\"peaking\",\"id\":\"g2\",\"params\":{\"frequency\":3000,\"gain\":2,\"q\":1}}]}'\n></hf-audio-group>\n\n<audio id=\"vo-intro\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-middle\" data-audio-group=\"voiceover\" …></audio>\n```\n\n**Reach for the bus when the same treatment belongs on several tracks.** Four\nnarration clips that each want the same compressor is four chains to keep in\nstep, and they drift the moment one is edited; on the bus it is one chain, and\nthe compressor sees the whole voice rather than each clip in isolation — which is\nthe point, since a compressor cannot ride a sequence it only hears a third of.\nPer-clip chains remain right for what is genuinely per-clip: one noisy take that\nneeds its own de-esser.\n\n| On the bus | Does |\n| ----------------- | ----------------------------------------- |\n| `data-fx-chain` | one chain over the summed members |\n| `data-automation` | envelopes on the bus, in COMPOSITION time |\n| `data-volume` | one fader for every member (default 1) |\n| `data-label` | the display name; falls back to the id |\n| `data-hidden` | drops every member from the mix |\n\n**Group automation is composition time, not clip time.** A bus has no\n`data-start` — members are already at their composition positions when they\nreach it — so `t: 0` in a group lane is the start of the composition, not of any\nclip. A lane on a clip is clip-local; the same numbers mean different instants on\nthe two, which is the one thing to get right when moving an envelope from a clip\nup onto its bus.\n\n**A carve stays on the clip.** `data-fx-carve` is not a group attribute. The bed\nbeing carved is a single track, and it is that track which carries\n`data-fx-carve` — pointed AT a group, per the rule above. Group and carve meet in\n`sources`, not on one element. A carve written onto a bus is half an effect\napplied twice: the level half measures the bed's own audio, which a bus has none\nof, so only the filters survive — and a bus and its members are one signal path,\nso the bed then runs through the bus's filters AND its own. The\n`audio_group_carve_attr` lint rule catches it.\n\n**One effect across the whole mix: the master bus.** A clip names exactly one\ngroup, so a limiter or EQ over everything cannot be a group. Put it in\n`data-fx-chain` on the top-level composition root: it runs once over the sum of all clips and groups, after each\ngroup's chain and fader. A delivery ceiling is the usual use — `truepeak` last in\nthe master chain. Only the top-level root is read as the master bus; a\nsub-composition root's `data-fx-chain` is not applied inside a parent composition. No master automation.\n\n**One clip is not a bus.** A group exists to give several tracks one chain, one\nfader and one clock. Wrapping a single clip in a bus buys nothing the clip's own\n`data-fx-chain` does not already do, and it doubles the places a later edit has\nto land. The one reason to do it anyway: a bus's automation clock is composition\ntime, so a single-member bus is how a lane on that clip gets composition-time\ntiming.\n\n**One knob.** `strength` is 0..1 and derives everything: how deep to cut, how\nmany bands, how wide, how far to favour intelligibility over raw voice energy,\nhow far the level may drop, how far under the voice to aim. Those six move\ntogether in any real mix — a gentle carve is a shallow cut in few bands with\nlittle ducking, a hard one is deeper in more bands with more — so they are one\nrelationship written once, in `carveProfile`. `carve.mjs` defaults to `0.8` —\nsix bands from 250 Hz to 2.5 kHz cut about 7 dB each and 15 dB at 1.6 kHz, with\n19 dB of level room — because a bed under narration has to get out of the way\nfirst and be music second; `0.25` (a 6 dB dip in three bands, 6 dB of room) kept\nthe bed present but still let it fight the voice, and was judged too weak in\npractice. At `0.5` the dip reaches 10 dB, which is where a carve starts being\nheard as an effect rather than as room for the voice. Drop the strength when the\nbed is the point and the voice is sparse. `0` is spectral only — one band, no\nlevel match at all.\n\n**Carve by default — required whenever music plays under a voice.** A bed\nunder any voice track (narration, avatar speech, interview, voiceover) gets a\ncarve as part of finishing the mix, not as a polish step to get to if there is\ntime. Place both tracks, run the command below (default strength `0.8`; add\n`--bed` / `--voice` when detection picks wrong), confirm the written\n`data-fx-carve`, `data-fx-chain` and `data-automation` with `~/.juicylucy/bin/hyperframes check`,\nand only then render. A volume duck on its own is not a finished mix: it leaves\nthe voice and the bed fighting in the 1–3 kHz band and costs the bed all of its\npresence for the whole voiceover. Skip the carve only when there is no voice for\nthe music to sit under — a music video, a title card, a montage cut to the track.\n\n**It always follows the voice.** There is no static mode: a fixed depth thins the\nbed through every pause, and once you have heard both there is no reason to want it.\nEvery value becomes an envelope of the speech's own level — silence leaves the bed\nalone, a loud passage pushes the carve to full depth — written as ordinary automation,\nwhich is why the lanes show up in the timeline and can be edited afterwards.\n\n**Level matching is part of it.** Spectral carving cannot fix a bed that is\nsimply louder than the voice. So the carve also measures how far over the voice\nthe bed sits and writes a `gain` stage driven by an envelope. That envelope releases slowly on\npurpose — music that snaps back to full the instant a word ends sounds like a\nmachine doing it.\n\n**Running it.** In Studio the carve is one module at the top of a track's effect\nrack — voice, strength, and the analysis it produced, in one card. It is\nthere whenever another track could be the voice, and a bed with exactly **one**\ncandidate above it is carved by default, at the default strength:\nthat is what a bed under narration wants, and the module is where you change or\nswitch it off. Several candidates leaves the picker waiting rather than guessing.\nHeadless —\nwhich is the path when you are authoring a composition rather than editing one:\n\n```bash\n~/.juicylucy/bin/adsnode <SKILL_DIR>/scripts/carve.mjs --comp index.html\n```\n\nThat is the whole command. It finds the voice and the bed itself, carves\nat the default strength, and prints what it decided:\n\n```\nbed music-bed (name looks like music)\nvoice narration (only track left)\ncarve strength 0.8, 1 voice\nbands 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\nlevel 273-point envelope, floor -19.2 dB\n```\n\nName the tracks with `--bed` / `--voice` (repeatable) when the automatic choice is\nwrong, `--strength` to push it, `--dry-run` to see that report and write nothing.\n\n**How it picks the tracks.** Names first, because that is what you already told it\nand the answer is explainable — `classifyAudioName` in core, the same classifier\nStudio's own picker uses, so the two cannot disagree. A track whose id or filename\nlooks like music (`music`, `bgm`, `bed`, `score`…) is the bed; everything else that\nplays over it and is not SFX-shaped is a voice. Audio elements are preferred: video\ncounts only when no audio track is left to be the voice, or every B-roll clip in the\ncomposition would read as somebody talking. **It refuses when it cannot tell which\ntrack is the bed** rather than carving the wrong one — typing one id is cheap.\n\nSame analysis functions as the panel, so the result is identical. Needs `ffmpeg`\non PATH and `@hyperframes/core` installed in the project (`npm i -D\n@hyperframes/core`) — the CLI inlines core rather than shipping it, so it cannot\nbe borrowed from there.\n\n**What it writes** is an ordinary chain of peaking filters plus a gain stage,\ntagged `fromCarve`. That tagging is the whole trick: a re-run replaces the\nprevious carve and leaves every effect you built by hand — and every lane you\ndrew by hand — exactly where it was. So re-carving at a new strength is safe and\nrepeatable, and `data-fx-carve` exists so the settings can be read back rather\nthan guessed from the filters.\n\n## Automation\n\nA lane is a set of breakpoints on one parameter: `{t, v}` in clip-local seconds\nand the parameter's own units. Targets are `volume` for the track's level, or\n`fx.<nodeId>.<param>` for an effect's knob.\n\n**Only some parameters can be automated, and a lane on the others is silently\ninert.** A knob is automatable when a Web Audio `AudioParam` backs it. The\nworklet-based effects — `compressor`, `limiter`, `truepeak`, `gate`, `bitcrush` — expose\nnone at all, so no lane on any of their parameters will ever move: to make a\ncompressor's behaviour change over time, automate a `gain` stage before it\ninstead. `references/fx-registry.md` marks every parameter.\n\n## Verify\n\nAlmost no static gate covers the mix. The linter reads `data-automation` for\nexactly one conflict — `audio_volume_double_automation`, a volume lane on a track\nthat also has a GSAP tween on `volume`, where the lane wins and the tween is\nignored — plus `audio_volume_tween_overrides_gain`, an authored `data-volume`\non a track whose `volume` is tweened, where the tween's values are absolute and\nreplace that gain instead of scaling it. Nothing validates the\nchain or the effect lanes at all. What\nenforces those is the render: a chain it cannot parse fails the whole mix rather\nthan quietly writing the dry signal, because a mix that sounds plausible and is\nwrong is worse than a refusal. Preview is the opposite by design: an unreadable\nchain plays dry so the composition stays workable.\n\nA lane pointing at a node the chain does not have is pruned on read, not an\nerror — so a typo'd `nodeId` costs you the envelope silently. Read the ids back\nout of the chain rather than assuming what was minted.\n\nEffects with a tail (`reverb`, `delay`) make the rendered track **longer** than\nits source, and the mix is told how much by the chain. So a bed with reverb no\nlonger ends exactly at its `data-duration`; that is expected, not a bug.\n\nBeyond that, a mix is verified by rendering and listening. For a carve: the voice\nshould be legible without the bed sounding hollowed, and the bed\nshould come back up between phrases rather than staying flat. If the bed sounds\nnotched rather than simply quieter under the voice, the strength is too high —\nthat is the one failure mode with an obvious sound.\n"Full snapshot data
{
"description": "Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (an `hf-audio-group` element). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.",
"included_files": [
{
"relative_path": "references/attributes.md",
"size_in_bytes": 6697
},
{
"relative_path": "references/diagnosis.md",
"size_in_bytes": 12798
},
{
"relative_path": "references/fx-registry.md",
"size_in_bytes": 7981
},
{
"relative_path": "references/presets.md",
"size_in_bytes": 13155
},
{
"relative_path": "scripts/carve.mjs",
"size_in_bytes": 23848
},
{
"relative_path": "scripts/lib/main-module.mjs",
"size_in_bytes": 479
}
],
"name": "hyperframes-audio",
"skill_md_contents": "---\nname: hyperframes-audio\ndescription: \"Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (an `hf-audio-group` element). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.\"\n---\n\n> Modified by Juicy Lucy AI, UAB for JuicyLucy Ads: CLI invocations (pointed at the installed launchers, never npm latest), the review-approval reference, the pointer to HyperFrames' own plugin rules, third-party install instructions, references to omitted provider integrations and usage telemetry, unpinned install and HeyGen video instructions, the environment a script passes to its local preview server and the pattern it reads Chrome's local address with, one line break and/or frontmatter (description layout, upstream-only metadata) adjusted at build time. See the plugin root NOTICE for details.\n\n\n# HyperFrames Audio\n\nA mix is a set of relationships, not a stack of processors. Two tracks that each\nsound right alone can be unlistenable together, and the fix is almost never \"turn\none down\" — it is finding what they are fighting over and giving it to whichever\none needs it. Every tool here exists to express one of those relationships.\n\nEffects live on the element as `data-fx-chain`, and preview and render run the\nsame Web Audio graph — the studio in a live context, the engine in an offline one\ninside the browser it already drives. There is one implementation of each effect,\nso what you hear while scrubbing is what gets written. You never tune twice.\n\nClip timing remains `/hyperframes-core`: audio/video trims and source ranges use\n`data-start`, `data-duration`, and `data-media-start`, and crossfades overlap\nclips on different tracks. This skill owns placed-track fade-in/fade-out,\ncrossfade envelopes, track gain/track volume, volume and effect automation,\nducking/voiceover carve, and the effect chain. `/media-use` owns sourcing,\ngeneration, and preprocessing.\n\nConstant `data-playback-rate` (`0.1..10`) is render-safe for picture and\npitch-preserved sound when matching audio/video elements use the same timing,\nsource offset, and rate. A speed ramp is a `rate` lane in `data-automation`\n(see `docs/reference/speed-ramps`); it wins over the constant and keeps pitch\nin preview and render. HyperFrames does not\nprovide automatic waveform sync or drift correction.\nFor copyable cut/crossfade/retime recipes, use `/hyperframes-core` → `references/creator-editing-recipes.md`.\n\nThree attributes carry everything, on the audio/video element itself — or, for\nthe first two, on an `<hf-audio-group>` bus (see \"One bus for many tracks\"):\n\n| Attribute | Holds |\n| ----------------- | --------------------------------------------------------- |\n| `data-fx-chain` | the effects, in signal order |\n| `data-automation` | envelopes on this track's volume or its effect parameters |\n| `data-fx-carve` | the carve's own settings, so it can be re-derived |\n\nThe shipped effect families are gain, EQ (highpass, lowpass, peaking, shelves),\ncompressor, limiter, truepeak (lookahead true-peak limiter), gate, saturate, delay, reverb, chorus, phaser, and bitcrush.\n\nExact JSON for each, and the rules a lane must satisfy: `references/attributes.md`.\nEvery effect with its parameters, ranges and units: `references/fx-registry.md`.\nHow to work out what is wrong with a file you cannot hear:\n`references/diagnosis.md`.\n**Presets, named jobs and one-knob profiles, plus a symptom-to-fix table:\n`references/presets.md`** — read that before hand-building a chain, because one\nof the presets or named jobs usually already names the problem.\n\n## How it fits together\n\nTwo authoring surfaces write those attributes; two runtimes read them through the\nsame builders. That shared middle is why preview predicts the render.\n\n```mermaid\nflowchart TB\n voice[\"voice track<br/>media file\"]\n bed[\"music bed<br/>media file\"]\n\n subgraph AUTHOR[\"Authoring — the only things that write attributes\"]\n panel[\"Studio<br/>Voiceover carve control\"]\n script[\"scripts/carve.mjs<br/>detects the pair\"]\n analysis[\"core/audioCarve.ts<br/>carveProfile · analyseCarveBands<br/>analyseCarveDuck · analyseCarveDynamics\"]\n panel --> analysis\n script --> analysis\n end\n\n voice --> analysis\n bed --> analysis\n\n subgraph ATTRS[\"Written onto the bed element\"]\n carveAttr[\"data-fx-carve<br/>sources · strength\"]\n chainAttr[\"data-fx-chain<br/>peaking xN + gain, tagged fromCarve\"]\n autoAttr[\"data-automation<br/>a lane per carved parameter\"]\n end\n\n analysis --> carveAttr\n analysis --> chainAttr\n analysis --> autoAttr\n\n subgraph SHARED[\"One implementation, read by both\"]\n build[\"audioFxGraph.ts · buildFxChain\"]\n sched[\"audioFxAutomation.ts · scheduleChainAutomation\"]\n end\n\n chainAttr --> build\n autoAttr --> sched\n\n build --> preview[\"Preview<br/>live AudioContext<br/>attachElementFxChain\"]\n sched --> preview\n build --> render[\"Render<br/>OfflineAudioContext in the headless browser<br/>applyAudioFxChain\"]\n sched --> render\n\n preview --> heard[\"what you hear while scrubbing\"]\n render --> wav[\"processed WAV<br/>+ chainTailSeconds so the mix lets the tail through\"]\n wav --> mix[\"engine · audioMixer<br/>volume lane baked into the PCM here, not in the graph\"]\n mix --> out[\"the rendered mix\"]\n\n edit[\"editing the attribute mid-playback\"] -.->|MutationObserver| preview\n```\n\nThe carve's own settings are never read at playback — the chain and lanes it\nproduced are what play. `data-fx-carve` exists so strength can be changed on an\nexisting carve instead of guessed back out of the filters.\n\nInside a carved bed the signal runs through the dips first, then the level match,\nthen anything you built yourself — which is why a limiter you add still acts as\nthe last ceiling:\n\n```mermaid\nflowchart LR\n src[\"decoded bed\"] --> p1[\"peaking<br/>400 Hz\"]\n p1 --> p2[\"peaking<br/>1 kHz\"]\n p2 --> p3[\"peaking<br/>1.6 kHz\"]\n p3 --> g[\"gain<br/>level match\"]\n g --> hand[\"your own effects<br/>e.g. limiter\"]\n hand --> dest[\"track gain, then out\"]\n\n l1[\"lane fx.n1.gain\"] -.->|\"envelope of the voice's<br/>level in that band\"| p1\n l4[\"lane fx.n4.gain\"] -.->|\"how far the bed<br/>ducks overall\"| g\n```\n\n## First, work out what is wrong\n\nThe table below starts from \"it sounds boomy\" — which presumes somebody already\nlistened and said so. Handed a file and \"fix this\", you have no such sentence\nand you cannot listen, so you have to measure. One rule governs all of it:\n\n> **The absolute spectrum of a single unknown voice cannot be diagnosed.**\n> Formants are ±10 dB, fundamentals run 85–255 Hz, and sentences decline 5–6 dB\n> as they end. Every one of those reads as a defect on its own, and every one of\n> them is the speaker.\n\nSo compare, and compare against something **inside the same file**: the clean\noriginal if it exists, otherwise the pauses — whatever is audible in a gap is\nadditive, and the gap's spectrum is the channel rather than the voice. Comparing\nagainst a published average spectrum or a synthesised control voice does not\nwork: two speakers differ by more than most defects, and both wrong answers in\nthe evaluation behind this guidance came from exactly that.\n\nWhen there is no original and no usable silence, a static tonal defect is\ngenuinely under-determined. Say so and offer the readings that fit, rather than\npicking one and building a chain on it.\n\nCommands, traps and worked recipes: **`references/diagnosis.md`**. Read it\nbefore diagnosing a file nobody has described.\n\n## Start from the symptom\n\nOnce you know the band and the kind, name what is wrong with the audio. Most bad audio is\none or two of these, and each has a shipped answer:\n\n| It sounds like | Reach for |\n| ---------------------------------- | -------------------------------------------------- |\n| Hum or thump underneath | `rumble-cut`, or a `highpass` at 80 Hz |\n| Boomy, chesty | **Tame Boominess** job (200 Hz) |\n| Muffled, behind cardboard | **Reduce Mud** job (250 Hz) |\n| Words hard to make out | **Add Clarity** job (3 kHz), or carve the bed |\n| Harsh and tiring | **Soften Harshness** job (3.2 kHz) |\n| Some words much louder than others | **Evenness** on a compressor, or Even Out Levels |\n| Room tone between sentences | `room-gate` |\n| Voice and music fighting | **Voiceover carve** — not an EQ on either |\n| Dry, recorded nowhere | `room-tight` or `room-natural` |\n| Just \"amateur\" | `voice-clean`, which is four of the above in order |\n\nFull catalogue, what each preset contains, the band vocabulary, and what is\ndeliberately NOT covered (de-essing, noise removal, tone match):\n`references/presets.md`.\n\nSubtract before you add, level after you filter, relationships after level,\ncharacter and ceiling last. Each step changes what the next one hears — a\ncompressor set before a high-pass spends its time chasing rumble.\n\n## Reach for a family by the problem, not the name\n\n**Filters** (`highpass`, `lowpass`, `peaking`, `lowshelf`, `highshelf`) decide\nwhich frequencies a track is allowed to occupy. This is the first tool for two\nsources colliding, because collisions happen in bands: a bed and a voice both\nwant 1–3 kHz, and taking that from the bed costs the bed far less than turning\nthe whole thing down costs the mix. A high-pass on a voice is the standard fix\nfor rumble; a low-pass darkens or muffles deliberately.\n\n**Dynamics** (`gain`, `compressor`, `limiter`, `truepeak`, `gate`) decide how a track's level\nbehaves over time. Compression narrows the distance between loud and quiet so the\nquiet parts can come up. A limiter pulls peaks down toward a ceiling and does not\nshape anything else. `limiter` follows the level and has no lookahead, so a fast\nor inter-sample peak can pass its ceiling; for a delivery ceiling use `truepeak`, which looks ahead and measures the inter-sample peak. It\nholds a 4x estimate at the ceiling, not the waveform itself, so full-band noise can\nend up to 1.7 dB over: under a hard delivery limit set the ceiling at least 2 dB\nbelow it. A gate removes what is below a threshold, which is\nhow you silence room tone between phrases. `gain` is a plain level stage, and it\nis what an automation lane rides when a track has to move out of the way.\n\n**Nonlinear** (`saturate`, `bitcrush`) changes the waveform's shape, which adds\nharmonics that were not there. Reach for it when a track needs character or\ngrit rather than correction — and remember it is generative: it makes a thin\nsource denser, not cleaner.\n\n**Time** (`delay`, `reverb`, `chorus`, `phaser`) puts a track in a space or gives\nit width. These are the ones that most easily wreck a mix, because a tail or a\ndetuned copy occupies the same room a voice needs. Use them on the thing that\nshould sit _behind_ something else, and keep the wet amount lower than sounds\nright in isolation.\n\nThe chain is serial: each effect processes what the one before it produced. So\ncorrective filtering goes early, character in the middle, and a limiter last\nwhere it can actually act as a ceiling.\n\n## Voiceover carve\n\n**The problem it solves.** A music bed under a voice makes the voice hard to\nfollow. The reflex is to duck the whole bed, which works and costs the bed all of\nits presence — the music goes limp for the entire voiceover. But the voice does\nnot need the whole spectrum. It needs the few bands it actually occupies. Carve\ntakes only those, and the bed keeps its low end and its top, so it is still music\nwhile the voice is still intelligible.\n\n**It is a relationship, not an effect.** The settings live on the _bed_ — the\ntrack that gets processed — and they name the voices to listen to, exactly as a\nsidechain compressor does: you select the track that gets quieter and pick what\nmakes it quieter. **Never put a carve on a voice track.** A voice carved against\nitself is a bug, not a subtle mix choice.\n\n**Every voice, not one of them.** `sources` is a list, because a bed usually runs\nunder a whole sequence — a narrator, an interview answer, a second presenter. They\nare summed onto the bed's own clock before anything is measured (`mixCarveSources`),\nso one analysis covers all of them: the bands come from all the speech there is, and\nthe envelopes rise wherever any of it is happening. Voices that never play while the\nbed does are left out; they cannot mask it.\n\n**A carve against more than one clip id is wrong. Group the clips and carve\nagainst the group.** This is an invariant, not a tip. Naming clips one by one has\nto be exhaustively right and stays right only until the next edit — a fourth\nnarration clip added later plays outside the carve's awareness, and the bed\nfails to duck under it silently. Naming the group instead resolves membership at\nanalysis time, so a clip added to the group later is covered without touching\n`sources` at all:\n\n```html\n<!-- group the narration, then carve the bed against the group -->\n<audio id=\"vo-intro\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-middle\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-outro\" data-audio-group=\"voiceover\" …></audio>\n\n<audio id=\"music\" data-fx-carve='{\"enabled\":true,\"sources\":[\"voiceover\"],\"strength\":0.8}' …></audio>\n```\n\nA `sources` list naming two or more plain clip ids instead of a group is caught\nby the `audio_carve_ungrouped_sources` lint rule — it still works, but it is the\nversion that silently rots when a clip is added.\n\n**Keep the carve group a voice group: no bed, no SFX, no music.** A group id in\n`sources` resolves to every _current_ member on _every_ analysis, so the group\nyou name is the group you get later — not the tracks that were measured when it\nwas written. Two ways that bites:\n\n- **The bed in its own source group.** It is handed to itself as a voice and\n carved against its own content — the \"never carve a track against itself\" rule\n arriving one re-analysis later.\n- **An SFX or music clip in the voice group.** It enters the sidechain on the\n next analysis and the bed starts ducking under a whoosh, even though the run\n that wrote the attribute never measured it.\n\nBoth are invisible at the moment the carve is written: the analysis sums the\nvoices it detected and never round-trips through group resolution, so the\nfirst pass is genuinely correct and only the next one is wrong. So give each role its\nown group — `music` for the bed, `voiceover` for the narration, `sfx` for the\nhits — and keep the group named in `sources` holding nothing but voices.\n\n`carve.mjs` refuses to write the group form when it sees either case, records\nclip ids, and says on stderr which member blocked it. The\n`audio_carve_ungrouped_sources` rule then points at the arrangement instead of\nthe CLI quietly persisting a wider carve than it measured.\n\nA voice that this run left out is **not** one of these cases and does not block\nthe group form: `carve.mjs` only analyses voices that overlap the bed, and\npicking up a clip that plays later without an edit to `sources` is the whole\nreason to name the group.\n\n### One bus for many tracks\n\nMembership alone is enough to carve against, as above — but add an\n`<hf-audio-group>` element with that id and the group becomes a real submix bus:\none chain, one fader, one automation clock for every member.\n\n```html\n<hf-audio-group\n id=\"voiceover\"\n data-label=\"Voiceover\"\n data-volume=\"0.9\"\n data-fx-chain='{\"version\":1,\"nodes\":[\n {\"type\":\"compressor\",\"id\":\"g1\",\"params\":{\"threshold\":-18,\"ratio\":3}},\n {\"type\":\"peaking\",\"id\":\"g2\",\"params\":{\"frequency\":3000,\"gain\":2,\"q\":1}}]}'\n></hf-audio-group>\n\n<audio id=\"vo-intro\" data-audio-group=\"voiceover\" …></audio>\n<audio id=\"vo-middle\" data-audio-group=\"voiceover\" …></audio>\n```\n\n**Reach for the bus when the same treatment belongs on several tracks.** Four\nnarration clips that each want the same compressor is four chains to keep in\nstep, and they drift the moment one is edited; on the bus it is one chain, and\nthe compressor sees the whole voice rather than each clip in isolation — which is\nthe point, since a compressor cannot ride a sequence it only hears a third of.\nPer-clip chains remain right for what is genuinely per-clip: one noisy take that\nneeds its own de-esser.\n\n| On the bus | Does |\n| ----------------- | ----------------------------------------- |\n| `data-fx-chain` | one chain over the summed members |\n| `data-automation` | envelopes on the bus, in COMPOSITION time |\n| `data-volume` | one fader for every member (default 1) |\n| `data-label` | the display name; falls back to the id |\n| `data-hidden` | drops every member from the mix |\n\n**Group automation is composition time, not clip time.** A bus has no\n`data-start` — members are already at their composition positions when they\nreach it — so `t: 0` in a group lane is the start of the composition, not of any\nclip. A lane on a clip is clip-local; the same numbers mean different instants on\nthe two, which is the one thing to get right when moving an envelope from a clip\nup onto its bus.\n\n**A carve stays on the clip.** `data-fx-carve` is not a group attribute. The bed\nbeing carved is a single track, and it is that track which carries\n`data-fx-carve` — pointed AT a group, per the rule above. Group and carve meet in\n`sources`, not on one element. A carve written onto a bus is half an effect\napplied twice: the level half measures the bed's own audio, which a bus has none\nof, so only the filters survive — and a bus and its members are one signal path,\nso the bed then runs through the bus's filters AND its own. The\n`audio_group_carve_attr` lint rule catches it.\n\n**One effect across the whole mix: the master bus.** A clip names exactly one\ngroup, so a limiter or EQ over everything cannot be a group. Put it in\n`data-fx-chain` on the top-level composition root: it runs once over the sum of all clips and groups, after each\ngroup's chain and fader. A delivery ceiling is the usual use — `truepeak` last in\nthe master chain. Only the top-level root is read as the master bus; a\nsub-composition root's `data-fx-chain` is not applied inside a parent composition. No master automation.\n\n**One clip is not a bus.** A group exists to give several tracks one chain, one\nfader and one clock. Wrapping a single clip in a bus buys nothing the clip's own\n`data-fx-chain` does not already do, and it doubles the places a later edit has\nto land. The one reason to do it anyway: a bus's automation clock is composition\ntime, so a single-member bus is how a lane on that clip gets composition-time\ntiming.\n\n**One knob.** `strength` is 0..1 and derives everything: how deep to cut, how\nmany bands, how wide, how far to favour intelligibility over raw voice energy,\nhow far the level may drop, how far under the voice to aim. Those six move\ntogether in any real mix — a gentle carve is a shallow cut in few bands with\nlittle ducking, a hard one is deeper in more bands with more — so they are one\nrelationship written once, in `carveProfile`. `carve.mjs` defaults to `0.8` —\nsix bands from 250 Hz to 2.5 kHz cut about 7 dB each and 15 dB at 1.6 kHz, with\n19 dB of level room — because a bed under narration has to get out of the way\nfirst and be music second; `0.25` (a 6 dB dip in three bands, 6 dB of room) kept\nthe bed present but still let it fight the voice, and was judged too weak in\npractice. At `0.5` the dip reaches 10 dB, which is where a carve starts being\nheard as an effect rather than as room for the voice. Drop the strength when the\nbed is the point and the voice is sparse. `0` is spectral only — one band, no\nlevel match at all.\n\n**Carve by default — required whenever music plays under a voice.** A bed\nunder any voice track (narration, avatar speech, interview, voiceover) gets a\ncarve as part of finishing the mix, not as a polish step to get to if there is\ntime. Place both tracks, run the command below (default strength `0.8`; add\n`--bed` / `--voice` when detection picks wrong), confirm the written\n`data-fx-carve`, `data-fx-chain` and `data-automation` with `~/.juicylucy/bin/hyperframes check`,\nand only then render. A volume duck on its own is not a finished mix: it leaves\nthe voice and the bed fighting in the 1–3 kHz band and costs the bed all of its\npresence for the whole voiceover. Skip the carve only when there is no voice for\nthe music to sit under — a music video, a title card, a montage cut to the track.\n\n**It always follows the voice.** There is no static mode: a fixed depth thins the\nbed through every pause, and once you have heard both there is no reason to want it.\nEvery value becomes an envelope of the speech's own level — silence leaves the bed\nalone, a loud passage pushes the carve to full depth — written as ordinary automation,\nwhich is why the lanes show up in the timeline and can be edited afterwards.\n\n**Level matching is part of it.** Spectral carving cannot fix a bed that is\nsimply louder than the voice. So the carve also measures how far over the voice\nthe bed sits and writes a `gain` stage driven by an envelope. That envelope releases slowly on\npurpose — music that snaps back to full the instant a word ends sounds like a\nmachine doing it.\n\n**Running it.** In Studio the carve is one module at the top of a track's effect\nrack — voice, strength, and the analysis it produced, in one card. It is\nthere whenever another track could be the voice, and a bed with exactly **one**\ncandidate above it is carved by default, at the default strength:\nthat is what a bed under narration wants, and the module is where you change or\nswitch it off. Several candidates leaves the picker waiting rather than guessing.\nHeadless —\nwhich is the path when you are authoring a composition rather than editing one:\n\n```bash\n~/.juicylucy/bin/adsnode <SKILL_DIR>/scripts/carve.mjs --comp index.html\n```\n\nThat is the whole command. It finds the voice and the bed itself, carves\nat the default strength, and prints what it decided:\n\n```\nbed music-bed (name looks like music)\nvoice narration (only track left)\ncarve strength 0.8, 1 voice\nbands 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\nlevel 273-point envelope, floor -19.2 dB\n```\n\nName the tracks with `--bed` / `--voice` (repeatable) when the automatic choice is\nwrong, `--strength` to push it, `--dry-run` to see that report and write nothing.\n\n**How it picks the tracks.** Names first, because that is what you already told it\nand the answer is explainable — `classifyAudioName` in core, the same classifier\nStudio's own picker uses, so the two cannot disagree. A track whose id or filename\nlooks like music (`music`, `bgm`, `bed`, `score`…) is the bed; everything else that\nplays over it and is not SFX-shaped is a voice. Audio elements are preferred: video\ncounts only when no audio track is left to be the voice, or every B-roll clip in the\ncomposition would read as somebody talking. **It refuses when it cannot tell which\ntrack is the bed** rather than carving the wrong one — typing one id is cheap.\n\nSame analysis functions as the panel, so the result is identical. Needs `ffmpeg`\non PATH and `@hyperframes/core` installed in the project (`npm i -D\n@hyperframes/core`) — the CLI inlines core rather than shipping it, so it cannot\nbe borrowed from there.\n\n**What it writes** is an ordinary chain of peaking filters plus a gain stage,\ntagged `fromCarve`. That tagging is the whole trick: a re-run replaces the\nprevious carve and leaves every effect you built by hand — and every lane you\ndrew by hand — exactly where it was. So re-carving at a new strength is safe and\nrepeatable, and `data-fx-carve` exists so the settings can be read back rather\nthan guessed from the filters.\n\n## Automation\n\nA lane is a set of breakpoints on one parameter: `{t, v}` in clip-local seconds\nand the parameter's own units. Targets are `volume` for the track's level, or\n`fx.<nodeId>.<param>` for an effect's knob.\n\n**Only some parameters can be automated, and a lane on the others is silently\ninert.** A knob is automatable when a Web Audio `AudioParam` backs it. The\nworklet-based effects — `compressor`, `limiter`, `truepeak`, `gate`, `bitcrush` — expose\nnone at all, so no lane on any of their parameters will ever move: to make a\ncompressor's behaviour change over time, automate a `gain` stage before it\ninstead. `references/fx-registry.md` marks every parameter.\n\n## Verify\n\nAlmost no static gate covers the mix. The linter reads `data-automation` for\nexactly one conflict — `audio_volume_double_automation`, a volume lane on a track\nthat also has a GSAP tween on `volume`, where the lane wins and the tween is\nignored — plus `audio_volume_tween_overrides_gain`, an authored `data-volume`\non a track whose `volume` is tweened, where the tween's values are absolute and\nreplace that gain instead of scaling it. Nothing validates the\nchain or the effect lanes at all. What\nenforces those is the render: a chain it cannot parse fails the whole mix rather\nthan quietly writing the dry signal, because a mix that sounds plausible and is\nwrong is worse than a refusal. Preview is the opposite by design: an unreadable\nchain plays dry so the composition stays workable.\n\nA lane pointing at a node the chain does not have is pruned on read, not an\nerror — so a typo'd `nodeId` costs you the envelope silently. Read the ids back\nout of the chain rather than assuming what was minted.\n\nEffects with a tail (`reverb`, `delay`) make the rendered track **longer** than\nits source, and the mix is told how much by the chain. So a bed with reverb no\nlonger ends exactly at its `data-duration`; that is expected, not a bug.\n\nBeyond that, a mix is verified by rendering and listening. For a carve: the voice\nshould be legible without the bed sounding hollowed, and the bed\nshould come back up between phrases rather than staying flat. If the bed sounds\nnotched rather than simply quieter under the voice, the strength is too high —\nthat is the one failure mode with an obvious sound.\n"
}SHA-256 of public snapshot: 180d7175e16e21a007ab96ebc83164985a5bcf24eb1b30bd0616e3d9dc8b6736