Communitygithub.com

Alemoterani/auto-edit-hyperframes

用于处理 HyperFrames 合成中已放置音频的混音:淡入/淡出、交叉淡变、轨道增益或音量、音量自动化、闪避、背景音乐与画外音的对抗(画外音雕刻)、轨道上的效果器(均衡器、压缩器、限制器、门限、饱和、延迟、混响、合唱、移相器、比特压缩器)、在轨道音量或任何效果参数上绘制的自动化包络,或一个子混音总线同时承载多条轨道的效果链、推子和自动化时钟(`<hf-audio-group>`)。不适用于音频源或生成——寻找背景音乐、音效或制作画外音属于 `/media-use`。不适用于剪辑时间或轨道布局,这属于 `/hyperframes-core`。

auto-edit-hyperframes 是什么?

HyperFrames Audio 是一个面向 HyperFrames 合成环境的专业音频混音技能,专为处理已放置轨道上的音频混合关系而设计。其核心理念在于:混音并非简单的处理器堆叠,而是表达轨道间的内在关系——当两条轨道单独听起来不错但叠加在一起却难以入耳时,解决之道几乎从来不是“调低其中一条”,而是找出它们争夺的频段或空间,并将其赋予更需要的轨道。 该技能支持全面的音频处理功能:淡入/淡出、交叉淡变、轨道增益/音量控制、音量及效果参数的自动化包络、闪避/画外音雕刻,以及完整的效果链(包括增益、均衡器、压缩器、限制器、门限、饱和、延迟、混响、合唱、移相器和比特压缩器)。所有效果通过 `data-fx-chain` 属性直接作用于音频/视频元素,预览和渲染共享同一个 Web Audio 图——预览时听到的效果就是最终渲染写入的效果,无需重复调试。 技能特别实现了“画外音雕刻”(voiceover carve)功能:通过 `data-fx-carve` 属性分析对话轨道,自动检测音乐床与画外音的冲突频段,生成相应的均衡器峰值滤波器链和增益自动化包络,使音乐在有画外音时自动让出空间。雕刻设置存储于 `data-fx-carve`,便于后续调整强度而无需重新猜测滤波器参数。子混音总线(`<hf-audio-group>`)支持将多条轨道分组,统一应用效果链、推子和自动化时钟。 此技能专用于 HyperFrames 平台,与 `/hyperframes-core`(处理剪辑时间、轨道布局和速度变化)和 `/media-use`(处理音频源、生成和预处理)协同工作。运行时属性通过 MutationObserver 实时响应编辑,支持在播放过程中直接修改效果参数。总结来说,HyperFrames Audio 是一个强大而精准的音频混音解决方案,让开发者能够在 Web 浏览器环境中完成从简单音量调整到复杂多轨道自动化混音的全部工作。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/skills/hyperframes-audio

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

插件安装: 在执行设置或刷新命令之前,如果此技能位于 HyperFrames 插件内,请遵循插件执行规则。独立安装则保留下面的更新说明。

HyperFrames Audio

混音是一组关系,而不是处理器堆栈。单独听起来不错的两个音轨放在一起可能无法入耳,解决办法几乎从来不是“把其中一个调小”——而是要找出它们争夺的是什么,并将其交给需要的一方。此处的每个工具都是为了表达其中一种关系而存在的。

效果通过 data-fx-chain 存在于元素上,预览和渲染运行相同的 Web Audio 图——实时上下文中的工作室,以及它已经驱动的浏览器内部的离线引擎。每种效果只有一个实现,因此你在擦洗时听到的,就是最终写入的内容。你永远不需要调整两次。

片段时间仍由 /hyperframes-core 负责:音视频修剪和源范围使用 data-start、data-duration 和 data-media-start,交叉淡入淡出重叠不同轨道的片段。本技能负责放置轨道的淡入/淡出、交叉淡入淡出包络、轨道增益/音量、音量与效果自动化、闪避/旁白压限,以及效果链。/media-use 负责来源、生成和预处理。

