Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get_traces(start_frame=1000, end_frame=3000)returns 3,000 samples instead of the requested 2,000 whenever the interval fits in one chunk. The fallback passes a hardcoded zero tofilter_chunk, so it also starts at the wrong audio position.Forward the requested
start_frame. Regressions compare selected samples with the original waveform when noise reduction is disabled, covering mono/stereo audio, disabled chunking, exact chunk lengths and intervals spanning multiple chunks.On the bundled recording, this corrects 56 wrong selections across NumPy stationary/nonstationary and Torch CPU/CUDA workflows. All 40 unaffected selection controls are byte-identical.
Ten new regressions fail before the fix; all 18 pass afterward. The complete suite passes 24 tests. New-test lint passes; package lint retains the same 94 existing findings. Tested on Linux/Python 3.12; this change does not alter the filtering algorithm.