feat: remove selected audio DC offset with double precision analysis

This commit is contained in:
Johannes Findeisen 2026-11-06 01:05:19 +01:00
commit 9f1ff5f1e4
7 changed files with 20 additions and 8 deletions

View file

@ -29,3 +29,7 @@ Reverse selection changes only the chosen source frames in a new local snapshot.
## Phase 73
Invert polarity negates selected float samples; it is not time reversal. Over-range finite samples remain over-range; no implicit limiting is performed. Outside-selection frames are bit-preserved in the copied snapshot.
## Phase 74
Remove DC offset subtracts the mean of the selected range from only that range. This is a constant offset correction, not a high-pass filter. Selection boundaries may acquire discontinuities; use fades or zero-crossing tools where appropriate. Finite over-range results are retained; float overflow rejects the edit.

View file

@ -1762,12 +1762,12 @@ Implemented: selected-range polarity inversion preserves source length and every
Measure and subtract the selected range mean using double precision accumulation, preserve other frames and reject invalid ranges atomically.
### Tasks and acceptance criteria
- [ ] Implement bounded C99 analysis/processing and accessible FLTK controls.
- [ ] Preserve source files, atomic error handling, history and callback safety.
- [ ] Pass meaningful core and GUI checks; document exact behavior and limits.
- [x] Implement bounded C99 analysis/processing and accessible FLTK controls.
- [x] Preserve source files, atomic error handling, history and callback safety.
- [x] Pass meaningful core and GUI checks; document exact behavior and limits.
### Implementation status
Planned.
Implemented: double-precision selected-range mean subtraction in a new sample snapshot; nonfinite results reject without mutation. Core residual mean/exact surrounding samples and GUI processing/undo pass.
---