常量 data-playback-rate(0.1..10)对画面和保留音高的声音是安全的,当匹配的音视频元素使用相同的时间、源偏移和速率时,它可以在渲染时保持音高。速度渐变是 data-automation 中的一个 rate 通道(参见 docs/reference/speed-ramps);它覆盖常量,并在预览和渲染中保持音高。HyperFrames 不提供自动波形同步或漂移校正。 对于可复制的剪切/交叉淡入淡出/重新定时技巧,请使用 /hyperframes-core → references/creator-editing-recipes.md。

三个属性承载了所有内容,位于音视频元素本身——或者,对于前两个属性,位于 <hf-audio-group> 总线上(参见“一个总线用于多个轨道”):

属性内容
data-fx-chain效果,按信号顺序排列
data-automation此轨道音量或其效果参数的包络
data-fx-carve压限自身的设置,以便可以重新推导出它

附带的默认效果系列包括:增益、均衡器(高通、低通、峰值、搁架)、压缩器、限制器、门、饱和、延迟、混响、合唱、移相器和位压缩。

每个效果的精确 JSON,以及通道必须满足的规则:references/attributes.md。 每个效果及其参数、范围和单位:references/fx-registry.md。 如何解决听不到的声音问题:references/diagnosis.md。 预设、命名任务和单旋钮配置文件,以及症状到修复的表格:references/presets.md——在手动构建效果链之前请先阅读它,因为其中一个预设或命名任务通常已经指出了问题。

如何整合

两个创作界面写入这些属性;两个运行时通过相同的构建器读取它们。正是这个共享的中间层让预览能够预测渲染结果。

flowchart TB
  voice["人声轨道<br/>媒体文件"]
  bed["音乐垫<br/>媒体文件"]

  subgraph AUTHOR["创作——唯一写入属性的途径"]
    panel["工作室<br/>旁白压限控制"]
    script["scripts/carve.mjs<br/>检测配对"]
    analysis["core/audioCarve.ts<br/>carveProfile · analyseCarveBands<br/>analyseCarveDuck · analyseCarveDynamics"]
    panel --> analysis
    script --> analysis
  end

  voice --> analysis
  bed --> analysis

  subgraph ATTRS["写入到音乐垫元素上"]
    carveAttr["data-fx-carve<br/>源 · 强度"]
    chainAttr["data-fx-chain<br/>峰值滤波器 xN + 增益,标记为 fromCarve"]
    autoAttr["data-automation<br/>每个压限参数一个通道"]
  end

  analysis --> carveAttr
  analysis --> chainAttr
  analysis --> autoAttr

  subgraph SHARED["一个实现,两者读取"]
    build["audioFxGraph.ts · buildFxChain"]
    sched["audioFxAutomation.ts · scheduleChainAutomation"]
  end

  chainAttr --> build
  autoAttr --> sched

  build --> preview["预览<br/>实时 AudioContext<br/>attachElementFxChain"]
  sched --> preview
  build --> render["渲染<br/>无头浏览器中的 OfflineAudioContext<br/>applyAudioFxChain"]
  sched --> render

  preview --> heard["擦洗时听到的"]
  render --> wav["处理后的 WAV<br/>+ chainTailSeconds 确保混音让尾巴通过"]
  wav --> mix["引擎 · audioMixer<br/>音量通道已烘焙到 PCM 中,不在图中"]
  mix --> out["最终的混音输出"]

  edit["播放中途编辑属性"] -.->|MutationObserver| preview

压限本身的设置在播放时从不读取——它产生的效果链和通道才是实际播放的内容。data-fx-carve 的存在是为了可以在现有的压限上更改强度,而不是从滤波器中反向猜测。

在压限过的音乐垫内部,信号先经过衰减,然后是电平匹配,最后是任何你自行添加的效果——这就是为什么你添加的限制器仍然作为最后的限幅器工作:

flowchart LR
  src["解码的音乐垫"] --> p1["峰值滤波器<br/>400 Hz"]
  p1 --> p2["峰值滤波器<br/>1 kHz"]
  p2 --> p3["峰值滤波器<br/>1.6 kHz"]
  p3 --> g["增益<br/>电平匹配"]
  g --> hand["你自己的效果<br/>例如限制器"]
  hand --> dest["轨道增益,然后输出"]

  l1["通道 fx.n1.gain"] -.->|"该频段人声音量<br/>的包络"| p1
  l4["通道 fx.n4.gain"] -.->|"音乐垫整体<br/>闪避程度"| g

