Repository navigation
Rebuild envelope from source clips when joining - #10830
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 123e3ab1c95111dd1a05e1aaab329e22126712f5 and 04451a3. 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughWaveTrack::Join now rebuilds the joined clip’s automation envelope after concatenating source clips. A new Envelope is created with offset and length matching the joined clip, and visible/play-range control points from each source clip are copied in order. Per-clip play boundaries are emitted; coincident boundary timestamps within sample tolerance are coalesced when values match (preferring explicit user points) or preserved as duplicated same-timestamp points when values differ. Outermost boundaries are kept only if they were explicit in the originals. The rebuilt envelope replaces the target clip’s envelope. Sequence Diagram(s)sequenceDiagram
participant Caller
participant WaveTrack
participant SourceClips as "SourceClip(s)"
participant NewClip as "Joined WaveClip"
participant Envelope
Caller->>WaveTrack: Join(clips)
WaveTrack->>NewClip: Concatenate audio -> create newClip
WaveTrack->>Envelope: Create envelope sized/offset to newClip
WaveTrack->>SourceClips: Iterate clips in order
SourceClips->>WaveTrack: Emit visible play-region points & boundaries
WaveTrack->>Envelope: Insert points (handle seam coalescing/duplication)
WaveTrack->>NewClip: Replace clip envelope with rebuilt Envelope
WaveTrack-->>Caller: Return joined clip
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ 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. Comment |
3ea9ed7 to
0a7cc88
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 8e48f418-8da2-4ff7-a93a-a712b64af537
📥 Commits
Reviewing files that changed from the base of the PR and between 3ea9ed7d8cad72e01c977e11b6752b36157d2858 and 0a7cc881717dd1cc089a45b460e343511cc73171.
📒 Files selected for processing (1)
au3/libraries/au3-wave-track/WaveTrack.cpp
0a7cc88 to
123e3ab
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
au3/libraries/au3-wave-track/WaveTrack.cpp (1)
2304-2323:⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift
hasExplicitPointAt()still treats synthesized trim/split preserves as authored control points.This helper only checks whether a point exists at
playStart/playEnd, so boundary preserves created by earlier trim/split paths still satisfy it. That means the “keep only real outer points” rule is still not reliable for previously edited clips. Based on the current implementation, this is the same unresolved concern raised on the earlier revision.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: a2eff399-2371-4af2-8112-c37d46ab444e
📥 Commits
Reviewing files that changed from the base of the PR and between 0a7cc881717dd1cc089a45b460e343511cc73171 and 123e3ab1c95111dd1a05e1aaab329e22126712f5.
📒 Files selected for processing (1)
au3/libraries/au3-wave-track/WaveTrack.cpp
| double value; | ||
| bool isExplicit; | ||
| }; | ||
| std::optional<PendingBoundary> pendingEnd; |
There was a problem hiding this comment.
we never check if pendingEnd is set, do we need an optional here?
123e3ab to
04451a3
Compare
Ports #10830 - [x] I signed [CLA](https://www.audacityteam.org/cla/) - [x] The title of the pull request describes an issue it addresses - [x] If changes are extensive, then there is a sequence of easily reviewable commits - [x] Each commit's message describes its purpose and effects - [x] There are no behavior changes unnecessary for the stated purpose of the PR Recommended: - [x] Each commit compiles and runs on my machine without known undesirable changes of behavior QA: - [ ] Testflow test cases have been run
Resolves: #10446
Recommended:
QA: