Skip to content

[6/6] feat: add a Duck control to the audio toolbar - #305

Merged
dazzatronus merged 1 commit into
feat/duck-5-guardsfrom
feat/duck-6-toolbar
Nov 18, 2026
Merged

dazzatronus merged 1 commit into
feat/duck-5-guardsfrom
feat/duck-6-toolbar

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This lets users switch ducking on in the editor. Audio clips get a Duck dropdown next to Fade, with three parts:

  • a switch;
  • a checklist of clips to duck under, with overlapping audio and speech ticked by default;
  • an Auto or Custom level.

The rules come from the shared findDuckIssues, so the control can't write an edit the API rejects. It disables itself with a reason when the clip's volume is keyframed or its speed isn't 1. When a clip's loudness can't be measured, the panel says its dips use the default level.

Ticking a clip that has no alias yet adds one undo entry for the alias. History has no way to group commands.

Size: 678 lines, covering the panel (about 290), its styles and tests. Splitting the level picker from the switch would ship a control that turns ducking on but can't set it.

Verify: npm run verify:ci, then open an edit with music and a voiceover, switch Duck on for the music, and play.

Merge note: merging this releases the stack.

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 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 ← this PR Duck control in the audio toolbar The user-facing control

@dazzatronus
dazzatronus merged commit 8ca685a 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 📦🚀

@dazzatronus
dazzatronus deleted the feat/duck-6-toolbar branch November 19, 2026 00:45
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