首先,弄清楚哪里出了问题

下面的表格从“听起来很沉闷”开始——这假设有人已经听过并指出了问题。如果只是拿到一个文件并收到“修复这个”的指令,你没有这样的描述,也无法亲自听,所以你必须测量。一条规则支配着这一切:

单个未知声音的绝对频谱无法诊断。 共振峰有 ±10 dB 的变化,基频范围在 85–255 Hz,句子结束时下降 5–6 dB。 每一个这样的特征单独看起来都是缺陷,而每一个都是说话者自身的特点。

因此,进行比较,并与同一文件内部的声音进行比较:如果存在未经处理的原始音频,则与其比较;否则与静音段落比较——任何在空白中可听到的声音都是额外添加的,空白的频谱反映的是通道本身而非语音。与公开的平均频谱或合成的控制声音进行比较是行不通的:两个说话者之间的差异超过了大多数缺陷,而本指南背后的评估中给出的两个错误答案都源于此。

当没有原始音频也没有可用的静音时,静态的音频缺陷确实是无法确定的。请如实说明这一点,并提供符合情况的读数,而不是选择一个并在此基础上构建效果链。

命令、陷阱和已实践的例子:references/diagnosis.md。在诊断一个没人描述过的文件之前,请先阅读它。

从症状入手

一旦你知道了频段和类型,就指出音频的问题所在。大多数不好的音频都属于以下一两种类型,每种都有对应的内置解决方案:

听起来像采用的方法
下方有嗡嗡声或重击声rumble-cut,或 80 Hz 的高通滤波器
沉闷、胸腔共鸣Tame Boominess 任务(200 Hz)
模糊、像隔着一层纸板Reduce Mud 任务(250 Hz)
单词难以分辨Add Clarity 任务(3 kHz),或压限音乐垫
刺耳且令人疲劳Soften Harshness 任务(3.2 kHz)
有些单词比其他单词响得多Evenness 压缩器,或平衡音量
句子之间有房间混响room-gate
人声和音乐冲突旁白压限——而不是调整任何一个的均衡器
干燥、听起来像没有录音空间room-tight 或 room-natural
仅仅是“业余”voice-clean,包含以上四项按顺序组合

完整目录、每个预设包含的内容、频段词汇表,以及故意不包含的内容(去齿音、降噪、音色匹配):references/presets.md。

先做减法(滤波),再加内容,滤波后平衡音量,然后是关系,最后是特性和限幅。每一步都会改变下一步听到的内容——在高速滤波器之前设置的压缩器会浪费精力去处理低频隆隆声。

根据问题选择效果系列,而不是效果名称

滤波器(highpass、lowpass、peaking、lowshelf、highshelf)决定一个轨道允许占据哪些频率。这是解决两个声源冲突的首选工具,因为冲突发生在频段内:音乐垫和人声都想占据 1–3 kHz,从音乐垫中移除这一频段对音乐垫的损害远小于整体衰减对整个混音的损害。人声上的高通滤波器是解决低频隆隆声的标准方法;低通滤波器则故意使声音变暗或变模糊。

动态处理器(gain、compressor、limiter、gate)决定轨道音量随时间变化的方式。压缩缩小了响和轻之间的距离,从而使轻微的部分可以提升。限制器是一个天花板——它不塑造任何东西,只保证没有东西能超过它。门消除低于阈值的声音,这是静音短语之间的房间混响的方法。gain 是一个简单的电平级,也是自动化通道在轨道需要让路时所骑乘的。

非线性处理器(saturate、bitcrush)改变波形的形状,从而添加原本不存在的谐波。当你需要为轨道添加特色或粗糙感而不是校正时使用它——请记住,它是生成式的:它使单薄的声音变得更密集,而不是更干净。

