Skip to content

Rebuild envelope from source clips when joining - #10999

Merged
kryksyh merged 1 commit into
audacity:audacity3from
grliszas14:port_clips_merge_fix
May 25, 2026
Merged

kryksyh merged 1 commit into
audacity:audacity3from
grliszas14:port_clips_merge_fix

Conversation

@grliszas14

Copy link
Copy Markdown
Contributor

Ports #10830

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Testflow test cases have been run

@coderabbitai

coderabbitai Bot commented May 22, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 08941637-3cd3-4bb1-afd7-b9f1a819cf40

📥 Commits

Reviewing files that changed from the base of the PR and between c99d817335295b24e4cbc295da53e8c3ed3f10c1 and 5fc89e9.

📒 Files selected for processing (1)
  • libraries/lib-wave-track/WaveTrack.cpp

📝 Walkthrough

Walkthrough

This PR adds envelope rebuilding logic to preserve automation when audio clips are joined in Audacity. A new internal helper function RebuildJoinedEnvelope reconstructs the envelope of the destination clip by extracting visible automation boundaries from source clips, handling seam reconciliation by suppressing duplicate boundary values within tolerance and deferring interior-to-boundary pairs. The WaveTrack::Join method is updated to invoke this helper on the joined clip, ensuring the audio sequence preserves the source clips' automation characteristics while avoiding synthesis artifacts at join points.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and specifically describes the main change: rebuilding the envelope from source clips when joining WaveClip audio.
Description check ✅ Passed The PR description follows the template structure with all required sections and checkboxes completed. However, the 'Resolves' link and detailed change description are minimal.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kryksyh
kryksyh force-pushed the port_clips_merge_fix branch from c99d817 to 5fc89e9 Compare May 25, 2026 12:45
@kryksyh
kryksyh merged commit 7248108 into audacity:audacity3 May 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants