Skip to content

fix: prevent chunk overwrite with custom output names, clarify demucs defaults#270

Merged
beveradb merged 1 commit into
mainfrom
feat/sess-20260316-2134-pr260-pr264-review
Mar 17, 2026
Merged

fix: prevent chunk overwrite with custom output names, clarify demucs defaults#270
beveradb merged 1 commit into
mainfrom
feat/sess-20260316-2134-pr260-pr264-review

Conversation

@beveradb
Copy link
Copy Markdown
Collaborator

@coderabbitai ignore

Summary

  • Bug fix (fixes [Bug]: chunk_duration param causes issue if custom_output_names does not follow the regex. #259): Remove custom_output_names from per-chunk _separate_file call in _process_with_chunking. When custom names were passed to each chunk, they'd all get the same filename and overwrite each other. Custom names are now only applied to the final merged output.
  • Docs: Clarify that demucs_params segment_size "Default" uses the model's internal default (40 for older Demucs, 10 for Demucs v4/htdemucs).
  • Tests: Strengthen regression test with multi-chunk + multi-stem scenario that verifies _separate_file is called without custom names per chunk.

Incorporates work from #260 (thanks @Kulin-Soni!) and #264 (thanks @Madduri-Ganesh!) with additional test coverage.

Test plan

  • All 233 unit tests pass (4 skipped)
  • Regression test verifies _separate_file called WITHOUT custom_output_names for each chunk
  • Regression test uses 3 chunks + 2 stems to reproduce the original overwrite bug
  • Verified demucs segment defaults in source: demucs.py (40) and htdemucs.py (10)

🤖 Generated with Claude Code

… defaults

Fix chunking bug where custom_output_names passed to _separate_file caused
chunks to overwrite each other (fixes #259). Custom names are now only applied
to the final merged output. Adds regression test with multi-chunk + multi-stem
scenario that verifies _separate_file is called without custom names.

Also clarifies demucs_params segment_size documentation: "Default" maps to 40
for older Demucs models and 10 for Demucs v4/htdemucs.

Incorporates work from PR #260 (@Kulin-Soni) and PR #264 (@Madduri-Ganesh)
with additional test coverage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@beveradb beveradb merged commit 4549b04 into main Mar 17, 2026
20 checks passed
beveradb added a commit that referenced this pull request Mar 17, 2026
Patch release for:
- Fix chunk overwrite when using custom_output_names with chunk_duration (#259, #270)
- Clarify demucs segment_size "Default" documentation (#264, #270)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@beveradb beveradb mentioned this pull request Mar 17, 2026
2 tasks
beveradb added a commit that referenced this pull request Mar 17, 2026
Patch release for:
- Fix chunk overwrite when using custom_output_names with chunk_duration (#259, #270)
- Clarify demucs segment_size "Default" documentation (#264, #270)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@beveradb beveradb deleted the feat/sess-20260316-2134-pr260-pr264-review branch March 17, 2026 03:14
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.

[Bug]: chunk_duration param causes issue if custom_output_names does not follow the regex.

1 participant