时间效果(delay、reverb、chorus、phaser)将轨道置于一个空间或赋予其宽度。这些效果最容易破坏混音,因为一个尾巴或一个失谐的副本会占据人声需要的相同空间。将它们用于应该位于其他声音_后面_的元素,并保持湿声量低于在隔离条件下听起来合适的水平。

效果链是串行的:每个效果处理前一个效果产生的输出。因此,校正性的滤波放在前面,特性放在中间,限制器放在最后,这样它才能真正起到天花板的作用。

旁白压限

它解决的问题。 在人声下方的音乐垫使人声难以听清。直觉反应是整体压缩音乐垫,这有效,但以牺牲音乐垫的全部存在感为代价——音乐在整个叙述期间变得无力。但人声并不需要整个频谱。它只需要它实际占用的几个频段。压限只拿走这些频段,而音乐垫保留其低频和高频,因此它仍然是音乐,同时人声仍然清晰可辨。

它是一种关系,而不是一种效果。 设置位于_被处理_的轨道——音乐垫上——它们指定要监听的人声,就像侧链压缩器一样:你选择变小的轨道,并选择让它变小的东西。永远不要把压限放在人声轨道上。 人声针对自身进行压限是一个错误,而不是一个微妙的混音选择。

针对所有人声,而不是其中一个。 sources 是一个列表,因为音乐垫通常用于整个序列——叙述者、受访者、另一位主持人。它们在音乐垫自己的时钟上求和后再进行测量(mixCarveSources),因此一个分析覆盖所有人声:频段来自所有存在的语音,包络在有人声的地方上升。从不在音乐垫播放时出现的人声被排除在外;它们不能掩盖音乐垫。

针对多个片段 ID 进行压限是错误的。将片段分组,然后针对组进行压限。 这是一个不变规则,而不是建议。逐个命名片段必须完全正确,并且在下一次编辑之前保持正确——后面添加的第四个旁白片段在压限的感知之外播放,音乐垫将无法静默地闪避。相反,命名组可以在分析时解决成员归属问题,因此稍后添加到组中的片段无需修改 sources 即可覆盖:

<!-- 将旁白分组,然后针对组压限音乐垫 -->
<audio id="vo-intro" data-audio-group="voiceover" …></audio>
<audio id="vo-middle" data-audio-group="voiceover" …></audio>
<audio id="vo-outro" data-audio-group="voiceover" …></audio>

<audio id="music" data-fx-carve='{"enabled":true,"sources":["voiceover"],"strength":0.8}' …></audio>

一个 sources 列表列出了两个或多个普通片段 ID 而不是组,会被 audio_carve_ungrouped_sources 检查规则捕获——它仍然可以工作,但它在添加片段时会默默失效。

保持压限组为人声组:不要包含音乐垫、音效或音乐。 sources 中的组 ID 在每次分析时都会解析为_当前_所有成员,因此你命名的组就是你以后得到的组——而不是写入时测量过的轨道。两种会出问题的情况:

  • 音乐垫在自己的源组中。 它被交给自身作为人声,并针对自身的内容进行压限——规则“永远不要针对自身压限一个轨道”在重新分析时生效。
  • 音效或音乐片段在人声组中。 它在下一次分析时进入侧链,音乐垫开始针对呼啸声进行闪避,即使写入属性的那次运行从未测量过它。

这两种情况在写入压限的那一刻都是不可见的:分析会加起来它检测到的人声,并且不会通过组解析进行往返,因此第一次通过实际上是正确的,只有下一次才是错误的。因此,为每个角色分配自己的组——music 用于音乐垫,voiceover 用于旁白,sfx 用于音效——并保持 sources 中命名的组只包含人声。

carve.mjs 在检测到这两种情况时会拒绝写入组形式,记录片段 ID,并在 stderr 上说明是哪个成员阻止了它。然后 audio_carve_ungrouped_sources 规则会指向编排

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Alemoterani/auto-edit-hyperframes

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Alemoterani/auto-edit-hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Alemoterani/auto-edit-hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Alemoterani/auto-edit-hyperframes

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

Alemoterani/auto-edit-hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

Alemoterani/auto-edit-hyperframes

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, clean, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

Alemoterani/auto-edit-hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

相关技能