Skip to content

[3/6] feat: preview and export ducked audio - #301

Merged
dazzatronus merged 1 commit into
feat/duck-2-loudnessfrom
feat/duck-3-preview
Nov 18, 2026
Merged

dazzatronus merged 1 commit into
feat/duck-2-loudnessfrom
feat/duck-3-preview

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

An edit that uses duck should sound the same in preview, in Studio's MP4 export and in the API render.

  • One level service per edit decodes each file once, sets each dip's level with the shared formula and announces new levels. Preview rebuilds its volume envelope when they arrive, and export waits for pending levels before mixing.
  • A source that isn't an absolute URL yet, such as a merge field or a clip still generating, uses the default level until it resolves.
  • Export now holds a tweened volume at its first value from time 0. Previously the gain sat at 1 until the first keyframe, so hand-keyframed volumes also exported too loud at the start.
  • Export waits up to 30 s for pending levels, the same limit as asset loads. After that it exports with the levels that have arrived, and the rest use the default level, as preview does.

Size: 758 lines, about half of them tests. The service, preview and export are one decision and don't work apart.

Verify: npm run verify:ci.

Stack (squash into main in order)

# PR Adds Why separate
[1/6] #304 schemas 1.25.0 and canvas 2.15.0 Dependency bump
[2/6] #300 Loudness blocks from decoded audio Pure measurement, tested against ffmpeg
[3/6] #301 ← this PR Ducked preview and export Levels, preview and export only work together
[4/6] #302 Duck references survive delete and paste Repairs edits; revertible alone
[5/6] #303 Speed and volume guards on ducked clips Keeps existing controls valid for loaded edits
[6/6] #305 Duck control in the audio toolbar The user-facing control

@dazzatronus
dazzatronus merged commit 2401c56 into main Nov 18, 2026
2 checks passed
github-actions Bot pushed a commit that referenced this pull request Nov 18, 2026
# [2.33.0](v2.32.1...v2.33.0) (2026-11-18)

### Features

* add a Duck control to the audio toolbar ([#305](#305)) ([8ca685a](8ca685a))
* keep duck references valid when clips are deleted or pasted ([#302](#302)) ([a62eedb](a62eedb))
* keep speed and volume edits valid on ducked audio clips ([#303](#303)) ([94e3cc5](94e3cc5))
* measure loudness blocks from decoded audio ([#300](#300)) ([a441a1d](a441a1d))
* preview and export ducked audio ([#301](#301)) ([2401c56](2401c56))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.33.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant